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

1 2 3 4 5 6 7 8 9

  /external/llvm/lib/Transforms/IPO/
ConstantMerge.cpp 48 bool hasKnownAlignment(GlobalVariable *GV) const;
52 unsigned getAlignment(GlobalVariable *GV) const;
74 GlobalValue *GV = cast<GlobalValue>(Operand);
75 UsedValues.insert(GV);
91 bool ConstantMerge::hasKnownAlignment(GlobalVariable *GV) const {
92 return TD || GV->getAlignment() != 0;
95 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const {
97 return TD->getPreferredAlignment(GV);
98 return GV->getAlignment();
128 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
  /external/llvm/lib/Target/XCore/
XCoreLowerThreadLocal.cpp 46 bool lowerGlobal(GlobalVariable *GV);
74 static bool hasNonInstructionUse(GlobalVariable *GV) {
75 for (Value::use_iterator UI = GV->use_begin(), E = GV->use_end(); UI != E;
88 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) {
89 Module *M = GV->getParent();
91 if (!GV->isThreadLocal())
95 if (hasNonInstructionUse(GV) ||
96 !GV->getType()->isSized() || isZeroLengthArray(GV->getType())
    [all...]
XCoreAsmPrinter.cpp 71 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV);
72 virtual void EmitGlobalVariable(const GlobalVariable *GV);
81 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) {
82 assert(((GV->hasExternalLinkage() ||
83 GV->hasWeakLinkage()) ||
84 GV->hasLinkOnceLinkage()) && "Unexpected linkage");
86 cast<PointerType>(GV->getType())->getElementType())) {
95 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage()) {
103 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
    [all...]
  /external/llvm/lib/Target/SystemZ/
SystemZSubtarget.cpp 33 // Return true if GV binds locally under reloc model RM.
34 static bool bindsLocally(const GlobalValue *GV, Reloc::Model RM) {
39 return GV->hasLocalLinkage() || !GV->hasDefaultVisibility();
42 bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV,
47 if (GV->getAlignment() == 1)
52 return bindsLocally(GV, RM);
SystemZConstantPoolValue.h 30 const GlobalValue *GV;
34 SystemZConstantPoolValue(const GlobalValue *GV,
39 Create(const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier);
49 const GlobalValue *getGlobalValue() const { return GV; }
SystemZConstantPoolValue.cpp 19 SystemZConstantPoolValue(const GlobalValue *gv,
21 : MachineConstantPoolValue(gv->getType()), GV(gv), Modifier(modifier) {}
24 SystemZConstantPoolValue::Create(const GlobalValue *GV,
26 return new SystemZConstantPoolValue(GV, Modifier);
48 if (ZCPV->GV == GV && ZCPV->Modifier == Modifier)
56 ID.AddPointer(GV);
61 O << GV << "@" << int(Modifier)
    [all...]
  /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 56 MCSymbol *getSymbol(const GlobalValue *GV);
61 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV,
  /external/llvm/lib/Target/AArch64/
AArch64Subtarget.cpp 35 bool AArch64Subtarget::GVIsIndirectSymbol(const GlobalValue *GV,
40 return !GV->hasLocalLinkage() && !GV->hasHiddenVisibility();
  /external/llvm/lib/Target/Hexagon/
HexagonTargetObjectFile.cpp 57 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV,
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,
76 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV);
81 Type *Ty = GV->getType()->getElementType()
    [all...]
HexagonTargetObjectFile.h 26 bool IsGlobalInSmallSection(const GlobalValue *GV,
29 bool IsGlobalInSmallSection(const GlobalValue *GV,
33 const MCSection* SelectSectionForGlobal(const GlobalValue *GV,
  /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 89 GVMemoryBlock(const GlobalVariable *GV)
90 : CallbackVH(const_cast<GlobalVariable*>(GV)) {}
95 static char *Create(const GlobalVariable *GV, const DataLayout& TD) {
96 Type *ElTy = GV->getType()->getElementType();
100 TD.getPreferredAlignment(GV))
102 new(RawMemory) GVMemoryBlock(GV);
116 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) {
117 return GVMemoryBlock::Create(GV, *getDataLayout());
160 void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) {
163 DEBUG(dbgs() << "JIT: Map \'" << GV->getName(
    [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/PowerPC/
PPCTargetObjectFile.cpp 26 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
30 TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang, TM);
49 const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);
PPCSubtarget.cpp 148 bool PPCSubtarget::hasLazyResolverStub(const GlobalValue *GV,
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/Transforms/Utils/
ModuleUtils.cpp 71 GlobalVariable *GV = M.getGlobalVariable(Name);
72 if (!GV || !GV->hasInitializer())
73 return GV;
75 const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
81 return GV;
  /external/llvm/include/llvm/ExecutionEngine/
GenericValue.h 50 inline void* GVTOP(const GenericValue &GV) { return GV.PointerVal; }
  /external/llvm/lib/Target/ARM/
ARMTargetObjectFile.cpp 45 getTTypeGlobalReference(const GlobalValue *GV, Mangler *Mang,
50 return MCSymbolRefExpr::Create(Mang->getSymbol(GV),

Completed in 572 milliseconds

1 2 3 4 5 6 7 8 9