Searched defs:GV (Results 1 - 25 of 121) sorted by relevance

12345

/external/llvm/lib/Target/AArch64/
H A DAArch64Subtarget.cpp35 bool AArch64Subtarget::GVIsIndirectSymbol(const GlobalValue *GV, argument
40 return !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
/external/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp45 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, argument
50 return MCSymbolRefExpr::Create(Mang->getSymbol(GV),
H A DARMSubtarget.cpp217 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol.
219 ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV, argument
226 bool isDecl = GV->hasAvailableExternallyLinkage();
227 if (GV->isDeclaration() && !GV->isMaterializable())
232 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility())
239 if (!isDecl && !GV->isWeakForLinker())
244 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference.
249 if (isDecl || GV
[all...]
/external/llvm/lib/Transforms/IPO/
H A DStripDeadPrototypes.cpp61 GlobalVariable *GV = I++; local
63 if (GV->isDeclaration() && GV->use_empty())
64 GV->eraseFromParent();
H A DGlobalDCE.cpp49 void GlobalIsNeeded(GlobalValue *GV);
52 bool RemoveUnusedGlobalValue(GlobalValue &GV);
167 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(G)) {
170 if (GV->hasInitializer())
171 MarkUsedGlobalsAsNeeded(GV->getInitializer());
185 if (GlobalValue *GV = dyn_cast<GlobalValue>(*U))
186 GlobalIsNeeded(GV);
193 if (GlobalValue *GV = dyn_cast<GlobalValue>(C))
194 return GlobalIsNeeded(GV);
212 bool GlobalDCE::RemoveUnusedGlobalValue(GlobalValue &GV) { argument
[all...]
/external/clang/lib/CodeGen/
H A DMicrosoftVBTables.h31 llvm::GlobalVariable *GV)
32 : ReusingBase(ReusingBase), VBPtrSubobject(VBPtrSubobject), GV(GV) { }
43 llvm::GlobalVariable *GV; member in struct:clang::CodeGen::VBTableInfo
45 /// \brief Emits a definition for GV by setting it's initializer.
30 VBTableInfo(const CXXRecordDecl *ReusingBase, BaseSubobject VBPtrSubobject, llvm::GlobalVariable *GV) argument
H A DCGVTT.cpp116 llvm::GlobalVariable *GV = local
119 GV->setUnnamedAddr(true);
120 return GV;
H A DTargetInfo.h55 virtual void SetTargetAttributes(const Decl *D, llvm::GlobalValue *GV, argument
/external/llvm/include/llvm/Target/
H A DTargetLoweringObjectFile.h67 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV, argument
69 return GV != 0;
78 static SectionKind getKindForGlobal(const GlobalValue *GV,
84 const MCSection *SectionForGlobal(const GlobalValue *GV,
91 const MCSection *SectionForGlobal(const GlobalValue *GV, argument
94 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM);
99 /// implementation of this method can assume that GV->hasSection() is true.
101 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
107 getSpecialCasedSectionGlobals(const GlobalValue *GV, Mangle argument
[all...]
/external/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp57 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument
62 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
65 // Otherwise, Check if GV should be in sdata/sbss, when normally it would end
66 // up in getKindForGlobal(GV, TM).
67 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
73 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument
76 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
81 Type *Ty = GV
89 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const argument
[all...]
/external/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp64 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument
66 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
69 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
75 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument
85 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
98 Type *Ty = GV->getType()->getElementType();
105 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument
111 if (Kind.isBSS() && IsGlobalInSmallSection(GV, T
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXTargetObjectFile.h115 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, argument
/external/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp26 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument
30 TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang, TM);
49 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
H A DPPCMCInstLower.cpp43 const GlobalValue *GV = MO.getGlobal(); local
49 AP.Mang->getNameWithPrefix(Name, GV, isImplicitlyPrivate);
H A DPPCSubtarget.cpp148 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV, argument
155 bool isDecl = GV->isDeclaration() && !GV->isMaterializable();
156 if (GV->hasHiddenVisibility() && !isDecl && !GV->hasCommonLinkage())
158 return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() ||
159 GV->hasCommonLinkage() || isDecl;
/external/llvm/lib/Target/SystemZ/
H A DSystemZConstantPoolValue.h30 const GlobalValue *GV; member in class:llvm::SystemZConstantPoolValue
34 SystemZConstantPoolValue(const GlobalValue *GV,
39 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
49 const GlobalValue *getGlobalValue() const { return GV; }
H A DSystemZSubtarget.cpp33 // Return true if GV binds locally under reloc model RM.
34 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { argument
39 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility();
42 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, argument
47 if (GV->getAlignment() == 1)
52 return bindsLocally(GV, RM);
H A DSystemZConstantPoolValue.cpp21 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {}
24 SystemZConstantPoolValue::Create(const GlobalValue *GV, argument
26 return new SystemZConstantPoolValue(GV, Modifier);
48 if (ZCPV->GV == GV && ZCPV->Modifier == Modifier)
56 ID.AddPointer(GV);
61 O << GV << "@" << int(Modifier);
/external/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp21 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang, argument
28 const MCSymbol *Sym = Mang->getSymbol(GV);
36 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer);
40 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang, argument
42 return Mang->getSymbol(GV);
/external/llvm/lib/Transforms/Utils/
H A DCloneModule.cpp47 GlobalVariable *GV = new GlobalVariable(*New, local
54 GV->copyAttributesFrom(I);
55 VMap[I] = GV;
82 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); local
84 GV->setInitializer(MapValue(I->getInitializer(), VMap));
/external/llvm/unittests/Transforms/Utils/
H A DSpecialCaseList.cpp48 GlobalVariable *GV = makeGlobal("bar", "t", M); local
55 EXPECT_TRUE(SCL->isIn(*GV));
60 EXPECT_TRUE(SCL->isIn(*GV));
65 EXPECT_FALSE(SCL->isIn(*GV));
145 GlobalVariable *GV = makeGlobal("bartender", "t", M); local
152 EXPECT_FALSE(SCL->isIn(*GV));
/external/llvm/include/llvm/ExecutionEngine/
H A DGenericValue.h50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument
/external/llvm/lib/CodeGen/AsmPrinter/
H A DARMException.cpp112 const GlobalVariable *GV = *I; local
115 Asm->EmitTTypeReference(GV, TTypeEncoding);
H A DAsmPrinterDwarf.cpp122 void AsmPrinter::EmitTTypeReference(const GlobalValue *GV, argument
124 if (GV) {
128 TLOF.getTTypeGlobalReference(GV, Mang, MMI, Encoding, OutStreamer);
/external/llvm/examples/Fibonacci/
H A Dfibonacci.cpp131 GenericValue GV = EE->runFunction(FibF, Args); local
134 outs() << "Result: " << GV.IntVal << "\n";

Completed in 383 milliseconds

12345