/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstCombineIntrinsic.cpp | 157 IntrinsicInst &II, InstCombiner &IC) { in simplifyAMDGCNImageIntrinsic() argument 162 dyn_cast<ConstantFP>(II.getOperand(ImageDimIntr->LodIndex))) { in simplifyAMDGCNImageIntrinsic() 168 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 179 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->MipIndex))) { in simplifyAMDGCNImageIntrinsic() 185 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 196 dyn_cast<ConstantFP>(II.getOperand(ImageDimIntr->BiasIndex))) { in simplifyAMDGCNImageIntrinsic() 202 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 214 dyn_cast<ConstantInt>(II.getOperand(ImageDimIntr->OffsetIndex))) { in simplifyAMDGCNImageIntrinsic() 220 II, II, NewImageDimIntr->Intr, IC, [&](auto &Args, auto &ArgTys) { in simplifyAMDGCNImageIntrinsic() 238 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/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/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 293 Value *InstCombinerImpl::simplifyMaskedLoad(IntrinsicInst &II) { in simplifyMaskedLoad() argument 294 Value *LoadPtr = II.getArgOperand(0); in simplifyMaskedLoad() 296 cast<ConstantInt>(II.getArgOperand(1))->getAlignValue(); in simplifyMaskedLoad() 300 if (maskIsAllOneOrUndef(II.getArgOperand(2))) { in simplifyMaskedLoad() 301 LoadInst *L = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad() 303 L->copyMetadata(II); in simplifyMaskedLoad() 309 if (isDereferenceablePointer(LoadPtr, II.getType(), in simplifyMaskedLoad() 310 II.getDataLayout(), &II, &AC)) { in simplifyMaskedLoad() 311 LoadInst *LI = Builder.CreateAlignedLoad(II.getType(), LoadPtr, Alignment, in simplifyMaskedLoad() 313 LI->copyMetadata(II); in simplifyMaskedLoad() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPMacroExpansion.cpp | 63 Preprocessor::getLocalMacroDirectiveHistory(const IdentifierInfo *II) const { in getLocalMacroDirectiveHistory() 64 if (!II->hadMacroDefinition()) in getLocalMacroDirectiveHistory() 66 auto Pos = CurSubmoduleState->Macros.find(II); in getLocalMacroDirectiveHistory() 71 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective() argument 75 MacroState &StoredMD = CurSubmoduleState->Macros[II]; in appendMacroDirective() 79 StoredMD.overrideActiveModuleMacros(*this, II); in appendMacroDirective() 85 PendingModuleMacroNames.push_back(II); in appendMacroDirective() 89 II->setHasMacroDefinition(true); in appendMacroDirective() 90 if (!MD->isDefined() && !LeafModuleMacros.contains(II)) in appendMacroDirective() 91 II->setHasMacroDefinition(false); in appendMacroDirective() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVVMIntrRange.cpp | 52 static bool addRangeAttr(uint64_t Low, uint64_t High, IntrinsicInst *II) { in addRangeAttr() argument 53 if (II->getMetadata(LLVMContext::MD_range)) in addRangeAttr() 56 const uint64_t BitWidth = II->getType()->getIntegerBitWidth(); in addRangeAttr() 59 if (auto CurrentRange = II->getRange()) in addRangeAttr() 62 II->addRangeRetAttr(Range); in addRangeAttr() 85 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I); in runNVVMIntrRange() local 86 if (!II) in runNVVMIntrRange() 89 switch (II->getIntrinsicID()) { in runNVVMIntrRange() 92 Changed |= addRangeAttr(0, MaxBlockSize.x, II); in runNVVMIntrRange() 95 Changed |= addRangeAttr(0, MaxBlockSize.y, II); in runNVVMIntrRange() [all …]
|
H A D | NVPTXTargetTransformInfo.cpp | 25 static bool readsThreadIndex(const IntrinsicInst *II) { in readsThreadIndex() argument 26 switch (II->getIntrinsicID()) { in readsThreadIndex() 35 static bool readsLaneId(const IntrinsicInst *II) { in readsLaneId() argument 36 return II->getIntrinsicID() == Intrinsic::nvvm_read_ptx_sreg_laneid; in readsLaneId() 40 static bool isNVVMAtomic(const IntrinsicInst *II) { in isNVVMAtomic() argument 41 switch (II->getIntrinsicID()) { in isNVVMAtomic() 96 if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) { in isSourceOfDivergence() local 98 if (readsThreadIndex(II) || readsLaneId(II)) in isSourceOfDivergence() 102 if (isNVVMAtomic(II)) in isSourceOfDivergence() 116 simplifyNvvmIntrinsic(IntrinsicInst * II,InstCombiner & IC) simplifyNvvmIntrinsic() 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/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() 73 PointerType *VecPtrTy = PointerType::get(II.getType(), AddrSpace); in simplifyX86MaskedLoad() 78 II.getType(), PtrCast, Align(1), BoolMask, ZeroVec); in simplifyX86MaskedLoad() 79 return IC.replaceInstUsesWith(II, NewMaskedLoad); in simplifyX86MaskedLoad() 88 static bool simplifyX86MaskedStore(IntrinsicInst &II, InstCombiner &IC) { in simplifyX86MaskedStore() argument 89 Value *Ptr = II.getOperand(0); in simplifyX86MaskedStore() [all …]
|
H A D | X86PreAMXConfig.cpp |
|
H A D | X86LowerAMXType.cpp | 71 static bool isAMXCast(Instruction *II) { in isAMXCast() argument 72 return match(II, in isAMXCast() 74 match(II, m_Intrinsic<Intrinsic::x86_cast_tile_to_vector>(m_Value())); in isAMXCast() 78 auto *II = dyn_cast<IntrinsicInst>(I); in isAMXIntrinsic() local 79 if (!II) in isAMXIntrinsic() 81 if (isAMXCast(II)) in isAMXIntrinsic() 85 if (II->getType()->isX86_AMXTy()) in isAMXIntrinsic() 87 for (Value *V : II->args()) { in isAMXIntrinsic() 124 static std::pair<Value *, Value *> getShape(IntrinsicInst *II, unsigned OpNo) { in getShape() argument 125 IRBuilder<> Builder(II); in getShape() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreRegisterInfo.cpp | 61 static void InsertFPImmInst(MachineBasicBlock::iterator II, in InsertFPImmInst() argument 64 MachineInstr &MI = *II; in InsertFPImmInst() 70 BuildMI(MBB, II, dl, TII.get(XCore::LDW_2rus), Reg) in InsertFPImmInst() 76 BuildMI(MBB, II, dl, TII.get(XCore::STW_2rus)) in InsertFPImmInst() 83 BuildMI(MBB, II, dl, TII.get(XCore::LDAWF_l2rus), Reg) in InsertFPImmInst() 92 static void InsertFPConstInst(MachineBasicBlock::iterator II, in InsertFPConstInst() argument 97 MachineInstr &MI = *II; in InsertFPConstInst() 101 RS->scavengeRegisterBackwards(XCore::GRRegsRegClass, II, false, 0); in InsertFPConstInst() 103 TII.loadImmediate(MBB, II, ScratchOffset, Offset); in InsertFPConstInst() 107 BuildMI(MBB, II, dl, TII.get(XCore::LDW_3r), Reg) in InsertFPConstInst() [all …]
|
/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() 105 auto *VTy = dyn_cast<VectorType>(II->getType()); 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 …]
|
H A D | MIRCanonicalizerPass.cpp | 95 for (auto *II : instructions) { in rescheduleLexographically() local 98 II->print(OS); in rescheduleLexographically() 103 StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II}); in rescheduleLexographically() 108 for (auto &II : StringInstrMap) { in rescheduleLexographically() local 112 II.second->dump(); in rescheduleLexographically() 118 MBB->splice(getPos(), MBB, II.second); in rescheduleLexographically() 152 for (auto *II : Instructions) { in rescheduleCanonically() local 153 for (unsigned i = 1; i < II->getNumOperands(); i++) { in rescheduleCanonically() 154 MachineOperand &MO = II->getOperand(i); in rescheduleCanonically() 168 for (auto *II : Instructions) { in rescheduleCanonically() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 868 IntrinsicInst &II) { in processPhiNode() argument 870 auto RequiredType = II.getType(); in processPhiNode() 872 auto *PN = dyn_cast<PHINode>(II.getArgOperand(0)); in processPhiNode() 900 return IC.replaceInstUsesWith(II, NPN); in processPhiNode() 913 tryCombineFromSVBoolBinOp(InstCombiner &IC, IntrinsicInst &II) { in tryCombineFromSVBoolBinOp() argument 914 auto BinOp = dyn_cast<IntrinsicInst>(II.getOperand(0)); in tryCombineFromSVBoolBinOp() 943 if (PredOpTy != II.getType()) in tryCombineFromSVBoolBinOp() 958 return IC.replaceInstUsesWith(II, NarrowedBinOp); in tryCombineFromSVBoolBinOp() 962 instCombineConvertFromSVBool(InstCombiner &IC, IntrinsicInst &II) { in instCombineConvertFromSVBool() argument 964 if (isa<PHINode>(II.getArgOperand(0))) in instCombineConvertFromSVBool() [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/Transforms/Scalar/ |
H A D | LowerConstantIntrinsics.cpp | 47 static Value *lowerIsConstantIntrinsic(IntrinsicInst *II) { in lowerIsConstantIntrinsic() argument 48 if (auto *C = dyn_cast<Constant>(II->getOperand(0))) in lowerIsConstantIntrinsic() 50 return ConstantInt::getTrue(II->getType()); in lowerIsConstantIntrinsic() 51 return ConstantInt::getFalse(II->getType()); in lowerIsConstantIntrinsic() 54 static bool replaceConditionalBranchesOnConstant(Instruction *II, in replaceConditionalBranchesOnConstant() argument 59 replaceAndRecursivelySimplify(II, NewValue, nullptr, nullptr, nullptr, in replaceConditionalBranchesOnConstant() 115 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I); in lowerConstantIntrinsics() local 116 if (!II) in lowerConstantIntrinsics() 118 switch (II->getIntrinsicID()) { in lowerConstantIntrinsics() 134 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&*VH); in lowerConstantIntrinsics() local [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() 56 II->replaceAllUsesWith(II->getArgOperand(1)); in lower() 59 II->replaceAllUsesWith(II->getArgOperand(1)); in lower() 62 II->replaceAllUsesWith(ConstantInt::getTrue(Context)); in lower() 65 II->replaceAllUsesWith( in lower() 72 II->replaceAllUsesWith(ConstantTokenNone::get(Context)); in lower() 75 lowerSubFn(Builder, cast<CoroSubFnInst>(II)); in lower() 80 II->replaceAllUsesWith(UndefValue::get(II->getType())); in lower() 86 cast<GlobalVariable>(II->getArgOperand(0)->stripPointerCasts()) in lower() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | LowerAllowCheckPass.cpp | 48 explicit RemarkInfo(IntrinsicInst *II) in RemarkInfo() 49 : Kind("Kind", II->getArgOperand(0)), in RemarkInfo() 50 F("Function", II->getParent()->getParent()), in RemarkInfo() 51 BB("Block", II->getParent()->getName()) {} in RemarkInfo() 54 static void emitRemark(IntrinsicInst *II, OptimizationRemarkEmitter &ORE, in emitRemark() argument 58 RemarkInfo Info(II); in emitRemark() 59 return OptimizationRemark(DEBUG_TYPE, "Removed", II) in emitRemark() 65 RemarkInfo Info(II); in emitRemark() 66 return OptimizationRemarkMissed(DEBUG_TYPE, "Allowed", II) in emitRemark() 90 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I); in removeUbsanTraps() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCRegisterInfo.cpp | 734 void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const { in lowerDynamicAlloc() 736 MachineInstr &MI = *II; in lowerDynamicAlloc() 763 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, Reg); in lowerDynamicAlloc() 767 BuildMI(MBB, II, dl, TII.get(PPC::STDUX), PPC::X1) in lowerDynamicAlloc() 771 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), MI.getOperand(0).getReg()) in lowerDynamicAlloc() 775 BuildMI(MBB, II, dl, TII.get(PPC::STWUX), PPC::R1) in lowerDynamicAlloc() 779 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), MI.getOperand(0).getReg()) in lowerDynamicAlloc() 785 MBB.erase(II); in lowerDynamicAlloc() 791 void PPCRegisterInfo::prepareDynamicAlloca(MachineBasicBlock::iterator II, in prepareDynamicAlloca() argument 796 MachineInstr &MI = *II; in prepareDynamicAlloca() [all …]
|
H A D | PPCRegisterInfo.h | 118 void lowerDynamicAlloc(MachineBasicBlock::iterator II) const; 119 void lowerDynamicAreaOffset(MachineBasicBlock::iterator II) const; 120 void prepareDynamicAlloca(MachineBasicBlock::iterator II, 123 void lowerPrepareProbedAlloca(MachineBasicBlock::iterator II) const; 124 void lowerCRSpilling(MachineBasicBlock::iterator II, 126 void lowerCRRestore(MachineBasicBlock::iterator II, 128 void lowerCRBitSpilling(MachineBasicBlock::iterator II, 130 void lowerCRBitRestore(MachineBasicBlock::iterator II, 133 void lowerOctWordSpilling(MachineBasicBlock::iterator II, 135 void lowerACCSpilling(MachineBasicBlock::iterator II, [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFIRPeephole.cpp | 60 if (auto *II = dyn_cast<IntrinsicInst>(&I)) { in BPFIRPeepholeImpl() local 61 if (II->getIntrinsicID() != Intrinsic::stacksave) in BPFIRPeepholeImpl() 63 if (!II->hasOneUser()) in BPFIRPeepholeImpl() 65 auto *Inst = cast<Instruction>(*II->user_begin()); in BPFIRPeepholeImpl() 77 auto *II = dyn_cast<IntrinsicInst>(*LD->user_begin()); in BPFIRPeepholeImpl() local 78 if (!II) in BPFIRPeepholeImpl() 80 if (II->getIntrinsicID() != Intrinsic::stackrestore) in BPFIRPeepholeImpl() 83 LLVM_DEBUG(dbgs() << "Remove:"; II->dump(); dbgs() << '\n'); in BPFIRPeepholeImpl() 85 II->eraseFromParent(); in BPFIRPeepholeImpl()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | IdentifierTable.h | 581 IdentifierInfo *const II; variable 585 PoisonIdentifierRAIIObject(IdentifierInfo *II, bool NewValue) in PoisonIdentifierRAIIObject() argument 586 : II(II), OldValue(II ? II->isPoisoned() : false) { in PoisonIdentifierRAIIObject() 587 if(II) in PoisonIdentifierRAIIObject() 588 II->setIsPoisoned(NewValue); in PoisonIdentifierRAIIObject() 592 if(II) in ~PoisonIdentifierRAIIObject() 593 II->setIsPoisoned(OldValue); in ~PoisonIdentifierRAIIObject() 691 IdentifierInfo *&II = Entry.second; in get() local 692 if (II) return *II; in get() 696 II = ExternalLookup->get(Name); in get() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVPrepareFunctions.cpp | 71 std::string lowerLLVMIntrinsicName(IntrinsicInst *II) { in lowerLLVMIntrinsicName() argument 72 Function *IntrinsicFunc = II->getCalledFunction(); in lowerLLVMIntrinsicName() 248 static void lowerPtrAnnotation(IntrinsicInst *II) { in lowerPtrAnnotation() argument 249 LLVMContext &Ctx = II->getContext(); in lowerPtrAnnotation() 254 if (auto *BI = dyn_cast<BitCastInst>(II->getArgOperand(0))) in lowerPtrAnnotation() 257 PtrArg = II->getOperand(0); in lowerPtrAnnotation() 259 getAnnotation(II->getArgOperand(1), in lowerPtrAnnotation() 260 4 < II->arg_size() ? II->getArgOperand(4) : nullptr); in lowerPtrAnnotation() 263 SmallVector<Metadata *> MDs = parseAnnotation(II, Anno, Ctx, Int32Ty); in lowerPtrAnnotation() 276 IRBuilder<> IRB(II->getParent()); in lowerPtrAnnotation() [all …]
|