Searched refs:GI (Results 1 - 25 of 43) sorted by relevance

12

/freebsd-current/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAlloca.cpp99 auto GI = dyn_cast<GetElementPtrInst>(AllocaUse.getUser()); local
100 if (GI && GI->getPointerOperand() == allocaInst) {
101 GI->setOperand(GI->getPointerOperandIndex(), NewASCToGeneric);
/freebsd-current/sys/contrib/ck/include/
H A Dck_cohort.h56 #define CK_COHORT_PROTOTYPE(N, GL, GU, GI, LL, LU, LI) \
121 return GI(cohort->local_lock, local_context) || \
125 #define CK_COHORT_TRYLOCK_PROTOTYPE(N, GL, GU, GI, GTL, LL, LU, LI, LTL) \
126 CK_COHORT_PROTOTYPE(N, GL, GU, GI, LL, LU, LI) \
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineSSAContext.cpp64 if (auto *GI = dyn_cast<GIntrinsic>(&MI))
65 return GI->getIntrinsicID();
H A DGlobalMerge.cpp309 for (size_t GI = 0, GE = Globals.size(); GI != GE; ++GI) {
310 GlobalVariable *GV = Globals[GI];
359 CreateGlobalSet().Globals.set(GI);
369 if (UsedGlobalSets[UGSIdx].Globals.test(GI)) {
391 NewUGS.Globals.set(GI);
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneModule.cpp120 auto *GI =
123 GI->copyAttributesFrom(&I);
124 VMap[&I] = GI;
203 GlobalIFunc *GI = cast<GlobalIFunc>(VMap[&I]);
205 GI->setResolver(MapValue(Resolver, VMap));
H A DModuleUtils.cpp359 for (GlobalIFunc &GI : M.ifuncs())
360 AllIFuncs.push_back(&GI);
393 for (GlobalIFunc *GI : IFuncsToLower) {
394 Function *ResolvedFunction = GI->getResolverFunction();
415 for (User *User : make_early_inc_range(GI->users())) {
428 UseBuilder.CreatePointerCast(ResolvedTarget, GI->getType());
429 UserInst->replaceUsesOfWith(GI, ResolvedCast);
433 if (GI->use_empty())
434 GI->eraseFromParent();
H A DSplitModule.cpp94 if (const auto *GI = dyn_cast_or_null<GlobalIFunc>(GO))
95 GO = GI->getResolverFunction();
H A DValueMapper.cpp938 else if (auto *GI = dyn_cast<GlobalIFunc>(GV))
939 GI->setResolver(Target);
1264 void ValueMapper::scheduleMapGlobalIFunc(GlobalIFunc &GI, Constant &Resolver, argument
1266 getAsMapper(pImpl)->scheduleMapAliasOrIFunc(GI, Resolver, MCID);
/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DTypeFinder.cpp52 for (const auto &GI : M.ifuncs())
53 incorporateType(GI.getValueType());
H A DAsmWriter.cpp2660 void printIFunc(const GlobalIFunc *GI);
2908 for (const GlobalIFunc &GI : M->ifuncs())
2909 printIFunc(&GI);
3782 void AssemblyWriter::printIFunc(const GlobalIFunc *GI) { argument
3783 if (GI->isMaterializable())
3786 AsmWriterContext WriterCtx(&TypePrinter, &Machine, GI->getParent());
3787 WriteAsOperandInternal(Out, GI, WriterCtx);
3790 Out << getLinkageNameWithSpace(GI->getLinkage());
3791 PrintDSOLocation(*GI, Out);
3792 PrintVisibility(GI
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86AsmPrinter.h124 void emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI,
126 void emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI,
H A DX86LoadValueInjectionLoadHardening.cpp499 [&](MachineBasicBlock *MBB, GraphIter GI, unsigned ParentDepth) {
505 Builder.addEdge(ParentDepth, GI, BeginBB.first);
510 GI = BeginBB.first;
514 Builder.addEdge(LoopDepth, GI, Ref->getSecond());
515 GI = Ref->getSecond();
524 Builder.addEdge(LoopDepth, GI, EndBB.first);
525 GI = EndBB.first;
529 TraverseCFG(Succ, GI, LoopDepth);
H A DX86AsmPrinter.cpp540 void X86AsmPrinter::emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI, argument
557 const GlobalIFunc &GI,
585 .addOperand(MCOperand::createExpr(lowerConstant(GI.getResolver()))),
556 emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI, MCSymbol *LazyPointer) argument
/freebsd-current/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp338 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) {
341 for (i = 1, e = GI->getNumOperands(); i != e; ++i) {
342 Value *V = GI->getOperand(i);
349 PassThroughInfo Info(&I, GI, i);
H A DBPFAbstractMemberAccess.cpp562 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) {
563 if (GI->hasAllZeroIndices())
564 traceGEP(GI, Call, ParentInfo);
593 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) {
594 if (GI->hasAllZeroIndices())
595 traceGEP(GI, Parent, ParentInfo);
623 } else if (auto *GI = dyn_cast<GetElementPtrInst>(Inst)) {
624 if (GI->hasAllZeroIndices())
625 traceGEP(GI, Parent, ParentInfo);
/freebsd-current/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVUtils.cpp213 if (auto *GI = dyn_cast<GIntrinsic>(ConstInstr)) {
214 if (GI->is(Intrinsic::spv_track_constant)) {
232 if (const auto *GI = dyn_cast<GIntrinsic>(&MI))
233 return GI->is(IntrinsicID);
/freebsd-current/contrib/libc-vis/
H A Dunvis.c212 #define GI(a) ((uint32_t)(a) >> 24) macro
450 is = GI(*astate); /* index in the string */
/freebsd-current/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCRegisterBankInfo.cpp294 if (auto *GI = dyn_cast<GIntrinsic>(&MI)) {
295 if (isFPIntrinsic(GI->getIntrinsicID()))
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DGuardWidening.cpp82 if (IntrinsicInst *GI = dyn_cast<IntrinsicInst>(I)) {
83 assert(GI->getIntrinsicID() == Intrinsic::experimental_guard &&
85 return GI->getArgOperand(0);
98 if (IntrinsicInst *GI = dyn_cast<IntrinsicInst>(I)) {
99 assert(GI->getIntrinsicID() == Intrinsic::experimental_guard &&
101 GI->setArgOperand(0, NewCond);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DAsmPrinter.h606 virtual void emitMachOIFuncStubBody(Module &M, const GlobalIFunc &GI, argument
612 virtual void emitMachOIFuncStubHelperBody(Module &M, const GlobalIFunc &GI, argument
901 void emitGlobalIFunc(Module &M, const GlobalIFunc &GI);
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2171 void AsmPrinter::emitGlobalIFunc(Module &M, const GlobalIFunc &GI) { argument
2176 if (GI.hasExternalLinkage() || !MAI->getWeakRefDirective())
2178 else if (GI.hasWeakLinkage() || GI.hasLinkOnceLinkage())
2181 assert(GI.hasLocalLinkage() && "Invalid ifunc linkage");
2185 MCSymbol *Name = getSymbol(&GI);
2188 emitVisibility(Name, GI.getVisibility());
2191 const MCExpr *Expr = lowerConstant(GI.getResolver());
2193 MCSymbol *LocalAlias = getSymbolPreferLocal(GI);
2220 GetExternalSymbolSymbol(GI
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h195 void scheduleMapGlobalIFunc(GlobalIFunc &GI, Constant &Resolver,
/freebsd-current/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp176 GroupInfo &GI = local
178 GI.GroupName = Group->getName();
179 GI.Defs.push_back(Group);
183 GI.SubGroups.push_back(
330 const GroupInfo &GI = local
332 V.second = GI.SubGroups.size() + GI.DiagsInGroup.size();
/freebsd-current/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp551 for (GlobalIFunc &GI : SrcM->ifuncs())
552 if (linkIfNeeded(GI, GVToClone))
/freebsd-current/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPostLegalizerCombiner.cpp297 if (auto *GI = dyn_cast<GIntrinsic>(&MI)) {
298 if (GI->is(Intrinsic::amdgcn_rcp))

Completed in 201 milliseconds

12