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

123456789

/external/llvm/lib/Transforms/IPO/
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...]
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/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...]
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/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...]
H A DMipsTargetObjectFile.h27 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
32 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
/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 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);
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);
/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/include/llvm/IR/
H A DGVMaterializer.h1 //===- GVMaterializer.h - Interface for GV materializers --------*- C++ -*-===//
35 /// True if GV can be materialized from whatever backing store this
37 virtual bool isMaterializable(const GlobalValue *GV) const = 0;
39 /// True if GV has been materialized and can be dematerialized back to
41 virtual bool isDematerializable(const GlobalValue *GV) const = 0;
45 virtual std::error_code Materialize(GlobalValue *GV) = 0;
48 /// it, release the memory for the GV, and set it up to be materialized
/external/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp49 bool lowerGlobal(GlobalVariable *GV);
160 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { argument
162 for (User *U : GV->users())
179 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { argument
180 Module *M = GV->getParent();
182 if (!GV->isThreadLocal())
186 if (!rewriteNonInstructionUses(GV, this) ||
187 !GV->getType()->isSized() || isZeroLengthArray(GV->getType()))
191 ArrayType *NewType = createLoweredType(GV
231 GlobalVariable *GV = GVI; local
[all...]
H A DXCoreAsmPrinter.cpp79 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV);
80 void EmitGlobalVariable(const GlobalVariable *GV) override;
93 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { argument
94 assert( ( GV->hasExternalLinkage() || GV->hasWeakLinkage() ||
95 GV->hasLinkOnceLinkage() || GV->hasCommonLinkage() ) &&
98 cast<PointerType>(GV->getType())->getElementType())) {
106 if (GV->hasWeakLinkage() || GV
114 EmitGlobalVariable(const GlobalVariable *GV) argument
[all...]
/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/AArch64/
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;
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
/external/llvm/lib/Target/
H A DTargetMachine.cpp91 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) { argument
92 switch (GV->getThreadLocalMode()) {
108 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const {
109 bool isLocal = GV->hasLocalLinkage();
110 bool isDeclaration = GV->isDeclaration();
115 bool isHidden = GV->hasHiddenVisibility();
131 TLSModel::Model SelectedModel = getSelectedTLSModel(GV);
176 const GlobalValue *GV, Mangler &Mang,
178 if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) {
179 // Simple case: If GV i
175 getNameWithPrefix(SmallVectorImpl<char> &Name, const GlobalValue *GV, Mangler &Mang, bool MayAlwaysUsePrivate) const argument
192 getSymbol(const GlobalValue *GV, Mangler &Mang) const argument
[all...]
H A DTargetLoweringObjectFile.cpp53 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) { argument
54 const Constant *C = GV->getInitializer();
61 if (GV->isConstant())
65 if (GV->hasSection())
104 const GlobalValue *GV, StringRef Suffix, Mangler &Mang,
110 TM.getNameWithPrefix(NameStr, GV, Mang);
116 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
118 return TM.getSymbol(GV, Mang);
132 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, argument
134 assert(!GV
103 getSymbolWithGlobalValueBase( const GlobalValue *GV, StringRef Suffix, Mangler &Mang, const TargetMachine &TM) const argument
115 getCFIPersonalitySymbol( const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const argument
260 SectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
278 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
310 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
[all...]
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp94 GVMemoryBlock(const GlobalVariable *GV) argument
95 : CallbackVH(const_cast<GlobalVariable*>(GV)) {}
100 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { argument
101 Type *ElTy = GV->getType()->getElementType();
105 TD.getPreferredAlignment(GV))
107 new(RawMemory) GVMemoryBlock(GV);
121 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { argument
122 return GVMemoryBlock::Create(GV, *getDataLayout());
168 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { argument
171 DEBUG(dbgs() << "JIT: Map \'" << GV
203 updateGlobalMapping(const GlobalValue *GV, void *Addr) argument
230 getPointerToGlobalIfAvailable(const GlobalValue *GV) argument
309 GlobalVariable *GV = module->getNamedGlobal(Name); local
555 getPointerToGlobal(const GlobalValue *GV) argument
638 GenericValue GV = getConstantValue(Op0); local
644 GenericValue GV = getConstantValue(Op0); local
650 GenericValue GV = getConstantValue(Op0); local
657 GenericValue GV = getConstantValue(Op0); local
663 GenericValue GV = getConstantValue(Op0); local
668 GenericValue GV = getConstantValue(Op0); local
683 GenericValue GV = getConstantValue(Op0); local
699 GenericValue GV = getConstantValue(Op0); local
717 GenericValue GV = getConstantValue(Op0); local
726 GenericValue GV = getConstantValue(Op0); local
734 GenericValue GV = getConstantValue(Op0); local
774 GenericValue GV; local
1295 const GlobalValue *GV = NonCanonicalGlobals[i]; local
1323 EmitGlobalVariable(const GlobalVariable *GV) argument
[all...]
/external/llvm/lib/Object/
H A DIRObjectFile.cpp132 const GlobalValue *GV = &*I; local
133 return reinterpret_cast<uintptr_t>(GV) | 2;
139 const GlobalValue *GV = &*I; local
140 return reinterpret_cast<uintptr_t>(GV) | 1;
146 const GlobalValue *GV = &*I; local
147 return reinterpret_cast<uintptr_t>(GV) | 0;
158 const GlobalValue *GV = getGV(Symb); local
163 Module::const_iterator Iter(static_cast<const Function*>(GV));
169 Module::const_global_iterator Iter(static_cast<const GlobalVariable*>(GV));
175 Module::const_alias_iterator Iter(static_cast<const GlobalAlias*>(GV));
252 const GlobalValue *GV = getGV(Symb); local
[all...]
/external/llvm/lib/IR/
H A DIntrinsicInst.cpp44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
45 if (GV->hasInitializer())
46 if (Value *CO = CastOperand(GV->getInitializer()))
/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/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/include/llvm/ExecutionEngine/
H A DGenericValue.h50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; } argument

Completed in 641 milliseconds

123456789