/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | MemorySanitizer.cpp | 693 IRBuilder<> IRB(*C); in createKernelApi() local 707 WarningFn = M.getOrInsertFunction("__msan_warning", IRB.getVoidTy(), in createKernelApi() 708 IRB.getInt32Ty()); in createKernelApi() 712 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi() 713 ArrayType::get(IRB.getInt64Ty(), kRetvalTLSSize / 8), in createKernelApi() 714 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), in createKernelApi() 715 ArrayType::get(IRB.getInt64Ty(), kParamTLSSize / 8), /* va_arg_origin */ in createKernelApi() 716 IRB.getInt64Ty(), ArrayType::get(OriginTy, kParamTLSSize / 4), OriginTy, in createKernelApi() 721 Type *RetTy = StructType::get(PointerType::get(IRB.getInt8Ty(), 0), in createKernelApi() 722 PointerType::get(IRB.getInt32Ty(), 0)); in createKernelApi() [all …]
|
D | HWAddressSanitizer.cpp | 204 Value *getDynamicShadowIfunc(IRBuilder<> &IRB); 205 Value *getDynamicShadowNonTls(IRBuilder<> &IRB); 209 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 220 bool tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size); 221 Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag); 222 Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong); 227 Value *readRegister(IRBuilder<> &IRB, StringRef Name); 229 Value *getNextTagWithCall(IRBuilder<> &IRB); 230 Value *getStackBaseTag(IRBuilder<> &IRB); 231 Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, AllocaInst *AI, [all …]
|
D | ThreadSanitizer.cpp | 204 IRBuilder<> IRB(M.getContext()); in initialize() local 210 IRB.getVoidTy(), IRB.getInt8PtrTy()); in initialize() 212 M.getOrInsertFunction("__tsan_func_exit", Attr, IRB.getVoidTy()); in initialize() 214 IRB.getVoidTy()); in initialize() 216 M.getOrInsertFunction("__tsan_ignore_thread_end", Attr, IRB.getVoidTy()); in initialize() 217 IntegerType *OrdTy = IRB.getInt32Ty(); in initialize() 224 TsanRead[i] = M.getOrInsertFunction(ReadName, Attr, IRB.getVoidTy(), in initialize() 225 IRB.getInt8PtrTy()); in initialize() 228 TsanWrite[i] = M.getOrInsertFunction(WriteName, Attr, IRB.getVoidTy(), in initialize() 229 IRB.getInt8PtrTy()); in initialize() [all …]
|
D | AddressSanitizer.cpp | 635 Value *createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong, 641 Value *memToShadow(Value *Shadow, IRBuilder<> &IRB); 770 bool InstrumentGlobals(IRBuilder<> &IRB, Module &M, bool *CtorComdat); 771 void InstrumentGlobalsCOFF(IRBuilder<> &IRB, Module &M, 774 void InstrumentGlobalsELF(IRBuilder<> &IRB, Module &M, 778 void InstrumentGlobalsMachO(IRBuilder<> &IRB, Module &M, 782 InstrumentGlobalsWithMetadataArray(IRBuilder<> &IRB, Module &M, 976 IRBuilder<> IRB(InstBefore); in unpoisonDynamicAllocasBeforeInst() local 977 Value *DynamicAreaPtr = IRB.CreatePtrToInt(SavedStack, IntptrTy); in unpoisonDynamicAllocasBeforeInst() 987 Value *DynamicAreaOffset = IRB.CreateCall(DynamicAreaOffsetFunc, {}); in unpoisonDynamicAllocasBeforeInst() [all …]
|
D | BoundsChecking.cpp | 60 BuilderTy &IRB, ScalarEvolution &SE) { in getBoundsCheckCond() argument 90 Value *ObjSize = IRB.CreateSub(Size, Offset); in getBoundsCheckCond() 93 : IRB.CreateICmpULT(Size, Offset); in getBoundsCheckCond() 98 : IRB.CreateICmpULT(ObjSize, NeededSizeVal); in getBoundsCheckCond() 99 Value *Or = IRB.CreateOr(Cmp2, Cmp3); in getBoundsCheckCond() 102 Value *Cmp1 = IRB.CreateICmpSLT(Offset, ConstantInt::get(IntTy, 0)); in getBoundsCheckCond() 103 Or = IRB.CreateOr(Cmp1, Or); in getBoundsCheckCond() 115 static void insertBoundsCheck(Value *Or, BuilderTy IRB, GetTrapBBT GetTrapBB) { in insertBoundsCheck() argument 126 BasicBlock::iterator SplitI = IRB.GetInsertPoint(); in insertBoundsCheck() 135 BranchInst::Create(GetTrapBB(IRB), OldBB); in insertBoundsCheck() [all …]
|
D | SanitizerCoverage.cpp | 314 IRBuilder<> IRB(M.getContext()); in CreateSecStartEnd() local 315 Value *SecEndPtr = IRB.CreatePointerCast(SecEnd, Ty); in CreateSecStartEnd() 317 return std::make_pair(IRB.CreatePointerCast(SecStart, Ty), SecEndPtr); in CreateSecStartEnd() 321 auto SecStartI8Ptr = IRB.CreatePointerCast(SecStart, Int8PtrTy); in CreateSecStartEnd() 322 auto GEP = IRB.CreateGEP(Int8Ty, SecStartI8Ptr, in CreateSecStartEnd() 324 return std::make_pair(IRB.CreatePointerCast(GEP, Ty), SecEndPtr); in CreateSecStartEnd() 374 IRBuilder<> IRB(*C); in instrumentModule() local 375 Int64PtrTy = PointerType::getUnqual(IRB.getInt64Ty()); in instrumentModule() 376 Int32PtrTy = PointerType::getUnqual(IRB.getInt32Ty()); in instrumentModule() 377 Int8PtrTy = PointerType::getUnqual(IRB.getInt8Ty()); in instrumentModule() [all …]
|
D | DataFlowSanitizer.cpp | 987 IRBuilder<> IRB(Pos); in runOnModule() local 988 Value *Ne = IRB.CreateICmpNE(V, DFSF.DFS.ZeroShadow); in runOnModule() 1006 IRBuilder<> IRB(&F->getEntryBlock().front()); in getArgTLSPtr() local 1007 return ArgTLSPtr = IRB.CreateCall(DFS.GetArgTLSTy, DFS.GetArgTLS, {}); in getArgTLSPtr() 1016 IRBuilder<> IRB(&F->getEntryBlock().front()); in getRetvalTLS() local 1018 IRB.CreateCall(DFS.GetRetvalTLSTy, DFS.GetRetvalTLS, {}); in getRetvalTLS() 1022 IRBuilder<> IRB(Pos); in getArgTLS() local 1023 return IRB.CreateConstGEP2_64(ArrayType::get(DFS.ShadowTy, 64), in getArgTLS() 1041 IRBuilder<> IRB(ArgTLSPos); in getShadow() local 1043 IRB.CreateLoad(DFS.ShadowTy, getArgTLS(A->getArgNo(), ArgTLSPos)); in getShadow() [all …]
|
D | InstrProfiling.cpp | 962 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", RegisterF)); in emitRegistration() local 965 IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); in emitRegistration() 974 IRB.CreateCall(NamesRegisterF, {IRB.CreateBitCast(NamesVar, VoidPtrTy), in emitRegistration() 975 IRB.getInt64(NamesSize)}); in emitRegistration() 978 IRB.CreateRetVoid(); in emitRegistration() 1008 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", User)); in emitRuntimeHook() local 1009 auto *Load = IRB.CreateLoad(Int32Ty, Var); in emitRuntimeHook() 1010 IRB.CreateRet(Load); in emitRuntimeHook() 1044 IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", F)); in emitInitialization() local 1045 IRB.CreateCall(RegisterF, {}); in emitInitialization() [all …]
|
D | ControlHeightReduction.cpp | 392 IRBuilder<> &IRB, 396 IRBuilder<> &IRB, 401 IRBuilder<> &IRB, 1854 IRBuilder<> IRB(PreEntryBlock->getTerminator()); in fixupBranchesAndSelects() local 1858 fixupBranch(R, Scope, IRB, MergedCondition, CHRBranchBias); in fixupBranchesAndSelects() 1862 fixupSelect(SI, Scope, IRB, MergedCondition, CHRBranchBias); in fixupBranchesAndSelects() 1889 IRBuilder<> &IRB, in fixupBranch() argument 1919 addToMergedCondition(ConditionTrue, Cond, BI, Scope, IRB, in fixupBranch() 1933 IRBuilder<> &IRB, in fixupSelect() argument 1947 addToMergedCondition(IsTrueBiased, Cond, SI, Scope, IRB, in fixupSelect() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 315 static GlobalVariable *getGlobalVariableI32(Module &M, IRBuilder<> &IRB, in getGlobalVariableI32() argument 319 dyn_cast<GlobalVariable>(M.getOrInsertGlobal(Name, IRB.getInt32Ty())); in getGlobalVariableI32() 387 IRBuilder<> IRB(C); in wrapInvoke() local 388 IRB.SetInsertPoint(CI); in wrapInvoke() 392 IRB.CreateStore(IRB.getInt32(0), ThrewGV); in wrapInvoke() 400 CallInst *NewCall = IRB.CreateCall(getInvokeWrapper(CI), Args); in wrapInvoke() 440 IRB.CreateLoad(IRB.getInt32Ty(), ThrewGV, ThrewGV->getName() + ".val"); in wrapInvoke() 441 IRB.CreateStore(IRB.getInt32(0), ThrewGV); in wrapInvoke() 546 IRBuilder<> IRB(C); in wrapTestSetjmp() local 547 IRB.SetInsertPoint(InsertPt); in wrapTestSetjmp() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | WasmEHPrepare.cpp | 145 IRBuilder<> IRB(M.getContext()); in doInitialization() local 146 LPadContextTy = StructType::get(IRB.getInt32Ty(), // lpad_index in doInitialization() 147 IRB.getInt8PtrTy(), // lsda in doInitialization() 148 IRB.getInt32Ty() // selector in doInitialization() 176 IRBuilder<> IRB(F.getContext()); in prepareThrows() local 195 IRB.SetInsertPoint(BB); in prepareThrows() 196 IRB.CreateUnreachable(); in prepareThrows() 205 IRBuilder<> IRB(F.getContext()); in prepareEHPads() local 226 LPadIndexField = IRB.CreateConstGEP2_32(LPadContextTy, LPadContextGV, 0, 0, in prepareEHPads() 229 IRB.CreateConstGEP2_32(LPadContextTy, LPadContextGV, 0, 1, "lsda_gep"); in prepareEHPads() [all …]
|
D | SafeStack.cpp | 147 Value *getStackGuard(IRBuilder<> &IRB, Function &F); 150 void checkStackGuard(IRBuilder<> &IRB, Function &F, ReturnInst &RI, 172 Value *moveStaticAllocasToUnsafeStack(IRBuilder<> &IRB, Function &F, 185 createStackRestorePoints(IRBuilder<> &IRB, Function &F, 370 Value *SafeStack::getStackGuard(IRBuilder<> &IRB, Function &F) { in getStackGuard() argument 371 Value *StackGuardVar = TL.getIRStackGuard(IRB); in getStackGuard() 375 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() 448 IRB.CreateStore(StaticTop, DynamicTop); in createStackRestorePoints() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64StackTagging.cpp | 112 IRBuilder<> IRB(SI); in addStore() local 113 applyStore(IRB, Offset, Offset + StoreSize, SI->getOperand(0)); in addStore() 121 IRBuilder<> IRB(MSI); in addMemSet() local 122 applyMemSet(IRB, Offset, Offset + StoreSize, in addMemSet() 127 void applyMemSet(IRBuilder<> &IRB, int64_t Start, int64_t End, in applyMemSet() argument 143 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue()); in applyMemSet() 149 CurrentV = IRB.CreateOr(CurrentV, C); in applyMemSet() 156 Value *sliceValue(IRBuilder<> &IRB, Value *V, int64_t Offset) { in sliceValue() argument 158 V = IRB.CreateLShr(V, Offset * 8); in sliceValue() 159 V = IRB.CreateZExtOrTrunc(V, IRB.getInt64Ty()); in sliceValue() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1358 IRBuilderTy IRB(&SI); in speculateSelectInstLoads() local 1366 IRB.SetInsertPoint(LI); in speculateSelectInstLoads() 1367 LoadInst *TL = IRB.CreateLoad(LI->getType(), TV, in speculateSelectInstLoads() 1369 LoadInst *FL = IRB.CreateLoad(LI->getType(), FV, in speculateSelectInstLoads() 1384 Value *V = IRB.CreateSelect(SI.getCondition(), TL, FL, in speculateSelectInstLoads() 1398 static Value *buildGEP(IRBuilderTy &IRB, Value *BasePtr, in buildGEP() argument 1408 return IRB.CreateInBoundsGEP(BasePtr->getType()->getPointerElementType(), in buildGEP() 1421 static Value *getNaturalGEPWithType(IRBuilderTy &IRB, const DataLayout &DL, in getNaturalGEPWithType() argument 1426 return buildGEP(IRB, BasePtr, Indices, NamePrefix); in getNaturalGEPWithType() 1441 Indices.push_back(IRB.getIntN(OffsetSize, 0)); in getNaturalGEPWithType() [all …]
|
D | Float2Int.cpp | 463 IRBuilder<> IRB(I); in convert() local 469 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], I->getType()); in convert() 473 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], I->getType()); in convert() 479 NewV = IRB.CreateICmp(P, NewOperands[0], NewOperands[1], I->getName()); in convert() 484 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], ToTy); in convert() 488 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], ToTy); in convert() 492 NewV = IRB.CreateNeg(NewOperands[0], I->getName()); in convert() 498 NewV = IRB.CreateBinOp(mapBinOpcode(I->getOpcode()), in convert()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | ModuleUtils.cpp | 25 IRBuilder<> IRB(M.getContext()); in appendToGlobalArray() local 26 FunctionType *FnTy = FunctionType::get(IRB.getVoidTy(), false); in appendToGlobalArray() 32 IRB.getInt32Ty(), PointerType::getUnqual(FnTy), IRB.getInt8PtrTy()); in appendToGlobalArray() 45 CSVals[0] = IRB.getInt32(Priority); in appendToGlobalArray() 47 CSVals[2] = Data ? ConstantExpr::getPointerCast(Data, IRB.getInt8PtrTy()) in appendToGlobalArray() 48 : Constant::getNullValue(IRB.getInt8PtrTy()); in appendToGlobalArray() 133 IRBuilder<> IRB(ReturnInst::Create(M.getContext(), CtorBB)); in createSanitizerCtorAndInitFunctions() local 134 IRB.CreateCall(InitFunction, InitArgs); in createSanitizerCtorAndInitFunctions() 137 VersionCheckName, FunctionType::get(IRB.getVoidTy(), {}, false), in createSanitizerCtorAndInitFunctions() 139 IRB.CreateCall(VersionCheckFunction, {}); in createSanitizerCtorAndInitFunctions()
|
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
D | streamout_jit.cpp | 64 Value* enabled = TRUNC(LOAD(pBuf, {0, SWR_STREAMOUT_BUFFER_enable}), IRB()->getInt1Ty()); in oob() 141 Type* simd4Ty = getVectorType(IRB()->getFloatTy(), 4); in buildDecl() 211 IRB()->SetInsertPoint(validBB); in buildStream() 226 pOutBuffer[b] = GEP(pData, streamOffset, PointerType::get(IRB()->getInt32Ty(), 0)); in buildStream() 272 FunctionType* fTy = FunctionType::get(IRB()->getVoidTy(), args, false); in Create() 282 IRB()->SetInsertPoint(entry); in Create() 303 IRB()->SetInsertPoint(returnBB); in Create()
|
D | builder_misc.cpp | 111 Constant* Builder::C(bool i) { return ConstantInt::get(IRB()->getInt1Ty(), (i ? 1 : 0)); } in C() 113 Constant* Builder::C(char i) { return ConstantInt::get(IRB()->getInt8Ty(), i); } in C() 115 Constant* Builder::C(uint8_t i) { return ConstantInt::get(IRB()->getInt8Ty(), i); } in C() 117 Constant* Builder::C(int i) { return ConstantInt::get(IRB()->getInt32Ty(), i); } in C() 119 Constant* Builder::C(int64_t i) { return ConstantInt::get(IRB()->getInt64Ty(), i); } in C() 123 Constant* Builder::C(uint32_t i) { return ConstantInt::get(IRB()->getInt32Ty(), i); } in C() 125 Constant* Builder::C(uint64_t i) { return ConstantInt::get(IRB()->getInt64Ty(), i); } in C() 127 Constant* Builder::C(float i) { return ConstantFP::get(IRB()->getFloatTy(), i); } in C() 131 return ConstantInt::get(IRB()->getInt1Ty(), (pred ? 1 : 0)); in PRED() 778 auto saveIP = IRB()->saveIP(); in CreateEntryAlloca() [all …]
|
D | builder_mem.cpp | 46 return IRB()->CreateGEP(Ptr, Idx, Name); in GEP() 51 return IRB()->CreateGEP(Ty, Ptr, Idx, Name); in GEP() 72 return IRB()->CreateGEP(Ptr, IdxList, Name); in GEPA() 77 return IRB()->CreateGEP(Ty, Ptr, IdxList, Name); in GEPA() 99 return IRB()->CreateLoad(Ptr, Name); in LOAD() 105 return IRB()->CreateLoad(Ptr, Name); in LOAD() 111 return IRB()->CreateLoad(Ty, Ptr, Name); in LOAD() 118 return IRB()->CreateLoad(Ptr, isVolatile, Name); in LOAD()
|
D | builder_mem.h | 87 return IRB()->CreateMaskedLoad(Ptr, AlignType(Align), Mask, PassThru, Name); 92 return IRB()->CreateStore(Val, Ptr, isVolatile); 99 return IRB()->CreateMaskedStore(Val, Ptr, AlignType(Align), Mask);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonGenExtract.cpp | 211 IRBuilder<> IRB(In); in INITIALIZE_PASS_DEPENDENCY() local 216 Value *NewIn = IRB.CreateCall(ExtF, {BF, IRB.getInt32(W), IRB.getInt32(SR)}); in INITIALIZE_PASS_DEPENDENCY() 218 NewIn = IRB.CreateShl(NewIn, SL, CSL->getName()); in INITIALIZE_PASS_DEPENDENCY()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Frontend/OpenMP/ |
D | OMPIRBuilder.h | 116 LocationDescription(const IRBuilder<T, U> &IRB) in LocationDescription() 117 : IP(IRB.saveIP()), DL(IRB.getCurrentDebugLocation()) {} in LocationDescription()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMParallelDSP.cpp | 766 IRBuilder<NoFolder> IRB(DomLoad->getParent(), in CreateWideLoad() local 773 Value *VecPtr = IRB.CreateBitCast(Base->getPointerOperand(), in CreateWideLoad() 775 LoadInst *WideLoad = IRB.CreateAlignedLoad(LoadTy, VecPtr, in CreateWideLoad() 785 Value *Bottom = IRB.CreateTrunc(WideLoad, Base->getType()); in CreateWideLoad() 786 Value *NewBaseSExt = IRB.CreateSExt(Bottom, BaseSExt->getType()); in CreateWideLoad() 791 Value *Top = IRB.CreateLShr(WideLoad, ShiftVal); in CreateWideLoad() 792 Value *Trunc = IRB.CreateTrunc(Top, OffsetTy); in CreateWideLoad() 793 Value *NewOffsetSExt = IRB.CreateSExt(Trunc, OffsetSExt->getType()); in CreateWideLoad()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZTDC.cpp | 361 IRBuilder<> IRB(I); in runOnFunction() local 363 Instruction *TDC = IRB.CreateCall(TDCFunc, {V, MaskVal}); in runOnFunction() 364 Value *ICmp = IRB.CreateICmp(CmpInst::ICMP_NE, TDC, Zero32); in runOnFunction()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | CrossDSOCFI.cpp | 141 IRBuilder<> IRB(BB); in buildCFICheck() local 142 SwitchInst *SI = IRB.CreateSwitch(&CallSiteTypeId, TrapBB, TypeIds.size()); in buildCFICheck()
|