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

123456

/external/llvm/lib/Transforms/IPO/
H A DStripDeadPrototypes.cpp62 GlobalVariable *GV = I++; local
64 if (GV->isDeclaration() && GV->use_empty())
65 GV->eraseFromParent();
H A DExtractGV.cpp24 /// Make sure GV is visible from both modules. Delete is true if it is
26 /// This also makes sure GV cannot be dropped so that references from
28 static void makeVisible(GlobalValue &GV, bool Delete) { argument
29 bool Local = GV.hasLocalLinkage();
31 GV.setLinkage(GlobalValue::ExternalLinkage);
33 GV.setVisibility(GlobalValue::HiddenVisibility);
37 if (!GV.hasLinkOnceLinkage()) {
38 assert(!GV.isDiscardableIfUnused());
42 // Map linkonce* to weak* so that llvm doesn't drop this GV.
43 switch(GV
[all...]
H A DInternalize.cpp108 static bool shouldInternalize(const GlobalValue &GV, argument
111 if (GV.isDeclaration())
115 if (GV.hasAvailableExternallyLinkage())
119 if (GV.hasDLLExportStorageClass())
123 if (GV.hasLocalLinkage())
127 if (ExternalNames.count(GV.getName()))
H A DConstantMerge.cpp49 bool hasKnownAlignment(GlobalVariable *GV) const;
53 unsigned getAlignment(GlobalVariable *GV) const;
75 GlobalValue *GV = cast<GlobalValue>(Operand); local
76 UsedValues.insert(GV);
92 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const {
93 return DL || GV->getAlignment() != 0;
96 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const {
97 unsigned Align = GV->getAlignment();
101 return DL->getPreferredAlignment(GV);
133 GlobalVariable *GV local
175 GlobalVariable *GV = GVI++; local
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64TargetObjectFile.cpp27 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
35 const MCSymbol *Sym = TM.getSymbol(GV, Mang);
45 GV, Encoding, Mang, TM, MMI, Streamer);
49 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
51 return TM.getSymbol(GV, Mang);
26 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
48 getCFIPersonalitySymbol( const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const argument
H A DAArch64MCInstLower.cpp54 llvm_unreachable("Unexpected target flags with MO_GOT on GV operand");
62 llvm_unreachable("Unexpected target flags with MO_TLS on GV operand");
86 const GlobalValue *GV = MO.getGlobal(); local
87 Model = Printer.TM.getTLSModel(GV);
H A DAArch64Subtarget.cpp65 AArch64Subtarget::ClassifyGlobalReference(const GlobalValue *GV, argument
71 bool isDecl = GV->hasAvailableExternallyLinkage();
72 if (GV->isDeclaration() && !GV->isMaterializable())
83 if (TM.getCodeModel() == CodeModel::Small && GV->isWeakForLinker() && isDecl)
94 if (TM.getRelocationModel() != Reloc::Static && GV->hasDefaultVisibility()) {
96 return (isDecl || GV->isWeakForLinker()) ? AArch64II::MO_GOT
100 return GV->hasLocalLinkage() ? AArch64II::MO_NO_FLAG : AArch64II::MO_GOT;
/external/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp46 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
51 GV, Encoding, Mang, TM, MMI, Streamer);
55 return MCSymbolRefExpr::Create(TM.getSymbol(GV, Mang),
45 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
/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.cpp49 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument
51 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
54 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
60 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument
70 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
83 Type *Ty = GV->getType()->getElementType();
90 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, argument
96 if (Kind.isBSS() && IsGlobalInSmallSection(GV, T
[all...]
/external/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp26 const GlobalValue *GV, SectionKind Kind, Mangler &Mang,
43 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
51 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind,
25 SelectSectionForGlobal( const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
/external/llvm/lib/Target/Sparc/
H A DSparcTargetObjectFile.cpp19 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
26 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", Mang, TM);
32 MCSymbol *Sym = TM.getSymbol(GV, Mang);
33 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
42 GV, Encoding, Mang, TM, MMI, Streamer);
18 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
/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.cpp55 // Return true if GV binds locally under reloc model RM.
56 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { argument
61 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility();
64 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, argument
69 if (GV->getAlignment() == 1)
74 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/Transforms/Utils/
H A DCloneModule.cpp47 GlobalVariable *GV = new GlobalVariable(*New, local
54 GV->copyAttributesFrom(I);
55 VMap[I] = GV;
84 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); local
86 GV->setInitializer(MapValue(I->getInitializer(), VMap));
/external/llvm/include/llvm/ExecutionEngine/
H A DGenericValue.h50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument
/external/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.cpp122 XCoreTargetObjectFile::getExplicitSectionGlobal(const GlobalValue *GV, argument
125 StringRef SectionName = GV->getSection();
135 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, argument
138 bool UseCPRel = GV->isLocalLinkage(GV->getLinkage());
147 Type *ObjType = GV->getType()->getPointerElementType();
/external/clang/lib/CodeGen/
H A DTargetInfo.h57 virtual void SetTargetAttributes(const Decl *D, llvm::GlobalValue *GV, argument
62 virtual void emitTargetMD(const Decl *D, llvm::GlobalValue *GV, argument
/external/llvm/examples/Fibonacci/
H A Dfibonacci.cpp131 GenericValue GV = EE->runFunction(FibF, Args); local
134 outs() << "Result: " << GV.IntVal << "\n";
/external/llvm/include/llvm/Target/
H A DTargetLoweringObjectFile.h77 static SectionKind getKindForGlobal(const GlobalValue *GV,
83 const MCSection *SectionForGlobal(const GlobalValue *GV,
90 const MCSection *SectionForGlobal(const GlobalValue *GV, argument
93 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM);
98 /// assume that GV->hasSection() is true.
100 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
104 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, argument
113 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding,
119 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV,
[all...]
/external/llvm/lib/CodeGen/AsmPrinter/
H A DARMException.cpp126 const GlobalVariable *GV = *I; local
129 Asm->EmitTTypeReference(GV, TTypeEncoding);
/external/llvm/lib/IR/
H A DMangler.cpp79 void Mangler::getNameWithPrefix(raw_ostream &OS, const GlobalValue *GV, argument
82 if (GV->hasPrivateLinkage()) {
89 if (!GV->hasName()) {
92 unsigned &ID = AnonGlobalIDs[GV];
101 StringRef Name = GV->getName();
114 if ((MSFunc = dyn_cast<Function>(GV))) {
140 const GlobalValue *GV,
143 getNameWithPrefix(OS, GV, CannotUsePrivateLabel);
139 getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel) const argument
/external/llvm/lib/Target/NVPTX/
H A DNVPTXReplaceImageHandles.cpp344 const GlobalValue *GV = TexHandleDef.getOperand(1).getGlobal(); local
345 assert(GV->hasName() && "Global sampler must be named!");
346 Op.ChangeToImmediate(MFI->getImageHandleSymbolIndex(GV->getName().data()));
/external/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp23 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
30 const MCSymbol *Sym = TM.getSymbol(GV, Mang);
38 GV, Encoding, Mang, TM, MMI, Streamer);
42 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
44 return TM.getSymbol(GV, Mang);
22 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
41 getCFIPersonalitySymbol( const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const argument

Completed in 375 milliseconds

123456