| /freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerCorpus.h | 70 // executed we assign fresh seeds maximum entropy and let II->Energy approach 172 for (auto II : Inputs) in ~InputCorpus() local 173 delete II; in ~InputCorpus() 178 for (auto II : Inputs) in SizeInBytes() 179 Res += II->U.size(); in SizeInBytes() 184 for (auto II : Inputs) in NumActiveUnits() 185 Res += !II->U.empty(); in NumActiveUnits() 190 for (auto II : Inputs) in MaxInputSize() 191 Res = std::max(Res, II->U.size()); in MaxInputSize() 197 return std::count_if(Inputs.begin(), Inputs.end(), [](const InputInfo *II) { in NumInputsThatTouchFocusFunction() 171 for (auto II : Inputs) ~InputCorpus() local 177 for (auto II : Inputs) SizeInBytes() local 183 for (auto II : Inputs) NumActiveUnits() local 189 for (auto II : Inputs) MaxInputSize() local 220 InputInfo &II = *Inputs.back(); AddToCorpus() local 274 for (auto II : Inputs) { PrintCorpus() local 287 Replace(InputInfo * II,const Unit & U,std::chrono::microseconds TimeOfUnit) Replace() argument 303 InputInfo &II = *Inputs[ChooseUnitIdxToMutate(Rand)]; ChooseUnitToMutate() local 312 InputInfo &II = *Inputs[Rand(Inputs.size())]; ChooseUnitToCrossOverWith() local 327 const auto &II = *Inputs[i]; PrintStats() local 347 DeleteFile(const InputInfo & II) DeleteFile() argument 353 InputInfo &II = *Inputs[Idx]; DeleteInput() local 388 for (auto II : Inputs) { AddRareFeature() local 401 for (auto II : Inputs) { AddRareFeature() local 422 InputInfo &II = *Inputs[OldIdx]; AddFeature() local 444 UpdateFeatureFrequency(InputInfo * II,size_t Idx) UpdateFeatureFrequency() argument 482 for (auto II: Inputs) { ValidateFeatureSet() local 512 for (auto II : Inputs) { UpdateCorpusDistribution() local 519 for (auto II : Inputs) { UpdateCorpusDistribution() local [all...] |
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 156 IntrinsicInst &II, InstCombiner &IC) { in simplifyAMDGCNImageIntrinsic() argument 161 dyn_cast<ConstantFP>(II.getOperand(ImageDimIntr->LodIndex))) { in simplifyAMDGCNImageIntrinsic() 167 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 178 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->MipIndex))) { in simplifyAMDGCNImageIntrinsic() 184 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 195 dyn_cast<ConstantFP>(II.getOperand(ImageDimIntr->BiasIndex))) { in simplifyAMDGCNImageIntrinsic() 201 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 213 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->OffsetIndex))) { in simplifyAMDGCNImageIntrinsic() 219 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 237 if (II.hasOneUse()) { in simplifyAMDGCNImageIntrinsic() [all …]
|
| H A D | AMDGPUImageIntrinsicOptimizer.cpp | 99 IntrinsicInst *II, in addInstToMergeableList() argument 104 if (IIList.front()->getIntrinsicID() != II->getIntrinsicID()) in addInstToMergeableList() 108 if (IIList.front()->getType() != II->getType()) in addInstToMergeableList() 113 assert(IIList.front()->arg_size() == II->arg_size()); in addInstToMergeableList() 114 for (int I = 1, E = II->arg_size(); AllEqual && I != E; ++I) { in addInstToMergeableList() 116 Value *Arg = II->getArgOperand(I); in addInstToMergeableList() 120 auto *FragId = cast<ConstantInt>(II->getArgOperand(I)); in addInstToMergeableList() 131 IIList.emplace_back(II); in addInstToMergeableList() 136 MergeableInsts.emplace_back(1, II); in addInstToMergeableList() 137 LLVM_DEBUG(dbgs() << "New: " << *II << "\n"); in addInstToMergeableList() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 291 Value *InstCombinerImpl::simplifyMaskedLoad(IntrinsicInst &II) { in simplifyMaskedLoad() argument 292 Value *LoadPtr = II.getArgOperand(0); in simplifyMaskedLoad() 294 cast<ConstantInt>(II.getArgOperand(1))->getAlignValue(); in simplifyMaskedLoad() 298 if (maskIsAllOneOrUndef(II.getArgOperand(2))) { in simplifyMaskedLoad() 299 LoadInst *L = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad() 301 L->copyMetadata(II); in simplifyMaskedLoad() 307 if (isDereferenceablePointer(LoadPtr, II.getType(), in simplifyMaskedLoad() 308 II.getDataLayout(), &II, &AC)) { in simplifyMaskedLoad() 309 LoadInst *LI = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad() 311 LI->copyMetadata(II); in simplifyMaskedLoad() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PPMacroExpansion.cpp | 61 Preprocessor::getLocalMacroDirectiveHistory(const IdentifierInfo *II) const { in getLocalMacroDirectiveHistory() 62 if (!II->hadMacroDefinition()) in getLocalMacroDirectiveHistory() 64 auto Pos = CurSubmoduleState->Macros.find(II); in getLocalMacroDirectiveHistory() 69 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective() argument 73 MacroState &StoredMD = CurSubmoduleState->Macros[II]; in appendMacroDirective() 77 StoredMD.overrideActiveModuleMacros(*this, II); in appendMacroDirective() 83 PendingModuleMacroNames.push_back(II); in appendMacroDirective() 87 II->setHasMacroDefinition(true); in appendMacroDirective() 88 if (!MD->isDefined() && !LeafModuleMacros.contains(II)) in appendMacroDirective() 89 II->setHasMacroDefinition(false); in appendMacroDirective() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVVMIntrRange.cpp | 46 static bool addRangeAttr(uint64_t Low, uint64_t High, IntrinsicInst *II) { in addRangeAttr() argument 47 if (II->getMetadata(LLVMContext::MD_range)) in addRangeAttr() 50 const uint64_t BitWidth = II->getType()->getIntegerBitWidth(); in addRangeAttr() 53 if (auto CurrentRange = II->getRange()) in addRangeAttr() 56 II->addRangeRetAttr(Range); in addRangeAttr() 93 const auto ProccessIntrinsic = [&](IntrinsicInst *II) -> bool { in runNVVMIntrRange() argument 94 switch (II->getIntrinsicID()) { in runNVVMIntrRange() 97 return addRangeAttr(0, MaxBlockSize.X, II); in runNVVMIntrRange() 99 return addRangeAttr(0, MaxBlockSize.Y, II); in runNVVMIntrRange() 101 return addRangeAttr(0, MaxBlockSize.Z, II); in runNVVMIntrRange() [all …]
|
| H A D | NVPTXTargetTransformInfo.cpp | 32 static bool readsThreadIndex(const IntrinsicInst *II) { in readsThreadIndex() argument 33 switch (II->getIntrinsicID()) { in readsThreadIndex() 42 static bool readsLaneId(const IntrinsicInst *II) { in readsLaneId() argument 43 return II->getIntrinsicID() == Intrinsic::nvvm_read_ptx_sreg_laneid; in readsLaneId() 47 static bool isNVVMAtomic(const IntrinsicInst *II) { in isNVVMAtomic() argument 48 switch (II->getIntrinsicID()) { in isNVVMAtomic() 101 if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) { in isSourceOfDivergence() local 103 if (readsThreadIndex(II) || readsLaneId(II)) in isSourceOfDivergence() 107 if (isNVVMAtomic(II)) in isSourceOfDivergence() 122 IntrinsicInst *II) { in convertNvvmIntrinsicToLlvm() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 58 static Instruction *simplifyX86MaskedLoad(IntrinsicInst &II, InstCombiner &IC) { in simplifyX86MaskedLoad() argument 59 Value *Ptr = II.getOperand(0); in simplifyX86MaskedLoad() 60 Value *Mask = II.getOperand(1); in simplifyX86MaskedLoad() 61 Constant *ZeroVec = Constant::getNullValue(II.getType()); in simplifyX86MaskedLoad() 65 return IC.replaceInstUsesWith(II, ZeroVec); in simplifyX86MaskedLoad() 72 II.getType(), Ptr, Align(1), BoolMask, ZeroVec); in simplifyX86MaskedLoad() 73 return IC.replaceInstUsesWith(II, NewMaskedLoad); in simplifyX86MaskedLoad() 82 static bool simplifyX86MaskedStore(IntrinsicInst &II, InstCombiner &IC) { in simplifyX86MaskedStore() argument 83 Value *Ptr = II.getOperand(0); in simplifyX86MaskedStore() 84 Value *Mask = II.getOperand(1); in simplifyX86MaskedStore() [all …]
|
| H A D | X86LowerAMXType.cpp | 69 static bool isAMXCast(Instruction *II) { in isAMXCast() argument 70 return match(II, in isAMXCast() 72 match(II, m_Intrinsic<Intrinsic::x86_cast_tile_to_vector>(m_Value())); in isAMXCast() 77 static unsigned getNumDefTiles(IntrinsicInst *II) { in getNumDefTiles() argument 78 Type *Ty = II->getType(); in getNumDefTiles() 92 auto *II = dyn_cast<IntrinsicInst>(I); in isAMXIntrinsic() local 93 if (!II) in isAMXIntrinsic() 95 if (isAMXCast(II)) in isAMXIntrinsic() 99 if (getNumDefTiles(II) > 0) in isAMXIntrinsic() 101 for (Value *V : II->args()) { in isAMXIntrinsic() [all …]
|
| H A D | X86PreAMXConfig.cpp | |
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | LowerAllowCheckPass.cpp | 49 explicit RemarkInfo(IntrinsicInst *II) in RemarkInfo() 50 : Kind("Kind", II->getArgOperand(0)), in RemarkInfo() 51 F("Function", II->getParent()->getParent()), in RemarkInfo() 52 BB("Block", II->getParent()->getName()) {} in RemarkInfo() 55 static void emitRemark(IntrinsicInst *II, OptimizationRemarkEmitter &ORE, in emitRemark() argument 59 RemarkInfo Info(II); in emitRemark() 60 return OptimizationRemark(DEBUG_TYPE, "Removed", II) in emitRemark() 66 RemarkInfo Info(II); in emitRemark() 67 return OptimizationRemarkMissed(DEBUG_TYPE, "Allowed", II) in emitRemark() 87 auto GetCutoff = [&](const IntrinsicInst *II) -> unsigned { in removeUbsanTraps() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LowerInvoke.cpp | 48 if (InvokeInst *II = dyn_cast<InvokeInst>(BB.getTerminator())) { in runImpl() local 49 SmallVector<Value *, 16> CallArgs(II->args()); in runImpl() 51 II->getOperandBundlesAsDefs(OpBundles); in runImpl() 54 CallInst::Create(II->getFunctionType(), II->getCalledOperand(), in runImpl() 55 CallArgs, OpBundles, "", II->getIterator()); in runImpl() 56 NewCall->takeName(II); in runImpl() 57 NewCall->setCallingConv(II->getCallingConv()); in runImpl() 58 NewCall->setAttributes(II->getAttributes()); in runImpl() 59 NewCall->setDebugLoc(II->getDebugLoc()); in runImpl() 60 II->replaceAllUsesWith(NewCall); in runImpl() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreRegisterInfo.cpp | 56 static void InsertFPImmInst(MachineBasicBlock::iterator II, in InsertFPImmInst() argument 59 MachineInstr &MI = *II; in InsertFPImmInst() 65 BuildMI(MBB, II, dl, TII.get(XCore::LDW_2rus), Reg) in InsertFPImmInst() 71 BuildMI(MBB, II, dl, TII.get(XCore::STW_2rus)) in InsertFPImmInst() 78 BuildMI(MBB, II, dl, TII.get(XCore::LDAWF_l2rus), Reg) in InsertFPImmInst() 87 static void InsertFPConstInst(MachineBasicBlock::iterator II, in InsertFPConstInst() argument 92 MachineInstr &MI = *II; in InsertFPConstInst() 96 RS->scavengeRegisterBackwards(XCore::GRRegsRegClass, II, false, 0); in InsertFPConstInst() 98 TII.loadImmediate(MBB, II, ScratchOffset, Offset); in InsertFPConstInst() 102 BuildMI(MBB, II, dl, TII.get(XCore::LDW_3r), Reg) in InsertFPConstInst() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILResourceAccess.cpp | 54 static void createTypedBufferStore(IntrinsicInst *II, StoreInst *SI, in createTypedBufferStore() argument 69 {II->getOperand(0), II->getOperand(1)}); in createTypedBufferStore() 82 {II->getOperand(0), II->getOperand(1), V}); in createTypedBufferStore() 86 static void createRawStore(IntrinsicInst *II, StoreInst *SI, Value *Offset) { in createRawStore() argument 95 {II->getOperand(0), II->getOperand(1), Offset, V}); in createRawStore() 99 static void createStoreIntrinsic(IntrinsicInst *II, StoreInst *SI, in createStoreIntrinsic() argument 103 return createTypedBufferStore(II, SI, Offset, RTI); in createStoreIntrinsic() 106 return createRawStore(II, SI, Offset); in createStoreIntrinsic() 131 static void createTypedBufferLoad(IntrinsicInst *II, LoadInst *LI, in createTypedBufferLoad() argument 139 {II->getOperand(0), II->getOperand(1)}); in createTypedBufferLoad() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerConstantIntrinsics.cpp | 46 static Value *lowerIsConstantIntrinsic(IntrinsicInst *II) { in lowerIsConstantIntrinsic() argument 47 if (auto *C = dyn_cast<Constant>(II->getOperand(0))) in lowerIsConstantIntrinsic() 49 return ConstantInt::getTrue(II->getType()); in lowerIsConstantIntrinsic() 50 return ConstantInt::getFalse(II->getType()); in lowerIsConstantIntrinsic() 53 static bool replaceConditionalBranchesOnConstant(Instruction *II, in replaceConditionalBranchesOnConstant() argument 58 replaceAndRecursivelySimplify(II, NewValue, nullptr, nullptr, nullptr, in replaceConditionalBranchesOnConstant() 114 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I); in lowerConstantIntrinsics() local 115 if (!II) in lowerConstantIntrinsics() 117 switch (II->getIntrinsicID()) { in lowerConstantIntrinsics() 133 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&*VH); in lowerConstantIntrinsics() local [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ObjCNoReturn.cpp | 21 const IdentifierInfo *II) { in isSubclass() argument 24 if (Class->getIdentifier() == II) in isSubclass() 26 return isSubclass(Class->getSuperClass(), II); in isSubclass() 34 SmallVector<const IdentifierInfo *, 3> II; in ObjCNoReturn() local 37 II.push_back(&C.Idents.get("raise")); in ObjCNoReturn() 38 II.push_back(&C.Idents.get("format")); in ObjCNoReturn() 40 C.Selectors.getSelector(II.size(), &II[0]); in ObjCNoReturn() 43 II.push_back(&C.Idents.get("arguments")); in ObjCNoReturn() 45 C.Selectors.getSelector(II.size(), &II[0]); in ObjCNoReturn()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ReplaceWithVeclib.cpp | 75 static void replaceWithTLIFunction(IntrinsicInst *II, VFInfo &Info, in replaceWithTLIFunction() argument 77 IRBuilder<> IRBuilder(II); in replaceWithTLIFunction() 78 SmallVector<Value *> Args(II->args()); in replaceWithTLIFunction() 81 VectorType::get(Type::getInt1Ty(II->getContext()), Info.Shape.VF); in replaceWithTLIFunction() 88 II->getOperandBundlesAsDefs(OpBundles); in replaceWithTLIFunction() 91 II->replaceAllUsesWith(Replacement); in replaceWithTLIFunction() 94 Replacement->copyFastMathFlags(II); in replaceWithTLIFunction() 101 IntrinsicInst *II) { in replaceWithCallToVeclib() argument 102 assert(II != nullptr && "Intrinsic cannot be null"); in replaceWithCallToVeclib() 103 Intrinsic::ID IID = II->getIntrinsicID(); in replaceWithCallToVeclib() [all …]
|
| H A D | ExpandReductions.cpp | 33 if (auto *II = dyn_cast<IntrinsicInst>(&I)) { in expandReductions() local 34 switch (II->getIntrinsicID()) { in expandReductions() 49 if (TTI->shouldExpandReduction(II)) in expandReductions() 50 Worklist.push_back(II); in expandReductions() 57 for (auto *II : Worklist) { in expandReductions() local 59 isa<FPMathOperator>(II) ? II->getFastMathFlags() : FastMathFlags{}; in expandReductions() 60 Intrinsic::ID ID = II->getIntrinsicID(); in expandReductions() 63 TTI->getPreferredExpandedReductionShuffle(II); in expandReductions() 66 IRBuilder<> Builder(II); in expandReductions() 75 Value *Acc = II->getArgOperand(0); in expandReductions() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCRegisterInfo.cpp | 737 void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const { in lowerDynamicAlloc() 739 MachineInstr &MI = *II; in lowerDynamicAlloc() 766 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, Reg); in lowerDynamicAlloc() 770 BuildMI(MBB, II, dl, TII.get(PPC::STDUX), PPC::X1) in lowerDynamicAlloc() 774 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), MI.getOperand(0).getReg()) in lowerDynamicAlloc() 778 BuildMI(MBB, II, dl, TII.get(PPC::STWUX), PPC::R1) in lowerDynamicAlloc() 782 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), MI.getOperand(0).getReg()) in lowerDynamicAlloc() 788 MBB.erase(II); in lowerDynamicAlloc() 794 void PPCRegisterInfo::prepareDynamicAlloca(MachineBasicBlock::iterator II, in prepareDynamicAlloca() argument 799 MachineInstr &MI = *II; in prepareDynamicAlloca() [all …]
|
| H A D | PPCRegisterInfo.h | 61 void spillRegPair(MachineBasicBlock &MBB, MachineBasicBlock::iterator II, 127 void lowerDynamicAlloc(MachineBasicBlock::iterator II) const; 128 void lowerDynamicAreaOffset(MachineBasicBlock::iterator II) const; 129 void prepareDynamicAlloca(MachineBasicBlock::iterator II, 132 void lowerPrepareProbedAlloca(MachineBasicBlock::iterator II) const; 133 void lowerCRSpilling(MachineBasicBlock::iterator II, 135 void lowerCRRestore(MachineBasicBlock::iterator II, 137 void lowerCRBitSpilling(MachineBasicBlock::iterator II, 139 void lowerCRBitRestore(MachineBasicBlock::iterator II, 142 void lowerOctWordSpilling(MachineBasicBlock::iterator II, [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVCodeGenPrepare.cpp | 137 bool RISCVCodeGenPrepare::widenVPMerge(IntrinsicInst &II) { in widenVPMerge() argument 138 if (!II.getType()->getScalarType()->isIntegerTy(1)) in widenVPMerge() 143 if (!match(&II, in widenVPMerge() 151 Phi->getIncomingValue(1) != &II) in widenVPMerge() 155 VectorType::get(IntegerType::getInt8Ty(II.getContext()), in widenVPMerge() 156 cast<VectorType>(II.getType())->getElementCount()); in widenVPMerge() 162 Builder.SetInsertPoint(&II); in widenVPMerge() 167 Value *Trunc = Builder.CreateTrunc(WideMerge, II.getType()); in widenVPMerge() 169 II.replaceAllUsesWith(Trunc); in widenVPMerge() 173 llvm::RecursivelyDeleteTriviallyDeadInstructions(&II); in widenVPMerge() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroCleanup.cpp | 51 if (auto *II = dyn_cast<IntrinsicInst>(&I)) { in lower() local 52 switch (II->getIntrinsicID()) { in lower() 57 II->replaceAllUsesWith(II->getArgOperand(1)); in lower() 60 II->replaceAllUsesWith(II->getArgOperand(1)); in lower() 63 II->replaceAllUsesWith(ConstantInt::getTrue(Context)); in lower() 66 II->replaceAllUsesWith( in lower() 73 II->replaceAllUsesWith(ConstantTokenNone::get(Context)); in lower() 76 lowerSubFn(Builder, cast<CoroSubFnInst>(II)); in lower() 81 II->replaceAllUsesWith(PoisonValue::get(II->getType())); in lower() 87 cast<GlobalVariable>(II->getArgOperand(0)->stripPointerCasts()) in lower() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | IdentifierTable.h | 589 IdentifierInfo *const II; variable 593 PoisonIdentifierRAIIObject(IdentifierInfo *II, bool NewValue) in PoisonIdentifierRAIIObject() argument 594 : II(II), OldValue(II ? II->isPoisoned() : false) { in PoisonIdentifierRAIIObject() 595 if(II) in PoisonIdentifierRAIIObject() 596 II->setIsPoisoned(NewValue); in PoisonIdentifierRAIIObject() 600 if(II) in ~PoisonIdentifierRAIIObject() 601 II->setIsPoisoned(OldValue); in ~PoisonIdentifierRAIIObject() 699 IdentifierInfo *&II = Entry.second; in get() local 700 if (II) return *II; in get() 704 II = ExternalLookup->get(Name); in get() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 66 static std::string lowerLLVMIntrinsicName(IntrinsicInst *II) { in lowerLLVMIntrinsicName() argument 67 Function *IntrinsicFunc = II->getCalledFunction(); in lowerLLVMIntrinsicName() 241 static void lowerPtrAnnotation(IntrinsicInst *II) { in lowerPtrAnnotation() argument 242 LLVMContext &Ctx = II->getContext(); in lowerPtrAnnotation() 247 if (auto *BI = dyn_cast<BitCastInst>(II->getArgOperand(0))) in lowerPtrAnnotation() 250 PtrArg = II->getOperand(0); in lowerPtrAnnotation() 252 getAnnotation(II->getArgOperand(1), in lowerPtrAnnotation() 253 4 < II->arg_size() ? II->getArgOperand(4) : nullptr); in lowerPtrAnnotation() 256 SmallVector<Metadata *> MDs = parseAnnotation(II, Anno, Ctx, Int32Ty); in lowerPtrAnnotation() 269 IRBuilder<> IRB(II->getParent()); in lowerPtrAnnotation() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFIRPeephole.cpp | 58 if (auto *II = dyn_cast<IntrinsicInst>(&I)) { in BPFIRPeepholeImpl() local 59 if (II->getIntrinsicID() != Intrinsic::stacksave) in BPFIRPeepholeImpl() 61 if (!II->hasOneUser()) in BPFIRPeepholeImpl() 63 auto *Inst = cast<Instruction>(*II->user_begin()); in BPFIRPeepholeImpl() 75 auto *II = dyn_cast<IntrinsicInst>(*LD->user_begin()); in BPFIRPeepholeImpl() local 76 if (!II) in BPFIRPeepholeImpl() 78 if (II->getIntrinsicID() != Intrinsic::stackrestore) in BPFIRPeepholeImpl() 81 LLVM_DEBUG(dbgs() << "Remove:"; II->dump(); dbgs() << '\n'); in BPFIRPeepholeImpl() 83 II->eraseFromParent(); in BPFIRPeepholeImpl()
|