/external/llvm/unittests/IR/ |
PatternMatch.cpp | 38 IRBuilder<NoFolder> IRB; 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.CreateAdd(IRB.CreateAdd(Two, IRB.getInt32(8)) [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
MemorySanitizer.cpp | 420 IRBuilder<> IRB(*C); 426 WarningFn = M.getOrInsertFunction(WarningFnName, IRB.getVoidTy(), nullptr); 433 FunctionName, IRB.getVoidTy(), IRB.getIntNTy(AccessSize * 8), 434 IRB.getInt32Ty(), nullptr); 438 FunctionName, IRB.getVoidTy(), IRB.getIntNTy(AccessSize * 8), 439 IRB.getInt8PtrTy(), IRB.getInt32Ty(), nullptr); 443 "__msan_set_alloca_origin4", IRB.getVoidTy(), IRB.getInt8PtrTy(), IntptrTy [all...] |
ThreadSanitizer.cpp | 151 IRBuilder<> IRB(M.getContext()); 154 "__tsan_func_entry", IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); 156 M.getOrInsertFunction("__tsan_func_exit", IRB.getVoidTy(), nullptr)); 157 OrdTy = IRB.getInt32Ty(); 165 ReadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); 169 WriteName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); 174 UnalignedReadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)) [all...] |
SanitizerCoverage.cpp | 215 IRBuilder<> IRB(*C); 216 Type *Int8PtrTy = PointerType::getUnqual(IRB.getInt8Ty()); 217 Type *Int32PtrTy = PointerType::getUnqual(IRB.getInt32Ty()); 218 Int64PtrTy = PointerType::getUnqual(IRB.getInt64Ty()); 219 Int64Ty = IRB.getInt64Ty(); 238 EmptyAsm = InlineAsm::get(FunctionType::get(IRB.getVoidTy(), false), 251 Type *Int32Ty = IRB.getInt32Ty(); 252 Type *Int8Ty = IRB.getInt8Ty(); 276 IRB.CreatePointerCast(RealGuardArray, Int32PtrTy)); 289 IRB.CreatePointerCast(RealEightBitCounterArray, Int8PtrTy)) [all...] |
AddressSanitizer.cpp | 492 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong, 498 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 566 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M); 681 IRBuilder<> IRB(InstBefore); 682 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); 692 Value *DynamicAreaOffset = IRB.CreateCall(DynamicAreaOffsetFunc, {}); 694 DynamicAreaPtr = IRB.CreateAdd(IRB.CreatePtrToInt(SavedStack, IntptrTy), 698 IRB.CreateCall(AsanAllocasUnpoisonFunc, 699 {IRB.CreateLoad(DynamicAllocaLayout), DynamicAreaPtr}) [all...] |
EfficiencySanitizer.cpp | 195 Value *appToShadow(Value *Shadow, IRBuilder<> &IRB); 248 IRBuilder<> IRB(M.getContext()); 258 AlignedLoadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); 262 AlignedStoreName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); 266 UnalignedLoadName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)); 270 UnalignedStoreName, IRB.getVoidTy(), IRB.getInt8PtrTy(), nullptr)) [all...] |
DataFlowSanitizer.cpp | [all...] |
InstrProfiling.cpp | 519 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", RegisterF)); 522 IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); 531 IRB.CreateCall(NamesRegisterF, {IRB.CreateBitCast(NamesVar, VoidPtrTy), 532 IRB.getInt64(NamesSize)}); 535 IRB.CreateRetVoid(); 566 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", User)); 567 auto *Load = IRB.CreateLoad(Var); 568 IRB.CreateRet(Load) [all...] |
/external/llvm/lib/Transforms/Utils/ |
ModuleUtils.cpp | 25 IRBuilder<> IRB(M.getContext()); 26 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); 37 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), 38 IRB.getInt8PtrTy(), nullptr); 50 Constant::getNullValue(IRB.getInt8PtrTy()), nullptr); 57 EltTy = StructType::get(IRB.getInt32Ty(), PointerType::getUnqual(FnTy), 58 IRB.getInt8PtrTy(), nullptr); 63 CSVals[0] = IRB.getInt32(Priority); 67 CSVals[2] = Data ? ConstantExpr::getPointerCast(Data, IRB.getInt8PtrTy()) 68 : Constant::getNullValue(IRB.getInt8PtrTy()) [all...] |
/external/llvm/lib/CodeGen/ |
SafeStack.cpp | 128 Value *getOrCreateUnsafeStackPtr(IRBuilder<> &IRB, Function &F); 131 Value *getStackGuard(IRBuilder<> &IRB, Function &F); 134 void checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, 156 Value *moveStaticAllocasToUnsafeStack(IRBuilder<> &IRB, Function &F, 169 createStackRestorePoints(IRBuilder<> &IRB, Function &F, 359 Value *SafeStack::getOrCreateUnsafeStackPtr(IRBuilder<> &IRB, Function &F) { 362 if (Value *V = TL->getSafeStackPointerLocation(IRB)) 395 Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { 398 StackGuardVar = TL->getIRStackGuard(IRB); 402 return IRB.CreateLoad(StackGuardVar, "StackGuard") [all...] |
/external/llvm/lib/Transforms/Scalar/ |
SROA.cpp | [all...] |
Float2Int.cpp | 456 IRBuilder<> IRB(I); 462 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], I->getType()); 466 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], I->getType()); 472 NewV = IRB.CreateICmp(P, NewOperands[0], NewOperands[1], I->getName()); 477 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], ToTy); 481 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], ToTy); 487 NewV = IRB.CreateBinOp(mapBinOpcode(I->getOpcode()),
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
builder.h | 41 IRBuilder<>* IRB() { return mpIRBuilder; };
|
streamout_jit.cpp | 67 Value* enabled = TRUNC(LOAD(pBuf, { 0, SWR_STREAMOUT_BUFFER_enable }), IRB()->getInt1Ty()); 148 Type* simd4Ty = VectorType::get(IRB()->getFloatTy(), 4); 211 IRB()->SetInsertPoint(validBB); 274 FunctionType* fTy = FunctionType::get(IRB()->getVoidTy(), args, false); 281 IRB()->SetInsertPoint(entry); 293 IRB()->SetInsertPoint(returnBB);
|
/external/llvm/lib/Target/Hexagon/ |
HexagonGenExtract.cpp | 198 IRBuilder<> IRB(In); 203 Value *NewIn = IRB.CreateCall(ExtF, {BF, IRB.getInt32(W), IRB.getInt32(SR)}); 205 NewIn = IRB.CreateShl(NewIn, SL, CSL->getName());
|
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Transforms/Utils/ |
VNCoercion.h | 43 /// type. LoadedTy is the type of the load we want to replace. IRB is 48 IRBuilder<> &IRB, const DataLayout &DL);
|
/external/llvm/lib/Transforms/IPO/ |
CrossDSOCFI.cpp | 127 IRBuilder<> IRB(BB); 128 SwitchInst *SI = IRB.CreateSwitch(&CallSiteTypeId, TrapBB, TypeIds.size());
|
/external/llvm/lib/Target/SystemZ/ |
SystemZTDC.cpp | 361 IRBuilder<> IRB(I); 363 Instruction *TDC = IRB.CreateCall(TDCFunc, {V, MaskVal}); 364 Value *ICmp = IRB.CreateICmp(CmpInst::ICMP_NE, TDC, Zero32);
|