llvm/cbe: support slice in @prefetch

Closes #16967
This commit is contained in:
Jacob Young
2023-08-27 17:36:43 -04:00
committed by Andrew Kelley
parent 26b03ca823
commit c429bb5d2f
3 changed files with 21 additions and 15 deletions

View File

@@ -9837,7 +9837,7 @@ pub const FuncGen = struct {
}
_ = try self.wip.callIntrinsic(.normal, .none, .prefetch, &.{.ptr}, &.{
try self.resolveInst(prefetch.ptr),
try self.sliceOrArrayPtr(try self.resolveInst(prefetch.ptr), self.typeOf(prefetch.ptr)),
try o.builder.intValue(.i32, prefetch.rw),
try o.builder.intValue(.i32, prefetch.locality),
try o.builder.intValue(.i32, prefetch.cache),