/external/llvm/unittests/IR/ |
H A D | PatternMatch.cpp | 38 IRBuilder<true, NoFolder> IRB; member in struct:__anon25667::PatternMatchTest 45 BB(BasicBlock::Create(Ctx, "entry", F)), IRB(BB) {} 54 Value *One = IRB.CreateAdd(IRB.CreateAdd(IRB.getInt32(1), IRB.getInt32(2)), 55 IRB.getInt32(42)); 56 Value *Two = IRB.CreateAdd(One, IRB.getInt32(42)); 57 Value *Leaf = IRB [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | ThreadSanitizer.cpp | 135 IRBuilder<> IRB(M.getContext()); 138 "__tsan_func_entry", IRB.getVoidTy(), IRB.getInt8PtrTy(), NULL)); 140 "__tsan_func_exit", IRB.getVoidTy(), NULL)); 141 OrdTy = IRB.getInt32Ty(); 147 ReadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), NULL)); 151 WriteName, IRB.getVoidTy(), IRB.getInt8PtrTy(), NULL)); 163 AtomicStoreName, IRB 422 createOrdering(IRBuilder< *IRB, AtomicOrdering ord) argument [all...] |
H A D | MemorySanitizer.cpp | 318 IRBuilder<> IRB(*C); 324 WarningFn = M.getOrInsertFunction(WarningFnName, IRB.getVoidTy(), NULL); 331 FunctionName, IRB.getVoidTy(), IRB.getIntNTy(AccessSize * 8), 332 IRB.getInt32Ty(), NULL); 336 FunctionName, IRB.getVoidTy(), IRB.getIntNTy(AccessSize * 8), 337 IRB.getInt8PtrTy(), IRB.getInt32Ty(), NULL); 341 "__msan_set_alloca_origin4", IRB 547 updateOrigin(Value *V, IRBuilder<> &IRB) argument 552 storeOrigin(IRBuilder< &IRB, Value *Addr, Value *Shadow, Value *Origin, unsigned Alignment, bool AsCall) argument 786 convertToShadowTyNoVec(Value *V, IRBuilder<> &IRB) argument 797 getShadowPtr(Value *Addr, Type *ShadowTy, IRBuilder<> &IRB) argument 809 getOriginPtr(Value *Addr, IRBuilder<> &IRB) argument 824 getShadowPtrForArgument(Value *A, IRBuilder<> &IRB, int ArgOffset) argument 833 getOriginPtrForArgument(Value *A, IRBuilder<> &IRB, int ArgOffset) argument 843 getShadowPtrForRetval(Value *A, IRBuilder<> &IRB) argument 850 getOriginPtrForRetval(IRBuilder< &IRB) argument 1281 IRBuilder<> &IRB; member in class:__anon25419::MemorySanitizerVisitor::Combiner 1285 Combiner(MemorySanitizerVisitor *MSV, IRBuilder<> &IRB) argument 1363 CreateShadowCast(IRBuilder< &IRB, Value *V, Type *dstTy, bool Signed = false) argument 1381 CreateAppToShadowCast(IRBuilder< &IRB, Value *V) argument 1511 getLowestPossibleValue(IRBuilder< &IRB, Value *A, Value *Sa, bool isSigned) argument 1528 getHighestPossibleValue(IRBuilder< &IRB, Value *A, Value *Sa, bool isSigned) argument 1943 Lower64ShadowExtend(IRBuilder< &IRB, Value *S, Type *T) argument 1951 VariableShadowExtend(IRBuilder< &IRB, Value *S) argument 2649 getShadowPtrForVAArgument(Type *Ty, IRBuilder<> &IRB, int ArgOffset) argument [all...] |
H A D | AddressSanitizer.cpp | 372 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong, 378 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 427 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M); 573 void poisonRedZones(const ArrayRef<uint8_t> ShadowBytes, IRBuilder<> &IRB, 575 void poisonAlloca(Value *V, uint64_t Size, IRBuilder<> &IRB, bool DoPoison); 577 void SetShadowToStackAfterReturnInlined(IRBuilder<> &IRB, Value *ShadowBase, 624 Value *AddressSanitizer::memToShadow(Value *Shadow, IRBuilder<> &IRB) { argument 626 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale); 631 return IRB.CreateOr(Shadow, ConstantInt::get(IntptrTy, Mapping.Offset)); 633 return IRB 817 createSlowPathCmp(IRBuilder< &IRB, Value *AddrLong, Value *ShadowValue, uint32_t TypeSize) argument 1024 InstrumentGlobals(IRBuilder< &IRB, Module &M) argument 1514 poisonRedZones(const ArrayRef<uint8_t> ShadowBytes, IRBuilder<> &IRB, Value *ShadowBase, bool DoPoison) argument 1557 SetShadowToStackAfterReturnInlined( IRBuilder< &IRB, Value *ShadowBase, int Size) argument 1744 poisonAlloca(Value *V, uint64_t Size, IRBuilder<> &IRB, bool DoPoison) argument [all...] |
H A D | DataFlowSanitizer.cpp | 784 IRBuilder<> IRB(Pos); 785 Value *Ne = IRB.CreateICmpNE(*i, DFSF.DFS.ZeroShadow); 803 IRBuilder<> IRB(F->getEntryBlock().begin()); 804 return ArgTLSPtr = IRB.CreateCall(DFS.GetArgTLS); 813 IRBuilder<> IRB(F->getEntryBlock().begin()); 814 return RetvalTLSPtr = IRB.CreateCall(DFS.GetRetvalTLS); 818 IRBuilder<> IRB(Pos); 819 return IRB.CreateConstGEP2_64(getArgTLSPtr(), 0, Idx); 836 IRBuilder<> IRB(ArgTLSPos); 837 Shadow = IRB [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 25 IRBuilder<> IRB(M.getContext()); 26 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); 46 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), 52 CSVals[0] = IRB.getInt32(Priority); 56 CSVals[2] = llvm::Constant::getNullValue(IRB.getInt8PtrTy());
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 1226 IRBuilderTy IRB(&SI); 1234 IRB.SetInsertPoint(LI); 1236 IRB.CreateLoad(TV, LI->getName() + ".sroa.speculate.load.true"); 1238 IRB.CreateLoad(FV, LI->getName() + ".sroa.speculate.load.false"); 1249 Value *V = IRB.CreateSelect(SI.getCondition(), TL, FL, 1263 static Value *buildGEP(IRBuilderTy &IRB, Value *BasePtr, argument 1273 return IRB.CreateInBoundsGEP(BasePtr, Indices, NamePrefix + "sroa_idx"); 1285 static Value *getNaturalGEPWithType(IRBuilderTy &IRB, const DataLayout &DL, argument 1290 return buildGEP(IRB, BasePtr, Indices, NamePrefix); 1305 Indices.push_back(IRB 1329 getNaturalGEPRecursively(IRBuilderTy &IRB, const DataLayout &DL, Value *Ptr, Type *Ty, APInt &Offset, Type *TargetTy, SmallVectorImpl<Value *> &Indices, Twine NamePrefix) argument 1402 getNaturalGEPWithOffset(IRBuilderTy &IRB, const DataLayout &DL, Value *Ptr, APInt Offset, Type *TargetTy, SmallVectorImpl<Value *> &Indices, Twine NamePrefix) argument 1442 getAdjustedPtr(IRBuilderTy &IRB, const DataLayout &DL, Value *Ptr, APInt Offset, Type *PointerTy, Twine NamePrefix) argument 1570 convertValue(const DataLayout &DL, IRBuilderTy &IRB, Value *V, Type *NewTy) argument 1851 extractInteger(const DataLayout &DL, IRBuilderTy &IRB, Value *V, IntegerType *Ty, uint64_t Offset, const Twine &Name) argument 1874 insertInteger(const DataLayout &DL, IRBuilderTy &IRB, Value *Old, Value *V, uint64_t Offset, const Twine &Name) argument 1905 extractVector(IRBuilderTy &IRB, Value *V, unsigned BeginIndex, unsigned EndIndex, const Twine &Name) argument 1933 insertVector(IRBuilderTy &IRB, Value *Old, Value *V, unsigned BeginIndex, const Twine &Name) argument 2038 IRBuilderTy IRB; member in class:__anon25491::AllocaSliceRewriter 2112 getNewAllocaSlicePtr(IRBuilderTy &IRB, Type *PointerTy) argument 2799 IRBuilderTy IRB; member in class:__anon25492::AggLoadStoreRewriter::OpSplitter [all...] |
H A D | LoopIdiomRecognize.cpp | 128 CallInst *createPopcntIntrinsic(IRBuilderTy &IRB, Value *Val, DebugLoc DL);
|