| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemorySanitizer.cpp | 821 PointerType::get(IRB.getInt8Ty(), 0), IRB.getInt64Ty()); in createKernelApi() 889 IRB.getVoidTy(), IRB.getIntNTy(AccessSize * 8), IRB.getInt32Ty()); in createUserspaceApi() 923 IRB.getVoidTy(), PtrTy, IntptrTy, IRB.getInt32Ty()); in initializeCallbacks() 1238 Value *Size = IRB.CreateTypeSize(IRB.getInt32Ty(), TS); in paintOrigin() 1776 IRB, in getShadowOriginPtrKernelNoVec() 2422 : IRB(IRB), MSV(MSV) {} in Combiner() 2652 IRB.CreateICmpEQ(IRB.CreateAnd(IRB.CreateXor(Sc, MinusOne), C), Zero); in handleEqualityComparison() 2668 return IRB.CreateOr(IRB.CreateAnd(A, IRB.CreateNot(SaOtherBits)), in getLowestPossibleValue() 2672 return IRB.CreateAnd(A, IRB.CreateNot(Sa)); in getLowestPossibleValue() 2685 return IRB.CreateOr(IRB.CreateAnd(A, IRB.CreateNot(SaSignBit)), in getHighestPossibleValue() [all …]
|
| H A D | ThreadSanitizer.cpp | 231 UnalignedReadName, Attr, IRB.getVoidTy(), IRB.getPtrTy()); in initialize() 235 UnalignedWriteName, Attr, IRB.getVoidTy(), IRB.getPtrTy()); in initialize() 239 VolatileReadName, Attr, IRB.getVoidTy(), IRB.getPtrTy()); in initialize() 243 VolatileWriteName, Attr, IRB.getVoidTy(), IRB.getPtrTy()); in initialize() 257 CompoundRWName, Attr, IRB.getVoidTy(), IRB.getPtrTy()); in initialize() 321 IRB.getPtrTy(), IRB.getPtrTy()); in initialize() 336 IRB.getPtrTy(), IRB.getPtrTy(), IntptrTy); in initialize() 343 IRB.getPtrTy(), IRB.getPtrTy(), IRB.getInt32Ty(), IntptrTy); in initialize() 614 StoredValue = IRB.CreateIntToPtr(StoredValue, IRB.getPtrTy()); in instrumentLoadOrStore() 691 IRB.CreateCall( in instrumentMemIntrinsic() [all …]
|
| H A D | HWAddressSanitizer.cpp | 588 IRBuilder<> IRB(*C); in initializeModule() local 660 IRBuilder<> IRB(*C); in initializeCallbacks() local 852 IRBuilder<> IRB(I); in untagPointerOperand() local 855 IRB.CreateIntToPtr(untagPointer(IRB, AddrLong), Addr->getType()); in untagPointerOperand() 1025 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 1066 IRB.CreateUDiv(IRB.CreateTypeSize(IntptrTy, O.TypeStoreSize), in instrumentMemAccess() 1153 applyTagMask(IRB, IRB.CreateXor(StackPointerLong, in getStackBaseTag() 1184 IRB.CreateOr(IRB.CreateShl(Tag, PointerTagShift), in tagPointer() 1307 IRB.CreateIntToPtr(ThreadLongMaybeUntagged, IRB.getPtrTy(0)); in emitPrologue() 1340 IRB.CreateOr( in emitPrologue() [all …]
|
| H A D | BoundsChecking.cpp | 89 Value *ObjSize = IRB.CreateSub(Size, Offset); in getBoundsCheckCond() 98 Value *Or = IRB.CreateOr(Cmp2, Cmp3); in getBoundsCheckCond() 102 Or = IRB.CreateOr(Cmp1, Or); in getBoundsCheckCond() 134 BranchInst::Create(GetTrapBB(IRB), OldBB); in insertBoundsCheck() 185 auto GetTrapBB = [&TrapBB](BuilderTy &IRB) { in addBoundsChecking() argument 187 auto DebugLoc = IRB.getCurrentDebugLocation(); in addBoundsChecking() 188 IRBuilder<>::InsertPointGuard Guard(IRB); in addBoundsChecking() 194 IRB.SetInsertPoint(TrapBB); in addBoundsChecking() 202 IRB.CreateCall(F, ConstantInt::get(IRB.getInt8Ty(), Fn->size())); in addBoundsChecking() 204 TrapCall = IRB.CreateCall(F, {}); in addBoundsChecking() [all …]
|
| H A D | AddressSanitizer.cpp | 1037 IRB.CreateCall( in unpoisonDynamicAllocasBeforeInst() 1261 IRB.CreateCall( in instrumentMemIntrinsic() 1264 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 1501 IRBuilder<> IRB(I); in instrumentPointerComparisonOrSubtraction() local 1734 ReportCond = IRB.CreateIsNotNull(IRB.CreateCall(Ballot, {Cond})); in genAMDGPUReportBlock() 1771 IRB.CreateCall( in instrumentAddress() 3190 Alloca = IRB.CreateAlloca(IRB.getInt8Ty(), in createAllocaForLayout() 3491 IRB.CreateStore(IRB.CreatePointerCast(&F, IntptrTy), BasePlus2); in processStaticAllocas() 3583 IRB.CreateCall( in poisonAlloca() 3636 AllocaInst *NewAlloca = IRB.CreateAlloca(IRB.getInt8Ty(), NewSize); in handleDynamicAllocaCall() [all …]
|
| H A D | DataFlowSanitizer.cpp | 987 IRBuilder<> IRB(Pos); in expandFromPrimitiveShadow() local 1050 IRBuilder<> IRB(&I); in addConditionalCallbacksIfEnabled() local 2275 return {IRB.CreateTrunc(IRB.CreateLShr(Call, DFS.OriginWidthBits), in loadShadowOriginSansLoadTracking() 2465 return IRB.CreateOr(Origin, IRB.CreateShl(Origin, OriginSize * 8)); in originToIntptr() 2523 paintOrigin(IRB, updateOrigin(Origin, IRB), StoreOriginAddr, Size, in storeOrigin() 2529 IRB.CreateCall( in storeOrigin() 2923 IRB.CreateCall( in visitMemTransferInst() 2940 IRB.CreateCall( in visitMemTransferInst() 3251 IRB.CreateCall( in visitLibAtomicStore() 3271 IRB.CreateCall( in visitLibAtomicExchange() [all …]
|
| H A D | SanitizerCoverage.cpp | 391 IRBuilder<> IRB(*C); in instrumentModule() local 392 Int64Ty = IRB.getInt64Ty(); in instrumentModule() 393 Int32Ty = IRB.getInt32Ty(); in instrumentModule() 395 Int8Ty = IRB.getInt8Ty(); in instrumentModule() 396 Int1Ty = IRB.getInt1Ty(); in instrumentModule() 410 IRB.getInt8Ty(), IRB.getInt8Ty()); in instrumentModule() 413 IRB.getInt16Ty(), IRB.getInt16Ty()); in instrumentModule() 416 IRB.getInt32Ty(), IRB.getInt32Ty()); in instrumentModule() 800 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy)); in InjectCoverageForIndirectCalls() 932 IRB.CreateCall(CallbackFunc, {IRB.CreateIntCast(A0, Ty, true), in InjectTraceForCmp() [all …]
|
| H A D | MemProfiler.cpp | 261 Shadow = IRB.CreateAnd(Shadow, Mapping.Mask); in memToShadow() 270 IRBuilder<> IRB(MI); in instrumentMemIntrinsic() local 276 IRB.CreateCall( in instrumentMemIntrinsic() 279 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false), in instrumentMemIntrinsic() 402 IRBuilder<> IRB(I); in instrumentMaskedLoadOrStore() local 408 IRBuilder<> IRB(InsertBefore); in instrumentMaskedLoadOrStore() local 446 IRBuilder<> IRB(InsertBefore); in instrumentAddress() local 463 IRB.CreateStore(ShadowValue, ShadowAddr); in instrumentAddress() 506 IRBuilder<> IRB(*C); in initializeCallbacks() local 542 IRB.CreateCall(MemProfInitFunction, {}); in maybeInsertMemProfInitAtFunctionEntry() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 722 Value *ThrewValue = IRB.CreateLoad(IRB.getInt32Ty(), ThrewValueGV, in wrapTestSetjmp() 735 IRB.CreatePHI(IRB.getInt32Ty(), 4, "threwvalue.phi"); in wrapTestSetjmp() 756 Value *Cmp2 = IRB.CreateICmpEQ(ThenLabel, IRB.getInt32(0)); in wrapTestSetjmp() 769 PHINode *LabelPHI = IRB.CreatePHI(IRB.getInt32Ty(), 2, "label"); in wrapTestSetjmp() 937 FunctionType::get(IRB.getVoidTy(), IRB.getInt32Ty(), false), in runOnModule() 948 FunctionType::get(IRB.getVoidTy(), IRB.getPtrTy(), false); in runOnModule() 954 FunctionType::get(IRB.getInt32Ty(), IRB.getPtrTy(), false); in runOnModule() 1001 IRB.getVoidTy(), {Int8PtrTy, IRB.getInt32Ty()}, false); in runOnModule() 1304 IRB.CreateStore(IRB.getInt32(0), SetjmpTable); in runSjLjOnFunction() 1677 cast<Constant>(IRB.CreateBitCast(PersF, IRB.getPtrTy()))); in handleLongjmpableCallsForWasmSjLj() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 132 IRBuilder<> IRB(SI); in addStore() local 179 V = IRB.CreateZExtOrTrunc(V, IRB.getInt64Ty()); in sliceValue() 181 V = IRB.CreateZExtOrTrunc(V, IRB.getInt64Ty()); in sliceValue() 184 V = IRB.CreateZExtOrTrunc(V, IRB.getInt64Ty()); in sliceValue() 247 Ptr = IRB.CreateConstGEP1_32(IRB.getInt8Ty(), Ptr, Offset); in emitZeroes() 257 Ptr = IRB.CreateConstGEP1_32(IRB.getInt8Ty(), Ptr, Offset); in emitUndef() 266 Ptr = IRB.CreateConstGEP1_32(IRB.getInt8Ty(), Ptr, Offset); in emitPair() 430 IB.generate(IRB); in tagAlloca() 436 IRB.CreateCall(SetTagFunc, {IRB.CreatePointerCast(AI, IRB.getPtrTy()), in untagAlloca() 460 IRB.CreateCall(IRG_SP, {Constant::getNullValue(IRB.getInt64Ty())}); in insertBaseTaggedPointer() [all …]
|
| H A D | AArch64Arm64ECCallLowering.cpp | 375 IRBuilder<> IRB(BB); in buildExitThunk() local 416 Args.push_back(IRB.CreateLoad(IntTy, IRB.CreateBitCast(Mem, PtrTy))); in buildExitThunk() 437 IRB.CreateStore(Call, IRB.CreateBitCast(CastAlloca, PtrTy)); in buildExitThunk() 443 IRB.CreateRetVoid(); in buildExitThunk() 470 IRBuilder<> IRB(BB); in buildEntryThunk() local 489 IRB.CreateStore(Arg, IRB.CreateBitCast(CastAlloca, PtrTy)); in buildEntryThunk() 492 Arg = IRB.CreateLoad(ArgTy, IRB.CreateBitCast(Arg, PtrTy)); in buildEntryThunk() 507 Arg = IRB.CreatePtrAdd(Arg, IRB.getInt64(0x20)); in buildEntryThunk() 528 IRB.CreateStore(RetVal, IRB.CreateBitCast(Thunk->getArg(1), PtrTy)); in buildEntryThunk() 531 IRB.CreateStore(Call, IRB.CreateBitCast(CastAlloca, PtrTy)); in buildEntryThunk() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCtorDtorLowering.cpp | 76 IRBuilder<> IRB(BasicBlock::Create(C, "entry", &F)); in createInitOrFiniCalls() local 114 auto *EndPtr = IRB.CreatePtrToInt(End, Int64Ty); in createInitOrFiniCalls() 119 Start = IRB.CreateInBoundsGEP( in createInitOrFiniCalls() 120 ArrayType::get(IRB.getPtrTy(), 0), Begin, in createInitOrFiniCalls() 125 IRB.CreateCondBr( in createInitOrFiniCalls() 129 IRB.SetInsertPoint(LoopBB); in createInitOrFiniCalls() 131 auto *CallBack = IRB.CreateLoad(IRB.getPtrTy(F.getAddressSpace()), in createInitOrFiniCalls() 133 IRB.CreateCall(CallBackTy, CallBack); in createInitOrFiniCalls() 140 IRB.CreateCondBr(EndCmp, ExitBB, LoopBB); in createInitOrFiniCalls() 141 IRB.SetInsertPoint(ExitBB); in createInitOrFiniCalls() [all …]
|
| H A D | AMDGPULateCodeGenPrepare.cpp | 165 IRBuilder<> IRB(&LI); in visitLoadInst() local 166 IRB.SetCurrentDebugLocation(LI.getDebugLoc()); in visitLoadInst() 171 auto *NewPtr = IRB.CreateConstGEP1_64( in visitLoadInst() 172 IRB.getInt8Ty(), in visitLoadInst() 173 IRB.CreateAddrSpaceCast(Base, LI.getPointerOperand()->getType()), in visitLoadInst() 176 LoadInst *NewLd = IRB.CreateAlignedLoad(IRB.getInt32Ty(), NewPtr, Align(4)); in visitLoadInst() 181 auto *NewVal = IRB.CreateBitCast( in visitLoadInst() 182 IRB.CreateTrunc(IRB.CreateLShr(NewLd, ShAmt), IntNTy), LI.getType()); in visitLoadInst()
|
| H A D | SIAnnotateControlFlow.cpp | 210 IRBuilder<> IRB(Term); in openIf() local 211 Value *IfCall = IRB.CreateCall(If, {Term->getCondition()}); in openIf() 212 Value *Cond = IRB.CreateExtractValue(IfCall, {0}); in openIf() 213 Value *Mask = IRB.CreateExtractValue(IfCall, {1}); in openIf() 225 IRBuilder<> IRB(Term); in insertElse() local 226 Value *ElseCall = IRB.CreateCall(Else, {popSaved()}); in insertElse() 227 Value *Cond = IRB.CreateExtractValue(ElseCall, {0}); in insertElse() 228 Value *Mask = IRB.CreateExtractValue(ElseCall, {1}); in insertElse()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | WasmEHPrepare.cpp | 163 IRBuilder<> IRB(M.getContext()); in doInitialization() local 194 IRBuilder<> IRB(F.getContext()); in prepareThrows() local 212 IRB.SetInsertPoint(BB); in prepareThrows() 213 IRB.CreateUnreachable(); in prepareThrows() 222 IRBuilder<> IRB(F.getContext()); in prepareEHPads() local 278 IRB.getInt32Ty(), IRB.getPtrTy()); in prepareEHPads() 333 IRB.CreateCall(CatchF, {IRB.getInt32(WebAssembly::CPP_EXCEPTION)}, "exn"); in prepareEHPad() 352 IRB.CreateCall(LPadIndexF, {FPI, IRB.getInt32(Index)}); in prepareEHPad() 355 IRB.CreateStore(IRB.getInt32(Index), LPadIndexField); in prepareEHPad() 362 IRB.CreateStore(IRB.CreateCall(LSDAF), LSDAField); in prepareEHPad() [all …]
|
| H A D | SafeStack.cpp | 553 IRB.CreateAnd( in moveStaticAllocasToUnsafeStack() 597 IRB.SetInsertPoint(AI); in moveStaticAllocasToUnsafeStack() 660 IRBuilder<> IRB(AI); in moveDynamicAllocasToUnsafeStack() local 671 Value *SP = IRB.CreatePtrToInt(IRB.CreateLoad(StackPtrTy, UnsafeStackPtr), in moveDynamicAllocasToUnsafeStack() 673 SP = IRB.CreateSub(SP, Size); in moveDynamicAllocasToUnsafeStack() 679 Value *NewTop = IRB.CreateIntToPtr( in moveDynamicAllocasToUnsafeStack() 680 IRB.CreateAnd(SP, in moveDynamicAllocasToUnsafeStack() 706 IRBuilder<> IRB(II); in moveDynamicAllocasToUnsafeStack() local 712 IRBuilder<> IRB(II); in moveDynamicAllocasToUnsafeStack() local 791 IRB.SetCurrentDebugLocation( in run() [all …]
|
| H A D | SanitizerBinaryMetadata.cpp | 77 IRBuilder<> IRB(F.getContext()); in runOnMachineFunction() local 85 {IRB.getInt(NewFeatures), IRB.getInt32(Size)}}})); in runOnMachineFunction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 53 IRBuilder<> *IRB = nullptr; member in __anonbaf99a280111::SPIRVEmitIntrinsics 156 IRB->SetInsertPoint(U); in replaceMemInstrUses() 184 IRB->SetInsertPoint(I); in preprocessUndefs() 206 IRB->SetInsertPoint(I); in preprocessCompositeConstants() 240 IRB->SetInsertPoint(&I); in visitSwitchInst() 466 auto *NewI = IRB->CreateIntrinsic( in visitStoreInst() 491 Args.push_back(IRB->getInt32( in visitAtomicCmpXchgInst() 493 Args.push_back(IRB->getInt32( in visitAtomicCmpXchgInst() 502 IRB->SetInsertPoint(&I); in visitUnreachableInst() 582 Type *Ty = IRB->getInt32Ty(); in processInstrAfterVisit() [all …]
|
| H A D | SPIRVPrepareFunctions.cpp | 131 IRBuilder<> IRB(EntryBB); in lowerIntrinsicToFunction() local 134 IRB.CreateRetVoid(); in lowerIntrinsicToFunction() 141 IRBuilder<> IRB(EntryBB); in lowerIntrinsicToFunction() local 144 IRB.CreateRet(BSwap); in lowerIntrinsicToFunction() 172 IRBuilder<> IRB(RotateBB); in lowerFunnelShifts() local 204 SecShift = IRB.CreateShl(FSHFunc->getArg(0), SubRotateVal); in lowerFunnelShifts() 211 IRB.CreateRet(IRB.CreateOr(FirstShift, SecShift)); in lowerFunnelShifts() 223 IRBuilder<> IRB(EntryBB); in buildUMulWithOverflowFunc() local 229 Value *Div = IRB.CreateUDiv(Mul, UMulFunc->getArg(0)); in buildUMulWithOverflowFunc() 236 Value *Res = IRB.CreateInsertValue(Agg, Overflow, {1}); in buildUMulWithOverflowFunc() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXCtorDtorLowering.cpp | 174 auto *SubInst = IRB.CreateSub(EndInt, BeginInt); in createInitOrFiniCalls() 175 auto *Offset = IRB.CreateAShr( in createInitOrFiniCalls() 181 BeginVal = IRB.CreateInBoundsGEP( in createInitOrFiniCalls() 186 IRB.CreateCondBr( in createInitOrFiniCalls() 190 IRB.SetInsertPoint(LoopBB); in createInitOrFiniCalls() 191 auto *CallBackPHI = IRB.CreatePHI(PtrTy, 2, "ptr"); in createInitOrFiniCalls() 192 auto *CallBack = IRB.CreateLoad(IRB.getPtrTy(F.getAddressSpace()), in createInitOrFiniCalls() 194 IRB.CreateCall(CallBackTy, CallBack); in createInitOrFiniCalls() 201 IRB.CreateCondBr(EndCmp, ExitBB, LoopBB); in createInitOrFiniCalls() 202 IRB.SetInsertPoint(ExitBB); in createInitOrFiniCalls() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 1936 Ptr = IRB.CreateInBoundsPtrAdd(Ptr, IRB.getInt(Offset), in getAdjustedPtr() 2587 V = IRB.CreateExtractElement(V, IRB.getInt32(BeginIndex), in extractVector() 2607 V = IRB.CreateInsertElement(Old, V, IRB.getInt32(BeginIndex), in insertVector() 2709 IRBuilderTy IRB; member in __anonc3d49dbe0d11::AllocaSliceRewriter 2962 IRB.CreateAlignedLoad(TargetTy, getNewAllocaSlicePtr(IRB, LTy), in visitLoadInst() 3115 Value *NewPtr = getNewAllocaSlicePtr(IRB, IRB.getPtrTy(AS)); in visitStoreInst() 3158 V = IRB.CreateMul( in getIntegerSplat() 3713 IRBuilderTy &IRB; member in __anonc3d49dbe0d11::AggLoadStoreRewriter 3717 : DL(DL), IRB(IRB) {} in AggLoadStoreRewriter() 3748 IRBuilderTy &IRB; member in __anonc3d49dbe0d11::AggLoadStoreRewriter::OpSplitter [all …]
|
| H A D | Float2Int.cpp | 424 IRBuilder<> IRB(I); in convert() local 430 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], I->getType()); in convert() 434 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], I->getType()); in convert() 440 NewV = IRB.CreateICmp(P, NewOperands[0], NewOperands[1], I->getName()); in convert() 445 NewV = IRB.CreateZExtOrTrunc(NewOperands[0], ToTy); in convert() 449 NewV = IRB.CreateSExtOrTrunc(NewOperands[0], ToTy); in convert() 453 NewV = IRB.CreateNeg(NewOperands[0], I->getName()); in convert() 459 NewV = IRB.CreateBinOp(mapBinOpcode(I->getOpcode()), in convert()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | ModuleUtils.cpp | 30 IRBuilder<> IRB(M.getContext()); in appendToGlobalArray() local 47 EltTy = StructType::get(IRB.getInt32Ty(), in appendToGlobalArray() 49 IRB.getPtrTy()); in appendToGlobalArray() 54 CSVals[0] = IRB.getInt32(Priority); in appendToGlobalArray() 214 IRBuilder<> IRB(M.getContext()); in createSanitizerCtorAndInitFunctions() local 225 IRB.SetInsertPoint(EntryBB); in createSanitizerCtorAndInitFunctions() 229 IRB.SetInsertPoint(CallInitBB); in createSanitizerCtorAndInitFunctions() 231 IRB.SetInsertPoint(RetBB->getTerminator()); in createSanitizerCtorAndInitFunctions() 234 IRB.CreateCall(InitFunction, InitArgs); in createSanitizerCtorAndInitFunctions() 239 IRB.CreateCall(VersionCheckFunction, {}); in createSanitizerCtorAndInitFunctions() [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/Bindings/media/ |
| H A D | st-rc.txt | 1 Device-Tree bindings for ST IRB IP 19 properly for IRB pins. 20 - clocks : phandle with clock-specifier pair for IRB.
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A 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()
|