@@ -952,11 +952,12 @@ Value HALDispatchABI::updateProcessorDataFromTargetAttr(
952952 for (int64_t i = 1 , e = ProcessorDataCapacity; i < e; ++i) {
953953 Value loadPtr = builder.create <LLVM::GEPOp>(
954954 loc, processorDataPtrValue.getType (), i64Ty, processorDataPtrValue,
955- LLVM::GEPArg (int32_t (i)), /* inbounds =*/ true );
955+ LLVM::GEPArg (int32_t (i)),
956+ /* noWrapFlags =*/ LLVM::GEPNoWrapFlags::inbounds);
956957 Value loadVal = builder.create <LLVM::LoadOp>(loc, i64Ty, loadPtr);
957958 Value storePtr = builder.create <LLVM::GEPOp>(
958959 loc, alloca.getType (), i64Ty, alloca, LLVM::GEPArg (int32_t (i)),
959- /* inbounds =*/ true );
960+ /* noWrapFlags =*/ LLVM::GEPNoWrapFlags::inbounds );
960961 builder.create <LLVM::StoreOp>(loc, loadVal, storePtr);
961962 }
962963 return alloca;
@@ -978,12 +979,12 @@ Value HALDispatchABI::loadProcessorData(Operation *forOp, OpBuilder &builder) {
978979 loc, LLVM::LLVMPointerType::get (context),
979980 LLVM::LLVMPointerType::get (context), environmentPtrValue,
980981 LLVM::GEPArg (int32_t (EnvironmentField::processor)),
981- /* inbounds =*/ true );
982+ /* noWrapFlags =*/ LLVM::GEPNoWrapFlags::inbounds );
982983 Value processorDataPtrValue = builder.create <LLVM::GEPOp>(
983984 loc, LLVM::LLVMPointerType::get (context),
984985 LLVM::LLVMPointerType::get (context), processorPtrValue,
985986 LLVM::GEPArg (int32_t (ProcessorField::data)),
986- /* inbounds =*/ true );
987+ /* noWrapFlags =*/ LLVM::GEPNoWrapFlags::inbounds );
987988 Value updatedProcessorData =
988989 updateProcessorDataFromTargetAttr (forOp, processorDataPtrValue, builder);
989990 return buildValueDI (forOp, updatedProcessorData, " processor_data" ,
0 commit comments