HomeSort by relevance Sort by last modified time
    Searched refs:GV (Results 1 - 25 of 191) sorted by null

1 2 3 4 5 6 7 8

  /external/llvm/lib/Transforms/IPO/
ConstantMerge.cpp 47 bool hasKnownAlignment(GlobalVariable *GV) const;
51 unsigned getAlignment(GlobalVariable *GV) const;
73 if (GlobalValue *GV =
75 UsedValues.insert(GV);
90 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const {
91 return TD || GV->getAlignment() != 0;
94 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const {
96 return TD->getPreferredAlignment(GV);
97 return GV->getAlignment();
127 GlobalVariable *GV = GVI++
    [all...]
StripDeadPrototypes.cpp 61 GlobalVariable *GV = I++;
63 if (GV->isDeclaration() && GV->use_empty())
64 GV->eraseFromParent();
  /external/llvm/include/llvm/
GVMaterializer.h 1 //===-- llvm/GVMaterializer.h - Interface for GV materializers --*- C++ -*-===//
36 /// isMaterializable - True if GV can be materialized from whatever backing
38 virtual bool isMaterializable(const GlobalValue *GV) const = 0;
40 /// isDematerializable - True if GV has been materialized and can be
42 virtual bool isDematerializable(const GlobalValue *GV) const = 0;
48 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0) = 0;
51 /// GVMaterializer supports it, release the memory for the GV, and set it up
AutoUpgrade.h 41 bool UpgradeGlobalVariable(GlobalVariable *GV);
  /external/llvm/lib/Target/Hexagon/
HexagonTargetObjectFile.cpp 51 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV,
56 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
59 // Otherwise, Check if GV should be in sdata/sbss, when normally it would end
60 // up in getKindForGlobal(GV, TM).
61 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
67 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM,
70 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
75 Type *Ty = GV->getType()->getElementType()
    [all...]
HexagonTargetObjectFile.h 26 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
32 const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
  /external/llvm/lib/Target/MBlaze/
MBlazeTargetObjectFile.cpp 46 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const {
47 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
50 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
56 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM,
59 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
72 Type *Ty = GV->getType()->getElementType();
77 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
83 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind)
    [all...]
MBlazeTargetObjectFile.h 26 bool IsGlobalInSmallSection(const GlobalValue *GV,
30 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
  /external/llvm/include/llvm/Target/
TargetLoweringObjectFile.h 67 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV,
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,
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, Mangler *Mang
    [all...]
Mangler.h 55 MCSymbol *getSymbol(const GlobalValue *GV);
60 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
  /external/llvm/lib/Target/AArch64/
AArch64Subtarget.cpp 37 bool AArch64Subtarget::GVIsIndirectSymbol(const GlobalValue *GV,
42 return !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
  /external/llvm/lib/Target/Mips/
MipsTargetObjectFile.cpp 64 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV,
66 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
69 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM));
75 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM,
85 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
98 Type *Ty = GV->getType()->getElementType();
105 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
111 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind)
    [all...]
MipsTargetObjectFile.h 28 bool IsGlobalInSmallSection(const GlobalValue *GV,
30 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection *SelectSectionForGlobal(const GlobalValue *GV,
  /external/llvm/include/llvm/CodeGen/
TargetLoweringObjectFileImpl.h 51 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
55 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
61 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
67 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
90 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
94 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
102 virtual bool shouldEmitUsedDirectiveFor(const GlobalValue *GV,
108 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
114 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
125 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind
    [all...]
  /external/llvm/lib/Target/X86/
X86TargetObjectFile.h 24 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
31 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
X86TargetObjectFile.cpp 21 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
28 const MCSymbol *Sym = Mang->getSymbol(GV);
36 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer);
40 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
42 return Mang->getSymbol(GV);
  /external/llvm/lib/ExecutionEngine/
ExecutionEngine.cpp 88 GVMemoryBlock(const GlobalVariable *GV)
89 : CallbackVH(const_cast<GlobalVariable*>(GV)) {}
94 static char *Create(const GlobalVariable *GV, const DataLayout& TD) {
95 Type *ElTy = GV->getType()->getElementType();
99 TD.getPreferredAlignment(GV))
101 new(RawMemory) GVMemoryBlock(GV);
115 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
116 return GVMemoryBlock::Create(GV, *getDataLayout());
159 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
162 DEBUG(dbgs() << "JIT: Map \'" << GV->getName(
    [all...]
  /external/llvm/include/llvm/ExecutionEngine/
GenericValue.h 45 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; }
  /external/llvm/lib/Target/PowerPC/
PPCSubtarget.cpp 110 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV,
117 bool isDecl = GV->isDeclaration() && !GV->isMaterializable();
118 if (GV->hasHiddenVisibility() && !isDecl && !GV->hasCommonLinkage())
120 return GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() ||
121 GV->hasCommonLinkage() || isDecl;
  /external/llvm/lib/CodeGen/
TargetLoweringObjectFileImpl.cpp 47 TargetLoweringObjectFileELF::getCFIPersonalitySymbol(const GlobalValue *GV,
55 return Mang->getSymbol(GV);
58 Mang->getSymbol(GV)->getName());
91 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
99 Mang->getNameWithPrefix(Name, GV, true);
107 MCSymbol *Sym = Mang->getSymbol(GV);
108 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
117 getTTypeGlobalReference(GV, Mang, MMI, Encoding, Streamer);
204 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
206 StringRef SectionName = GV->getSection()
    [all...]
  /external/llvm/lib/IR/
IntrinsicInst.cpp 44 } else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
45 if (GV->hasInitializer())
46 if (Value *CO = CastOperand(GV->getInitializer()))
  /external/llvm/lib/Target/ARM/
ARMTargetObjectFile.cpp 45 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
50 return MCSymbolRefExpr::Create(Mang->getSymbol(GV),
ARMSubtarget.cpp 167 /// GVIsIndirectSymbol - true if the GV will be accessed via an indirect symbol.
169 ARMSubtarget::GVIsIndirectSymbol(const GlobalValue *GV,
176 bool isDecl = GV->hasAvailableExternallyLinkage();
177 if (GV->isDeclaration() && !GV->isMaterializable())
182 if (GV->hasLocalLinkage() || GV->hasHiddenVisibility())
189 if (!isDecl && !GV->isWeakForLinker())
194 if (!GV->hasHiddenVisibility()) // Non-hidden $non_lazy_ptr reference.
199 if (isDecl || GV->hasCommonLinkage()
    [all...]
  /external/llvm/lib/Target/
TargetLoweringObjectFile.cpp 50 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) {
51 const Constant *C = GV->getInitializer();
58 if (GV->isConstant())
62 if (!GV->getSection().empty())
101 getCFIPersonalitySymbol(const GlobalValue *GV, Mangler *Mang,
103 return Mang->getSymbol(GV);
117 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV,
119 assert(!GV->isDeclaration() && !GV->hasAvailableExternallyLinkage() &&
125 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
    [all...]
  /external/llvm/lib/Target/XCore/
XCoreAsmPrinter.cpp 79 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV);
80 virtual void EmitGlobalVariable(const GlobalVariable *GV);
90 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) {
91 assert(((GV->hasExternalLinkage() ||
92 GV->hasWeakLinkage()) ||
93 GV->hasLinkOnceLinkage()) && "Unexpected linkage");
95 cast<PointerType>(GV->getType())->getElementType())) {
101 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage()) {
109 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
    [all...]

Completed in 7206 milliseconds

1 2 3 4 5 6 7 8