/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | arm_mve_defs.td | 46 class IRBuilder<string func> : IRBuilderBase { 48 // llvm::IRBuilder. 52 // Some other function that doesn't use the IRBuilder at all. 56 // A helper function defined in CGBuiltin.cpp, which takes the IRBuilder as 64 def add: IRBuilder<"CreateAdd">; 65 def mul: IRBuilder<"CreateMul">; 66 def not: IRBuilder<"CreateNot">; 67 def or: IRBuilder<"CreateOr">; 68 def and: IRBuilder<"CreateAnd">; 69 def xor: IRBuilder<"CreateXor">; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | MemorySanitizer.cpp | 779 IRBuilder<> IRB(*C); in createKernelApi() 844 IRBuilder<> IRB(*C); in createUserspaceApi() 918 IRBuilder<> IRB(*C); in initializeCallbacks() 1045 IRBuilder<> IRB(*C); in initializeModule() 1084 virtual void visitCallBase(CallBase &CB, IRBuilder<> &IRB) = 0; 1120 class NextNodeIRBuilder : public IRBuilder<> { 1122 explicit NextNodeIRBuilder(Instruction *IP) : IRBuilder<>(IP->getNextNode()) { in NextNodeIRBuilder() 1183 FnPrologueEnd = IRBuilder<>(F.getEntryBlock().getFirstNonPHI()) in MemorySanitizerVisitor() 1187 IRBuilder<> IRB(FnPrologueEnd); in MemorySanitizerVisitor() 1215 Value *updateOrigin(Value *V, IRBuilder<> &IRB) { in updateOrigin() [all …]
|
H A D | HWAddressSanitizer.cpp | 321 Value *getOpaqueNoopCast(IRBuilder<> &IRB, Value *Val); 323 Value *getDynamicShadowIfunc(IRBuilder<> &IRB); 324 Value *getShadowNonTls(IRBuilder<> &IRB); 327 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 353 void tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size); 354 Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag); 355 Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong); 360 Value *getNextTagWithCall(IRBuilder<> &IRB); 361 Value *getStackBaseTag(IRBuilder<> &IRB); 362 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, unsigned AllocaNo); [all …]
|
H A D | DataFlowSanitizer.cpp | 518 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 D | AddressSanitizer.cpp | 702 CallInst *createRuntimeCall(IRBuilder<> &IRB, FunctionCallee Callee, in createRuntimeCall() 774 Instruction *genAMDGPUReportBlock(IRBuilder<> &IRB, Value *Cond, 789 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong, 796 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 914 void instrumentGlobals(IRBuilder<> &IRB, Module &M, bool *CtorComdat); 915 void InstrumentGlobalsCOFF(IRBuilder<> &IRB, Module &M, 918 void instrumentGlobalsELF(IRBuilder<> &IRB, Module &M, 922 void InstrumentGlobalsMachO(IRBuilder<> &IRB, Module &M, 926 InstrumentGlobalsWithMetadataArray(IRBuilder<> &IRB, Module &M, 1095 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst() [all …]
|
H A D | NumericalStabilitySanitizer.cpp | 387 Value *getValue(Type *IntptrTy, IRBuilder<> &Builder) const { in getValue() 523 Value *emitCheck(Value *V, Value *ShadowV, IRBuilder<> &Builder, 525 Value *emitCheckInternal(Value *V, Value *ShadowV, IRBuilder<> &Builder, 533 const ValueToShadowMap &Map, IRBuilder<> &Builder); 537 IRBuilder<> &Builder); 539 const ValueToShadowMap &Map, IRBuilder<> &Builder); 541 const ValueToShadowMap &Map, IRBuilder<> &Builder); 707 IRBuilder<> Builder(F.getEntryBlock().getFirstNonPHI()); in createShadowArguments() 790 IRBuilder<> Builder(&CI); in populateShadowStack() 839 IRBuilder<> &Builder, in emitCheckInternal() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUCodeGenPrepare.cpp | 149 Type *getI32Ty(IRBuilder<> &B, const Type *T) const; 249 Value* expandDivRem24(IRBuilder<> &Builder, BinaryOperator &I, 253 Value *expandDivRem24Impl(IRBuilder<> &Builder, BinaryOperator &I, 258 Value* expandDivRem32(IRBuilder<> &Builder, BinaryOperator &I, 261 Value *shrinkDivRem64(IRBuilder<> &Builder, BinaryOperator &I, 276 Value *applyFractPat(IRBuilder<> &Builder, Value *FractArg); 281 Value *optimizeWithRsq(IRBuilder<> &Builder, Value *Num, Value *Den, 285 Value *optimizeWithRcp(IRBuilder<> &Builder, Value *Num, Value *Den, 287 Value *optimizeWithFDivFast(IRBuilder<> &Builder, Value *Num, Value *Den, 290 Value *visitFDivElement(IRBuilder<> &Builder, Value *Num, Value *Den, [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ExpandVariadics.cpp | 119 IRBuilder<> &Builder, AllocaInst *VaList, 177 bool runOnFunction(Module &M, IRBuilder<> &Builder, Function *F); 182 Function *deriveFixedArityReplacement(Module &M, IRBuilder<> &Builder, 185 Function *defineVariadicWrapper(Module &M, IRBuilder<> &Builder, 189 bool expandCall(Module &M, IRBuilder<> &Builder, CallBase *CB, FunctionType *, 198 bool expandIntrinsicUsers(Module &M, IRBuilder<> &Builder, in expandIntrinsicUsers() 214 bool expandVAIntrinsicUsersWithAddrspace(Module &M, IRBuilder<> &Builder, in expandVAIntrinsicUsersWithAddrspace() 230 bool expandVAIntrinsicCall(IRBuilder<> &Builder, const DataLayout &DL, 233 bool expandVAIntrinsicCall(IRBuilder<> &, const DataLayout &, 236 bool expandVAIntrinsicCall(IRBuilder<> &Builder, const DataLayout &DL, [all …]
|
H A D | CrossDSOCFI.cpp | 112 IRBuilder<> IRBFail(TrapBB); in buildCFICheck() 119 IRBuilder<> IRBExit(ExitBB); in buildCFICheck() 122 IRBuilder<> IRB(BB); in buildCFICheck() 127 IRBuilder<> IRBTest(TestBB); in buildCFICheck()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVEmitIntrinsics.cpp | 109 void preprocessCompositeConstants(IRBuilder<> &B); 110 void preprocessUndefs(IRBuilder<> &B); 114 IRBuilder<> &B) { in buildIntrWithMD() 123 void buildAssignType(IRBuilder<> &B, Type *ElemTy, Value *Arg); 124 void buildAssignPtr(IRBuilder<> &B, Type *ElemTy, Value *Arg); 127 void replaceMemInstrUses(Instruction *Old, Instruction *New, IRBuilder<> &B); 128 void processInstrAfterVisit(Instruction *I, IRBuilder<> &B); 129 bool insertAssignPtrTypeIntrs(Instruction *I, IRBuilder<> &B, 131 void insertAssignTypeIntrs(Instruction *I, IRBuilder<> &B); 133 IRBuilder<> &B); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandVectorPredication.cpp | 151 Value *createStepVector(IRBuilder<> &Builder, Type *LaneTy, 164 Value *convertEVLToMask(IRBuilder<> &Builder, Value *EVLParam, 174 Value *expandPredicationInBinaryOperator(IRBuilder<> &Builder, 178 Value *expandPredicationToIntCall(IRBuilder<> &Builder, VPIntrinsic &PI, 182 Value *expandPredicationToFPCall(IRBuilder<> &Builder, VPIntrinsic &PI, 186 Value *expandPredicationInReduction(IRBuilder<> &Builder, 190 Value *expandPredicationToCastIntrinsic(IRBuilder<> &Builder, 194 Value *expandPredicationInMemoryIntrinsic(IRBuilder<> &Builder, 198 Value *expandPredicationInComparison(IRBuilder<> &Builder, 218 Value *CachingVPExpander::createStepVector(IRBuilder<> &Builder, Type *LaneTy, in createStepVector() [all …]
|
H A D | SafeStack.cpp | 134 Value *getStackGuard(IRBuilder<> &IRB, Function &F); 137 void checkStackGuard(IRBuilder<> &IRB, Function &F, Instruction &RI, 158 Value *moveStaticAllocasToUnsafeStack(IRBuilder<> &IRB, Function &F, 170 createStackRestorePoints(IRBuilder<> &IRB, Function &F, 365 Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { in getStackGuard() 429 SafeStack::createStackRestorePoints(IRBuilder<> &IRB, Function &F, in createStackRestorePoints() 465 void SafeStack::checkStackGuard(IRBuilder<> &IRB, Function &F, Instruction &RI, in checkStackGuard() 477 IRBuilder<> IRBFail(CheckTerm); in checkStackGuard() 488 IRBuilder<> &IRB, Function &F, ArrayRef<AllocaInst *> StaticAllocas, in moveStaticAllocasToUnsafeStack() 616 IRBuilder<> IRBUser(InsertBefore); in moveStaticAllocasToUnsafeStack() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | GuardUtils.cpp | 55 IRBuilder<> B(DeoptBlockTerm); in makeGuardControlFlowExplicit() 72 IRBuilder<> B(CheckBI); in makeGuardControlFlowExplicit() 95 IRBuilder<> B(WidenableBR); in widenWidenableBranch() 99 IRBuilder<> B(WidenableBR); in widenWidenableBranch() 116 IRBuilder<> B(WidenableBR); in setWidenableBranchCond()
|
H A D | AMDGPUEmitPrintf.cpp | 30 static Value *fitArgInto64Bits(IRBuilder<> &Builder, Value *Arg) { in fitArgInto64Bits() 54 static Value *callPrintfBegin(IRBuilder<> &Builder, Value *Version) { in callPrintfBegin() 61 static Value *callAppendArgs(IRBuilder<> &Builder, Value *Desc, int NumArgs, in callAppendArgs() 77 static Value *appendArg(IRBuilder<> &Builder, Value *Desc, Value *Arg, in appendArg() 87 static Value *getStrlenWithNull(IRBuilder<> &Builder, Value *Str) { in getStrlenWithNull() 154 static Value *callAppendStringN(IRBuilder<> &Builder, Value *Desc, Value *Str, in callAppendStringN() 165 static Value *appendString(IRBuilder<> &Builder, Value *Desc, Value *Arg, in appendString() 171 static Value *processArg(IRBuilder<> &Builder, Value *Desc, Value *Arg, in processArg() 223 IRBuilder<> &Builder, ArrayRef<Value *> Args, Value *Fmt, in callBufferedPrintfStart() 310 static void processConstantStringArg(StringData *SD, IRBuilder<> &Builder, in processConstantStringArg() [all …]
|
H A D | LowerMemIntrinsics.cpp | 66 IRBuilder<> PLBuilder(PreLoopBB->getTerminator()); in createMemCpyLoopKnownSize() 71 IRBuilder<> LoopBuilder(LoopBB); in createMemCpyLoopKnownSize() 109 IRBuilder<> RBuilder(PostLoopBB ? PostLoopBB->getFirstNonPHI() in createMemCpyLoopKnownSize() 208 IRBuilder<> PLBuilder(PreLoopBB->getTerminator()); in createMemCpyLoopUnknownSize() 225 IRBuilder<> LoopBuilder(LoopBB); in createMemCpyLoopUnknownSize() 295 IRBuilder<> RHBuilder(ResHeaderBB); in createMemCpyLoopUnknownSize() 300 IRBuilder<> ResBuilder(ResLoopBB); in createMemCpyLoopUnknownSize() 421 IRBuilder<> LoopBuilder(LoopBB); in createMemMoveLoop() 443 IRBuilder<> FwdLoopBuilder(FwdLoopBB); in createMemMoveLoop() 474 IRBuilder<> Builder(OrigBB->getTerminator()); in createMemSetLoop() [all …]
|
H A D | FlattenCFG.cpp | 40 bool FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder); 45 bool MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder); 136 bool FlattenCFGOpt::FlattenParallelAndOr(BasicBlock *BB, IRBuilder<> &Builder) { in FlattenParallelAndOr() 281 IRBuilder<>::InsertPointGuard Guard(Builder); in FlattenParallelAndOr() 409 bool FlattenCFGOpt::MergeIfRegion(BasicBlock *BB, IRBuilder<> &Builder) { in MergeIfRegion() 523 IRBuilder<> Builder(BB); in run()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | MemoryTaggingSupport.h | 84 Value *readRegister(IRBuilder<> &IRB, StringRef Name); 85 Value *getFP(IRBuilder<> &IRB); 86 Value *getPC(const Triple &TargetTriple, IRBuilder<> &IRB); 87 Value *getAndroidSlotPtr(IRBuilder<> &IRB, int Slot);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 91 IRBuilder<> &Builder); 96 GetElementPtrInst *GEP, IRBuilder<> &Builder); 111 IRBuilder<> &Builder); 114 IRBuilder<> &Builder, 118 IRBuilder<> &Builder, 124 IRBuilder<> &Builder); 127 IRBuilder<> &Builder, 131 IRBuilder<> &Builder, 137 IRBuilder<> &Builder); 143 IRBuilder<> &Builder); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86WinEHState.cpp | 24 #include "llvm/IR/IRBuilder.h" 61 void linkExceptionRegistration(IRBuilder<> &Builder, Function *Handler); 62 void unlinkExceptionRegistration(IRBuilder<> &Builder); 66 Value *emitEHLSDA(IRBuilder<> &Builder, Function *F); 71 void rewriteSetJmpCall(IRBuilder<> &Builder, Function &F, CallBase &Call, 277 IRBuilder<> Builder(&F->getEntryBlock(), F->getEntryBlock().begin()); in emitExceptionRegistrationRecord() 371 Value *WinEHStatePass::emitEHLSDA(IRBuilder<> &Builder, Function *F) { in emitExceptionRegistrationRecord() 403 IRBuilder<> Builder(EntryBB); in generateLSDAInEAXThunk() 416 void WinEHStatePass::linkExceptionRegistration(IRBuilder<> &Builder, in generateLSDAInEAXThunk() 433 void WinEHStatePass::unlinkExceptionRegistration(IRBuilder<> in linkExceptionRegistration() [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 153 IRBuilder<> IRB(SI); in addStore() 162 IRBuilder<> IRB(MSI); in addMemSet() 168 void applyMemSet(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyMemSet() 197 Value *sliceValue(IRBuilder<> &IRB, Value *V, int64_t Offset) { in sliceValue() 210 void applyStore(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyStore() 224 void generate(IRBuilder<> &IRB) { in generate() 263 void emitZeroes(IRBuilder<> &IRB, uint64_t Offset, uint64_t Size) { in emitZeroes() 273 void emitUndef(IRBuilder<> &IRB, uint64_t Offset, uint64_t Size) { in emitUndef() 282 void emitPair(IRBuilder<> &IRB, uint64_t Offset, Value *A, Value *B) { in emitPair() 291 Value *flatten(IRBuilder<> &IRB, Value *V) { in flatten() [all …]
|
H A D | SMEABIPass.cpp | 44 bool updateNewStateFunctions(Module *M, Function *F, IRBuilder<> &Builder, 61 void emitTPIDR2Save(Module *M, IRBuilder<> &Builder) { in emitTPIDR2Save() 100 IRBuilder<> &Builder, SMEAttrs FnAttrs) { in updateNewStateFunctions() 169 IRBuilder<> Builder(Context); in runOnFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXGenericToNVVM.cpp | 42 IRBuilder<> &Builder); 45 IRBuilder<> &Builder); 47 IRBuilder<> &Builder); 89 IRBuilder<> Builder(F.getEntryBlock().getFirstNonPHIOrDbg()); in runOnModule() 138 IRBuilder<> &Builder) { in remapConstant() 177 Module *M, Function *F, Constant *C, IRBuilder<> &Builder) { in remapConstantVectorOrConstantAggregate() 216 IRBuilder<> &Builder) { in remapConstantExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILIntrinsicExpansion.cpp | 54 IRBuilder<> Builder(Orig->getParent()); in expandAbs() 84 IRBuilder<> Builder(Orig->getParent()); in expandIntegerDot() 105 IRBuilder<> Builder(Orig->getParent()); in expandExpIntrinsic() 127 IRBuilder<> Builder(Orig->getParent()); in expandAnyIntrinsic() 164 IRBuilder<> Builder(Orig->getParent()); in expandLerpIntrinsic() 177 IRBuilder<> Builder(Orig->getParent()); in expandLogIntrinsic() 205 IRBuilder<> Builder(Orig->getParent()); in expandPowIntrinsic() 251 IRBuilder<> Builder(Orig->getParent()); in expandClampIntrinsic()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/ |
H A D | Instrumentation.h | 191 struct InstrumentationIRBuilder : IRBuilder<> { 192 static void ensureDebugInfo(IRBuilder<> &IRB, const Function &F) { in ensureDebugInfo() 199 explicit InstrumentationIRBuilder(Instruction *IP) : IRBuilder<>(IP) { in InstrumentationIRBuilder()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | Scalarizer.cpp | 156 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()() 169 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()() 182 Value *operator()(IRBuilder<> &Builder, Value *Op, const Twine &Name) const { in operator ()() 194 Value *operator()(IRBuilder<> &Builder, Value *Op0, Value *Op1, in operator ()() 223 static Value *concatenate(IRBuilder<> &Builder, ArrayRef<Value *> Fragments, in concatenate() 366 IRBuilder<> Builder(BB, BBI); in operator []() 609 IRBuilder<> Builder(&I); in splitUnary() 637 IRBuilder<> Builder(&I); in splitBinary() 719 IRBuilder<> Builder(&CI); in splitCall() 764 IRBuilder<> Builder(&SI); in visitSelectInst() [all …]
|