Searched refs:GV (Results 1 - 25 of 232) sorted by relevance

12345678910

/external/llvm/lib/Transforms/IPO/
H A DConstantMerge.cpp49 bool hasKnownAlignment(GlobalVariable *GV) const;
53 unsigned getAlignment(GlobalVariable *GV) const;
74 GlobalValue *GV = cast<GlobalValue>(Operand); local
75 UsedValues.insert(GV);
91 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const {
92 unsigned Align = GV->getAlignment();
95 return GV->getParent()->getDataLayout().getPreferredAlignment(GV);
122 GlobalVariable *GV = GVI++; local
124 // If this GV i
163 GlobalVariable *GV = GVI++; local
[all...]
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...]
/external/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.cpp63 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const { argument
67 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
68 return IsGlobalInSmallSectionImpl(GV, TM);
70 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
76 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument
78 return (IsGlobalInSmallSectionImpl(GV, TM) &&
86 IsGlobalInSmallSectionImpl(const GlobalValue *GV, argument
96 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
114 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
[all...]
H A DMipsTargetObjectFile.h27 bool IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
31 bool IsGlobalInSmallSectionImpl(const GlobalValue *GV,
34 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
/external/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp53 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, argument
58 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
61 // Otherwise, Check if GV should be in sdata/sbss, when normally it would end
62 // up in getKindForGlobal(GV, TM).
63 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
69 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, argument
72 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
77 Type *Ty = GV
85 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
[all...]
H A DHexagonTargetObjectFile.h26 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
/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.cpp21 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {}
24 SystemZConstantPoolValue::Create(const GlobalValue *GV, argument
26 return new SystemZConstantPoolValue(GV, Modifier);
53 if (ZCPV->GV == GV && ZCPV->Modifier == Modifier)
61 ID.AddPointer(GV);
66 O << GV << "@" << int(Modifier);
H A DSystemZConstantPoolValue.h34 const GlobalValue *GV; member in class:llvm::SystemZConstantPoolValue
38 SystemZConstantPoolValue(const GlobalValue *GV,
43 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
53 const GlobalValue *getGlobalValue() const { return GV; }
H A DSystemZSubtarget.cpp47 // Return true if GV binds locally under reloc model RM.
48 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) { argument
53 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility();
56 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV, argument
61 if (GV->getAlignment() == 1)
66 return bindsLocally(GV, RM);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAssignValidGlobalNames.cpp53 for (GlobalVariable &GV : M.globals()) {
55 if (GV.hasLocalLinkage()) {
60 GV.setName(cleanUpName(GV.getName()));
/external/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp49 bool lowerGlobal(GlobalVariable *GV);
161 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { argument
163 for (User *U : GV->users())
180 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { argument
181 Module *M = GV->getParent();
183 if (!GV->isThreadLocal())
187 if (!rewriteNonInstructionUses(GV, this) ||
188 !GV->getType()->isSized() || isZeroLengthArray(GV->getType()))
192 ArrayType *NewType = createLoweredType(GV
233 GlobalVariable *GV = GVI; local
[all...]
H A DXCoreAsmPrinter.cpp78 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV);
79 void EmitGlobalVariable(const GlobalVariable *GV) override;
92 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { argument
93 assert( ( GV->hasExternalLinkage() || GV->hasWeakLinkage() ||
94 GV->hasLinkOnceLinkage() || GV->hasCommonLinkage() ) &&
97 cast<PointerType>(GV->getType())->getElementType())) {
105 if (GV->hasWeakLinkage() || GV
112 EmitGlobalVariable(const GlobalVariable *GV) argument
[all...]
/external/llvm/lib/Target/
H A DTargetMachine.cpp92 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) { argument
93 switch (GV->getThreadLocalMode()) {
109 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const {
110 bool isLocal = GV->hasLocalLinkage();
111 bool isDeclaration = GV->isDeclaration();
116 bool isHidden = GV->hasHiddenVisibility();
132 TLSModel::Model SelectedModel = getSelectedTLSModel(GV);
171 const GlobalValue *GV, Mangler &Mang,
173 if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) {
174 // Simple case: If GV i
[all...]
H A DTargetLoweringObjectFile.cpp54 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) { argument
55 const Constant *C = GV->getInitializer();
62 if (GV->isConstant())
66 if (GV->hasSection())
105 const GlobalValue *GV, StringRef Suffix, Mangler &Mang,
111 TM.getNameWithPrefix(NameStr, GV, Mang);
117 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
119 return TM.getSymbol(GV, Mang);
133 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, argument
135 assert(!GV
104 getSymbolWithGlobalValueBase( const GlobalValue *GV, StringRef Suffix, Mangler &Mang, const TargetMachine &TM) const argument
116 getCFIPersonalitySymbol( const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const argument
262 SectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
311 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
347 getNameWithPrefix( SmallVectorImpl<char> &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel, Mangler &Mang, const TargetMachine &TM) const argument
[all...]
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp90 GVMemoryBlock(const GlobalVariable *GV) argument
91 : CallbackVH(const_cast<GlobalVariable*>(GV)) {}
96 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { argument
97 Type *ElTy = GV->getType()->getElementType();
101 TD.getPreferredAlignment(GV))
103 new(RawMemory) GVMemoryBlock(GV);
117 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { argument
118 return GVMemoryBlock::Create(GV, *getDataLayout());
174 std::string ExecutionEngine::getMangledName(const GlobalValue *GV) { argument
178 Mang.getNameWithPrefix(FullName, GV
182 addGlobalMapping(const GlobalValue *GV, void *Addr) argument
223 updateGlobalMapping(const GlobalValue *GV, void *Addr) argument
274 getPointerToGlobalIfAvailable(const GlobalValue *GV) argument
351 GlobalVariable *GV = module.getNamedGlobal(Name); local
554 getPointerToGlobal(const GlobalValue *GV) argument
637 GenericValue GV = getConstantValue(Op0); local
643 GenericValue GV = getConstantValue(Op0); local
649 GenericValue GV = getConstantValue(Op0); local
656 GenericValue GV = getConstantValue(Op0); local
662 GenericValue GV = getConstantValue(Op0); local
667 GenericValue GV = getConstantValue(Op0); local
682 GenericValue GV = getConstantValue(Op0); local
698 GenericValue GV = getConstantValue(Op0); local
716 GenericValue GV = getConstantValue(Op0); local
725 GenericValue GV = getConstantValue(Op0); local
733 GenericValue GV = getConstantValue(Op0); local
773 GenericValue GV; local
1291 const GlobalValue *GV = NonCanonicalGlobals[i]; local
1319 EmitGlobalVariable(const GlobalVariable *GV) argument
[all...]
/external/clang/lib/CodeGen/
H A DSanitizerMetadata.h40 void reportGlobalToASan(llvm::GlobalVariable *GV, const VarDecl &D,
42 void reportGlobalToASan(llvm::GlobalVariable *GV, SourceLocation Loc,
45 void disableSanitizerForGlobal(llvm::GlobalVariable *GV);
/external/llvm/include/llvm/Target/
H A DTargetLoweringObjectFile.h85 static SectionKind getKindForGlobal(const GlobalValue *GV,
91 const MCSection *SectionForGlobal(const GlobalValue *GV,
98 const MCSection *SectionForGlobal(const GlobalValue *GV, argument
101 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM);
105 const GlobalValue *GV,
118 /// assume that GV->hasSection() is true.
120 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
124 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, argument
133 getTTypeGlobalReference(const GlobalValue *GV, unsigne
[all...]
/external/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp44 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
49 GV, Encoding, Mang, TM, MMI, Streamer);
53 return MCSymbolRefExpr::Create(TM.getSymbol(GV, Mang),
43 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
/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/Object/
H A DIRObjectFile.cpp128 const GlobalValue *GV = &*I; local
129 return reinterpret_cast<uintptr_t>(GV) | 2;
135 const GlobalValue *GV = &*I; local
136 return reinterpret_cast<uintptr_t>(GV) | 1;
142 const GlobalValue *GV = &*I; local
143 return reinterpret_cast<uintptr_t>(GV) | 0;
154 const GlobalValue *GV = getGV(Symb); local
159 Module::const_iterator Iter(static_cast<const Function*>(GV));
165 Module::const_global_iterator Iter(static_cast<const GlobalVariable*>(GV));
171 Module::const_alias_iterator Iter(static_cast<const GlobalAlias*>(GV));
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64Subtarget.cpp60 AArch64Subtarget::ClassifyGlobalReference(const GlobalValue *GV, argument
62 bool isDecl = GV->isDeclarationForLinker();
72 GV->isWeakForLinker() && isDecl) {
88 if (TM.getRelocationModel() != Reloc::Static && GV->hasDefaultVisibility()) {
90 return (isDecl || GV->isWeakForLinker()) ? AArch64II::MO_GOT
94 return GV->hasLocalLinkage() ? AArch64II::MO_NO_FLAG : AArch64II::MO_GOT;
/external/llvm/include/llvm/ExecutionEngine/
H A DGenericValue.h50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument
/external/llvm/include/llvm/IR/
H A DGVMaterializer.h1 //===- GVMaterializer.h - Interface for GV materializers --------*- C++ -*-===//
37 /// True if GV has been materialized and can be dematerialized back to
39 virtual bool isDematerializable(const GlobalValue *GV) const = 0;
43 virtual std::error_code materialize(GlobalValue *GV) = 0;
46 /// it, release the memory for the GV, and set it up to be materialized

Completed in 6132 milliseconds

12345678910