Home
last modified time | relevance | path

Searched refs:IRB (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp837 IRBuilder<> IRB(*C); in createKernelApi() local
850 IRB.getVoidTy(), IRB.getInt32Ty()); in createKernelApi()
855 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi()
856 ArrayType::get(IRB.getInt64Ty(), kRetvalTLSSize / 8), in createKernelApi()
857 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi()
858 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), /* va_arg_origin */ in createKernelApi()
859 IRB.getInt64Ty(), ArrayType::get(OriginTy, kParamTLSSize / 4), OriginTy, in createKernelApi()
884 "__msan_poison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy, PtrTy); in createKernelApi()
886 "__msan_unpoison_alloca", IRB.getVoidTy(), PtrTy, IntptrTy); in createKernelApi()
900 IRBuilder<> IRB(*C); in createUserspaceApi() local
[all …]
H A DTypeSanitizer.cpp82 bool instrumentWithShadowUpdate(IRBuilder<> &IRB, const MDNode *TBAAMD,
131 IRBuilder<> IRB(M.getContext()); in initializeCallbacks() local
132 OrdTy = IRB.getInt32Ty(); in initializeCallbacks()
138 M.getOrInsertFunction(kTysanCheckName, Attr, IRB.getVoidTy(), in initializeCallbacks()
139 IRB.getPtrTy(), // Pointer to data to be read. in initializeCallbacks()
141 IRB.getPtrTy(), // Pointer to type descriptor. in initializeCallbacks()
146 M.getOrInsertFunction(kTysanModuleCtorName, Attr, IRB.getVoidTy()); in initializeCallbacks()
177 IRBuilder<> IRB( in instrumentGlobals() local
182 instrumentWithShadowUpdate(IRB, TBAAMD, GV, AccessSize, false, false, in instrumentGlobals()
188 IRBuilder<> IRB(cast<Function>(TysanCtorFunction.getCallee()) in instrumentGlobals() local
[all …]
H A DThreadSanitizer.cpp204 IRBuilder<> IRB(Ctx); in initialize() local
209 IRB.getVoidTy(), IRB.getPtrTy()); in initialize()
211 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize()
213 IRB.getVoidTy()); in initialize()
215 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize()
216 IntegerType *OrdTy = IRB.getInt32Ty(); in initialize()
223 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize()
224 IRB.getPtrTy()); in initialize()
227 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize()
228 IRB.getPtrTy()); in initialize()
[all …]
H A DBoundsChecking.cpp62 BuilderTy &IRB, ScalarEvolution &SE) { in getBoundsCheckCond() argument
79 Value *NeededSizeVal = IRB.CreateTypeSize(IndexTy, NeededSize); in getBoundsCheckCond()
92 Value *ObjSize = IRB.CreateSub(Size, Offset); in getBoundsCheckCond()
95 : IRB.CreateICmpULT(Size, Offset); in getBoundsCheckCond()
100 : IRB.CreateICmpULT(ObjSize, NeededSizeVal); in getBoundsCheckCond()
101 Value *Or = IRB.CreateOr(Cmp2, Cmp3); in getBoundsCheckCond()
104 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IndexTy, 0)); in getBoundsCheckCond()
105 Or = IRB.CreateOr(Cmp1, Or); in getBoundsCheckCond()
111 static CallInst *InsertTrap(BuilderTy &IRB, bool DebugTrapBB, in InsertTrap() argument
114 return IRB.CreateIntrinsic(Intrinsic::trap, {}); in InsertTrap()
[all …]
H A DHWAddressSanitizer.cpp331 Value *getOpaqueNoopCast(IRBuilder<> &IRB, Value *Val);
333 Value *getDynamicShadowIfunc(IRBuilder<> &IRB);
334 Value *getShadowNonTls(IRBuilder<> &IRB);
337 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
363 void tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
364 Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag);
365 Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong);
370 Value *getNextTagWithCall(IRBuilder<> &IRB);
371 Value *getStackBaseTag(IRBuilder<> &IRB);
372 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, unsigned AllocaNo);
[all …]
H A DAddressSanitizer.cpp749 CallInst *createRuntimeCall(IRBuilder<> &IRB, FunctionCallee Callee, in createRuntimeCall() argument
752 assert(IRB.GetInsertBlock()->getParent() == OwnerFn);
754 CallInst *Inst = IRB.CreateCall(Callee, Args, Name, nullptr);
822 Instruction *genAMDGPUReportBlock(IRBuilder<> &IRB, Value *Cond,
837 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
844 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
964 void instrumentGlobals(IRBuilder<> &IRB, bool *CtorComdat);
965 void InstrumentGlobalsCOFF(IRBuilder<> &IRB,
968 void instrumentGlobalsELF(IRBuilder<> &IRB,
972 void InstrumentGlobalsMachO(IRBuilder<> &IRB,
[all …]
H A DDataFlowSanitizer.cpp518 Value *getShadowOffset(Value *Addr, IRBuilder<> &IRB);
531 void buildExternWeakCheckIfNeeded(IRBuilder<> &IRB, Function *F);
628 Value *getArgTLS(Type *T, unsigned ArgOffset, IRBuilder<> &IRB);
631 Value *getRetvalTLS(Type *T, IRBuilder<> &IRB);
636 Value *getArgOriginTLS(unsigned ArgNo, IRBuilder<> &IRB);
708 void addReachesFunctionCallbacksIfEnabled(IRBuilder<> &IRB, Instruction &I,
718 IRBuilder<> &IRB);
720 Value *collapseToPrimitiveShadow(Value *Shadow, IRBuilder<> &IRB);
745 Value *updateOrigin(Value *V, IRBuilder<> &IRB);
749 Value *updateOriginIfTainted(Value *Shadow, Value *Origin, IRBuilder<> &IRB);
[all …]
H A DSanitizerCoverage.cpp271 Value *CreateFunctionLocalGateCmp(IRBuilder<> &IRB);
360 IRBuilder<> IRB(M.getContext()); in CreateSecStartEnd() local
367 IRB.CreatePtrAdd(SecStart, ConstantInt::get(IntptrTy, sizeof(uint64_t))); in CreateSecStartEnd()
425 IRBuilder<> IRB(*C); in instrumentModule() local
426 Int64Ty = IRB.getInt64Ty(); in instrumentModule()
427 Int32Ty = IRB.getInt32Ty(); in instrumentModule()
428 Int16Ty = IRB.getInt16Ty(); in instrumentModule()
429 Int8Ty = IRB.getInt8Ty(); in instrumentModule()
430 Int1Ty = IRB.getInt1Ty(); in instrumentModule()
444 IRB.getInt8Ty(), IRB.getInt8Ty()); in instrumentModule()
[all …]
H A DMemProfInstrumentation.cpp204 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
263 Value *MemProfiler::memToShadow(Value *Shadow, IRBuilder<> &IRB) { in memToShadow() argument
265 Shadow = IRB.CreateAnd(Shadow, Mapping.Mask); in memToShadow()
266 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale); in memToShadow()
269 return IRB.CreateAdd(Shadow, DynamicShadowOffset); in memToShadow()
274 IRBuilder<> IRB(MI); in instrumentMemIntrinsic() local
276 IRB.CreateCall(isa<MemMoveInst>(MI) ? MemProfMemmove : MemProfMemcpy, in instrumentMemIntrinsic()
278 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)}); in instrumentMemIntrinsic()
280 IRB.CreateCall( in instrumentMemIntrinsic()
283 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerEmscriptenEHSjLj.cpp466 IRBuilder<> IRB(M->getContext()); in getAddrIntType() local
467 return IRB.getIntNTy(M->getDataLayout().getPointerSizeInBits()); in getAddrIntType()
481 IRBuilder<> IRB(M->getContext()); in getAddrSizeInt() local
482 return IRB.getIntN(M->getDataLayout().getPointerSizeInBits(), C); in getAddrSizeInt()
517 IRBuilder<> IRB(C); in wrapInvoke() local
518 IRB.SetInsertPoint(CI); in wrapInvoke()
522 IRB.CreateStore(getAddrSizeInt(M, 0), ThrewGV); in wrapInvoke()
530 CallInst *NewCall = IRB.CreateCall(getInvokeWrapper(CI), Args); in wrapInvoke()
570 IRB.CreateLoad(getAddrIntType(M), ThrewGV, ThrewGV->getName() + ".val"); in wrapInvoke()
571 IRB.CreateStore(getAddrSizeInt(M, 0), ThrewGV); in wrapInvoke()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64StackTagging.cpp143 IRBuilder<> IRB(SI); in addStore() local
144 applyStore(IRB, Offset, Offset + StoreSize, SI->getOperand(0)); in addStore()
152 IRBuilder<> IRB(MSI); in addMemSet() local
153 applyMemSet(IRB, Offset, Offset + StoreSize, in addMemSet()
158 void applyMemSet(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyMemSet() argument
174 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue()); in applyMemSet()
180 CurrentV = IRB.CreateOr(CurrentV, C); in applyMemSet()
187 Value *sliceValue(IRBuilder<> &IRB, Value *V, int64_t Offset) { in sliceValue() argument
189 V = IRB.CreateLShr(V, Offset * 8); in sliceValue()
190 V = IRB.CreateZExtOrTrunc(V, IRB.getInt64Ty()); in sliceValue()
[all …]
H A DAArch64Arm64ECCallLowering.cpp418 IRBuilder<> IRB(BB); in buildExitThunk() local
421 Value *Callee = IRB.CreateLoad(PtrTy, CalleePtr); in buildExitThunk()
435 Args.push_back(IRB.CreateAlloca(RetTy)); in buildExitThunk()
459 Value *Mem = IRB.CreateAlloca(Arg.getType()); in buildExitThunk()
460 IRB.CreateStore(&Arg, Mem); in buildExitThunk()
462 Type *IntTy = IRB.getIntNTy(DL.getTypeStoreSizeInBits(Arg.getType())); in buildExitThunk()
463 Args.push_back(IRB.CreateLoad(IntTy, Mem)); in buildExitThunk()
475 CallInst *Call = IRB.CreateCall(X64Ty, Callee, Args); in buildExitThunk()
483 RetVal = IRB.CreateLoad(RetTy, Args[1]); in buildExitThunk()
485 Value *CastAlloca = IRB.CreateAlloca(RetTy); in buildExitThunk()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSwLowerLDS.cpp178 : M(Mod), AMDGPUTM(TM), IRB(M.getContext()), DTCallback(Callback) {} in AMDGPUSwLowerLDS()
217 IRBuilder<> IRB; member in __anond97349270111::AMDGPUSwLowerLDS
251 ConstantAsMetadata::get(IRB.getInt32(i)), in getOrderedIndirectLDSAccessingKernels()
351 M, IRB.getPtrTy(), false, GlobalValue::InternalLinkage, in buildSwLDSGlobal()
352 PoisonValue::get(IRB.getPtrTy()), "llvm.amdgcn.sw.lds." + Func->getName(), in buildSwLDSGlobal()
366 auto *emptyCharArray = ArrayType::get(IRB.getInt8Ty(), 0); in buildSwDynLDSGlobal()
394 Type *Int32Ty = IRB.getInt32Ty(); in populateSwMetadataGlobal()
543 Type *Int32Ty = IRB.getInt32Ty(); in replaceKernelLDSAccesses()
567 Value *Offset = IRB.CreateLoad(Int32Ty, GEP); in replaceKernelLDSAccesses()
569 IRB.CreateInBoundsGEP(IRB.getInt8Ty(), SwLDS, {Offset}); in replaceKernelLDSAccesses()
[all …]
H A DAMDGPUCtorDtorLowering.cpp76 IRBuilder<> IRB(BasicBlock::Create(C, "entry", &F)); in createInitOrFiniCalls() local
79 Type *PtrTy = IRB.getPtrTy(AMDGPUAS::GLOBAL_ADDRESS); in createInitOrFiniCalls()
105 auto *CallBackTy = FunctionType::get(IRB.getVoidTy(), {}); in createInitOrFiniCalls()
113 auto *EndPtr = IRB.CreatePtrToInt(End, Int64Ty); in createInitOrFiniCalls()
114 auto *BeginPtr = IRB.CreatePtrToInt(Begin, Int64Ty); in createInitOrFiniCalls()
115 auto *ByteSize = IRB.CreateSub(EndPtr, BeginPtr, "", /*HasNUW=*/true, in createInitOrFiniCalls()
117 auto *Size = IRB.CreateAShr(ByteSize, ConstantInt::get(Int64Ty, 3), "", in createInitOrFiniCalls()
120 IRB.CreateSub(Size, ConstantInt::get(Int64Ty, 1), "", /*HasNUW=*/true, in createInitOrFiniCalls()
122 Start = IRB.CreateInBoundsGEP( in createInitOrFiniCalls()
128 IRB.CreateCondBr( in createInitOrFiniCalls()
[all …]
H A DAMDGPUAsanInstrumentation.cpp57 static Instruction *genAMDGPUReportBlock(Module &M, IRBuilder<> &IRB, in genAMDGPUReportBlock() argument
62 IRB.CreateIntrinsic(Intrinsic::amdgcn_ballot, IRB.getInt64Ty(), {Cond}); in genAMDGPUReportBlock()
63 ReportCond = IRB.CreateIsNotNull(Ballot); in genAMDGPUReportBlock()
67 ReportCond, &*IRB.GetInsertPoint(), false, in genAMDGPUReportBlock()
75 IRB.SetInsertPoint(Trm); in genAMDGPUReportBlock()
76 return IRB.CreateIntrinsic(Intrinsic::amdgcn_unreachable, {}); in genAMDGPUReportBlock()
79 static Value *createSlowPathCmp(Module &M, IRBuilder<> &IRB, Type *IntptrTy, in createSlowPathCmp() argument
85 IRB.CreateAnd(AddrLong, ConstantInt::get(IntptrTy, Granularity - 1)); in createSlowPathCmp()
88 LastAccessedByte = IRB.CreateAdd( in createSlowPathCmp()
92 IRB.CreateIntCast(LastAccessedByte, ShadowValue->getType(), false); in createSlowPathCmp()
[all …]
H A DAMDGPULowerBufferFatPointers.cpp431 IRBuilder<InstSimplifyFolder> IRB; member in __anone5d2dd830311::StoreFatPtrsAsIntsAndExpandMemcpyVisitor
448 : TypeMap(TypeMap), IRB(Ctx, InstSimplifyFolder(DL)), TM(TM) {} in StoreFatPtrsAsIntsAndExpandMemcpyVisitor()
472 Value *Cast = IRB.CreatePtrToInt(V, To, Name + ".int"); in fatPtrsToInts()
484 Value *Field = IRB.CreateExtractValue(V, I); in fatPtrsToInts()
487 Ret = IRB.CreateInsertValue(Ret, NewField, I); in fatPtrsToInts()
492 Value *Field = IRB.CreateExtractValue(V, Idx); in fatPtrsToInts()
495 Ret = IRB.CreateInsertValue(Ret, NewField, Idx); in fatPtrsToInts()
507 Value *Cast = IRB.CreateIntToPtr(V, To, Name + ".ptr"); in intsToFatPtrs()
518 Value *Field = IRB.CreateExtractValue(V, I); in intsToFatPtrs()
521 Ret = IRB.CreateInsertValue(Ret, NewField, I); in intsToFatPtrs()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DWasmEHPrepare.cpp164 IRBuilder<> IRB(M.getContext()); in doInitialization() local
165 P.LPadContextTy = StructType::get(IRB.getInt32Ty(), // lpad_index in doInitialization()
166 IRB.getPtrTy(), // lsda in doInitialization()
167 IRB.getInt32Ty() // selector in doInitialization()
195 IRBuilder<> IRB(F.getContext()); in prepareThrows() local
211 IRB.SetInsertPoint(BB); in prepareThrows()
212 IRB.CreateUnreachable(); in prepareThrows()
221 IRBuilder<> IRB(F.getContext()); in prepareEHPads() local
254 LSDAField = IRB.CreateConstInBoundsGEP2_32(LPadContextTy, LPadContextGV, 0, 1, in prepareEHPads()
256 SelectorField = IRB.CreateConstInBoundsGEP2_32(LPadContextTy, LPadContextGV, in prepareEHPads()
[all …]
H A DSafeStack.cpp133 Value *getStackGuard(IRBuilder<> &IRB, Function &F);
136 void checkStackGuard(IRBuilder<> &IRB, Function &F, Instruction &RI,
157 Value *moveStaticAllocasToUnsafeStack(IRBuilder<> &IRB, Function &F,
169 createStackRestorePoints(IRBuilder<> &IRB, Function &F,
364 Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { in getStackGuard() argument
365 Value *StackGuardVar = TL.getIRStackGuard(IRB); in getStackGuard()
370 return IRB.CreateIntrinsic(Intrinsic::stackguard, {}); in getStackGuard()
373 return IRB.CreateLoad(StackPtrTy, StackGuardVar, "StackGuard"); in getStackGuard()
428 SafeStack::createStackRestorePoints(IRBuilder<> &IRB, Function &F, in createStackRestorePoints() argument
446 DynamicTop = IRB.CreateAlloca(StackPtrTy, /*ArraySize=*/nullptr, in createStackRestorePoints()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXCtorDtorLowering.cpp100 IRBuilder<> IRB(BasicBlock::Create(C, "entry", &F)); in createInitOrFiniCalls() local
103 Type *PtrTy = IRB.getPtrTy(llvm::ADDRESS_SPACE_GLOBAL); in createInitOrFiniCalls()
134 auto *CallBackTy = FunctionType::get(IRB.getVoidTy(), {}); in createInitOrFiniCalls()
138 Value *BeginVal = IRB.CreateLoad(Begin->getType(), Begin, "begin"); in createInitOrFiniCalls()
139 Value *EndVal = IRB.CreateLoad(Begin->getType(), End, "stop"); in createInitOrFiniCalls()
141 auto *BeginInt = IRB.CreatePtrToInt(BeginVal, IntegerType::getInt64Ty(C)); in createInitOrFiniCalls()
142 auto *EndInt = IRB.CreatePtrToInt(EndVal, IntegerType::getInt64Ty(C)); in createInitOrFiniCalls()
143 auto *SubInst = IRB.CreateSub(EndInt, BeginInt); in createInitOrFiniCalls()
144 auto *Offset = IRB.CreateAShr( in createInitOrFiniCalls()
147 auto *ValuePtr = IRB.CreateGEP(PointerType::get(C, 0), BeginVal, in createInitOrFiniCalls()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMemoryTaggingSupport.cpp262 Value *readRegister(IRBuilder<> &IRB, StringRef Name) { in readRegister() argument
263 Module *M = IRB.GetInsertBlock()->getParent()->getParent(); in readRegister()
267 return IRB.CreateIntrinsic(Intrinsic::read_register, in readRegister()
268 IRB.getIntPtrTy(M->getDataLayout()), Args); in readRegister()
271 Value *getPC(const Triple &TargetTriple, IRBuilder<> &IRB) { in getPC() argument
272 Module *M = IRB.GetInsertBlock()->getParent()->getParent(); in getPC()
274 return memtag::readRegister(IRB, "pc"); in getPC()
275 return IRB.CreatePtrToInt(IRB.GetInsertBlock()->getParent(), in getPC()
276 IRB.getIntPtrTy(M->getDataLayout())); in getPC()
279 Value *getFP(IRBuilder<> &IRB) { in getFP() argument
[all …]
H A DModuleUtils.cpp32 IRBuilder<> IRB(M.getContext()); in appendToGlobalArray() local
49 IRB.getInt32Ty(), in appendToGlobalArray()
50 PointerType::get(M.getContext(), F->getAddressSpace()), IRB.getPtrTy()); in appendToGlobalArray()
55 CSVals[0] = IRB.getInt32(Priority); in appendToGlobalArray()
57 CSVals[2] = Data ? ConstantExpr::getPointerCast(Data, IRB.getPtrTy()) in appendToGlobalArray()
58 : Constant::getNullValue(IRB.getPtrTy()); in appendToGlobalArray()
88 IRBuilder<> IRB(M.getContext()); in transformGlobalArray() local
261 IRBuilder<> IRB(M.getContext()); in createSanitizerCtorAndInitFunctions() local
272 IRB.SetInsertPoint(EntryBB); in createSanitizerCtorAndInitFunctions()
274 IRB.CreateICmpNE(InitFn, ConstantPointerNull::get(InitFnPtr)); in createSanitizerCtorAndInitFunctions()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpLowering.cpp232 IRBuilder<> &IRB = OpBuilder.getIRB(); in lowerToCreateHandle() local
233 Type *Int8Ty = IRB.getInt8Ty(); in lowerToCreateHandle()
234 Type *Int32Ty = IRB.getInt32Ty(); in lowerToCreateHandle()
237 IRB.SetInsertPoint(CI); in lowerToCreateHandle()
248 IndexOp = IRB.CreateAdd(IndexOp, in lowerToCreateHandle()
267 IRBuilder<> &IRB = OpBuilder.getIRB(); in lowerToBindAndAnnotateHandle() local
268 Type *Int32Ty = IRB.getInt32Ty(); in lowerToBindAndAnnotateHandle()
271 IRB.SetInsertPoint(CI); in lowerToBindAndAnnotateHandle()
283 IndexOp = IRB.CreateAdd(IndexOp, in lowerToBindAndAnnotateHandle()
329 IRBuilder<> &IRB = OpBuilder.getIRB(); in replaceResRetUses() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1630 static void speculatePHINodeLoads(IRBuilderTy &IRB, PHINode &PN) { in speculatePHINodeLoads() argument
1635 IRB.SetInsertPoint(&PN); in speculatePHINodeLoads()
1636 PHINode *NewPN = IRB.CreatePHI(LoadTy, PN.getNumIncomingValues(), in speculatePHINodeLoads()
1667 IRB.SetInsertPoint(TI); in speculatePHINodeLoads()
1669 LoadInst *Load = IRB.CreateAlignedLoad( in speculatePHINodeLoads()
1774 IRBuilderTy &IRB) { in speculateSelectInstLoads() argument
1783 IRB.SetInsertPoint(&LI); in speculateSelectInstLoads()
1786 IRB.CreateAlignedLoad(LI.getType(), TV, LI.getAlign(), in speculateSelectInstLoads()
1789 IRB.CreateAlignedLoad(LI.getType(), FV, LI.getAlign(), in speculateSelectInstLoads()
1803 Value *V = IRB.CreateSelect(SI.getCondition(), TL, FL, in speculateSelectInstLoads()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFatLTOCleanup.cpp77 IRBuilder<> IRB(I); in cleanUpTypeCheckedLoad() local
85 IRB.CreateIntrinsic(Intrinsic::load_relative, {Offset->getType()}, in cleanUpTypeCheckedLoad()
88 Value *PtrAdd = IRB.CreatePtrAdd(Ptr, Offset); in cleanUpTypeCheckedLoad()
89 Load = IRB.CreateLoad(PtrTy, PtrAdd, "vfunc"); in cleanUpTypeCheckedLoad()
93 Replacement = IRB.CreateInsertValue(Replacement, True, {1}); in cleanUpTypeCheckedLoad()
94 Replacement = IRB.CreateInsertValue(Replacement, Load, {0}); in cleanUpTypeCheckedLoad()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp129 IRBuilder<> IRB(EntryBB); in lowerIntrinsicToFunction() local
130 auto *MemSet = IRB.CreateMemSet(Dest, Val, Len, MSI->getDestAlign(), in lowerIntrinsicToFunction()
132 IRB.CreateRetVoid(); in lowerIntrinsicToFunction()
139 IRBuilder<> IRB(EntryBB); in lowerIntrinsicToFunction() local
140 auto *BSwap = IRB.CreateIntrinsic(Intrinsic::bswap, Intrinsic->getType(), in lowerIntrinsicToFunction()
142 IRB.CreateRet(BSwap); in lowerIntrinsicToFunction()
269 IRBuilder<> IRB(II->getParent()); in lowerPtrAnnotation() local
270 IRB.SetInsertPoint(II); in lowerPtrAnnotation()
271 IRB.CreateIntrinsic( in lowerPtrAnnotation()
294 IRBuilder<> IRB(RotateBB); in lowerFunnelShifts() local
[all …]

1234