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

1 23 4 5 6 7 8

  /external/llvm/lib/Transforms/IPO/
StripSymbols.cpp 149 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
150 if (!GV->hasLocalLinkage()) return; // Don't delete non static globals.
151 GV->eraseFromParent();
203 if (GlobalValue *GV =
205 UsedValues.insert(GV);
326 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
327 if (GV->hasLocalLinkage())
328 RemoveDeadConstant(GV);
354 // llvm.dbg.gv keeps track of debug info for global variables.
355 if (NamedMDNode *NMD = M.getNamedMetadata("llvm.dbg.gv")) {
    [all...]
  /external/llvm/include/llvm/ExecutionEngine/
ExecutionEngine.h 129 virtual char *getMemoryForGV(const GlobalVariable *GV);
285 void addGlobalMapping(const GlobalValue *GV, void *Addr);
295 /// updateGlobalMapping - Replace an existing mapping for GV with a new
299 void *updateGlobalMapping(const GlobalValue *GV, void *Addr);
304 void *getPointerToGlobalIfAvailable(const GlobalValue *GV);
308 void *getPointerToGlobal(const GlobalValue *GV);
363 virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) {
364 return getPointerToGlobal((const GlobalValue *)GV);
466 void EmitGlobalVariable(const GlobalVariable *GV);
  /external/llvm/lib/Target/Mips/
MipsCodeEmitter.cpp 93 void emitGlobalAddress(const GlobalValue *GV, unsigned Reloc,
115 void emitGlobalAddressUnaligned(const GlobalValue *GV, unsigned Reloc,
237 void MipsCodeEmitter::emitGlobalAddress(const GlobalValue *GV, unsigned Reloc,
240 const_cast<GlobalValue *>(GV), 0,
244 void MipsCodeEmitter::emitGlobalAddressUnaligned(const GlobalValue *GV,
247 const_cast<GlobalValue *>(GV), 0, false));
249 Reloc, const_cast<GlobalValue *>(GV), 0, false));
  /external/llvm/lib/Target/X86/
X86AsmPrinter.cpp 89 const GlobalValue *GV = MO.getGlobal();
93 GVSym = GetSymbolWithGlobalValueBase(GV, "$stub");
97 GVSym = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
99 GVSym = Mang->getSymbol(GV);
107 MCSymbol *Sym = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
112 StubValueTy(Mang->getSymbol(GV), !GV->hasInternalLinkage());
114 MCSymbol *Sym = GetSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
119 StubValueTy(Mang->getSymbol(GV), !GV->hasInternalLinkage())
    [all...]
  /external/llvm/lib/CodeGen/
Analysis.cpp 110 GlobalVariable *GV = dyn_cast<GlobalVariable>(V);
112 if (GV && GV->getName() == "llvm.eh.catch.all.value") {
113 assert(GV->hasInitializer() &&
115 Value *Init = GV->getInitializer();
116 GV = dyn_cast<GlobalVariable>(Init);
117 if (!GV) V = cast<ConstantPointerNull>(Init);
120 assert((GV || isa<ConstantPointerNull>(V)) &&
122 return GV;
  /external/llvm/lib/Target/MSP430/
MSP430ISelDAGToDAG.cpp 47 const GlobalValue *GV;
55 : BaseType(RegBase), Disp(0), GV(0), CP(0), BlockAddr(0),
60 return GV != 0 || CP != 0 || ES != 0 || JT != -1;
72 if (GV) {
73 errs() << "GV ";
74 GV->dump();
148 AM.GV = G->getGlobal();
230 // Address could not have picked a GV address for the displacement.
231 AM.GV == NULL &&
265 if (AM.GV)
    [all...]
  /external/llvm/tools/lto/
LTOCodeGenerator.cpp 270 applyRestriction(GlobalValue &GV,
275 mangler.getNameWithPrefix(Buffer, &GV, false);
277 if (GV.isDeclaration())
280 mustPreserveList.push_back(GV.getName().data());
282 asmUsed.insert(&GV);
293 if (GlobalValue *GV =
295 UsedValues.insert(GV);
332 GlobalValue *GV = *i;
333 Constant *c = ConstantExpr::getBitCast(GV, i8PTy);
LTOCodeGenerator.h 60 void applyRestriction(llvm::GlobalValue &GV,
  /external/llvm/include/llvm/CodeGen/
AsmPrinter.h 212 virtual void EmitGlobalVariable(const GlobalVariable *GV);
217 bool EmitSpecialLLVMGlobal(const GlobalVariable *GV);
225 void EmitAlignment(unsigned NumBits, const GlobalValue *GV = 0) const;
298 MCSymbol *GetSymbolWithGlobalValueBase(const GlobalValue *GV,
389 void EmitTTypeReference(const GlobalValue *GV, unsigned Encoding) const;
  /external/llvm/lib/Target/CppBackend/
CPPBackend.cpp 151 void printVariableUses(const GlobalVariable *GV);
152 void printVariableHead(const GlobalVariable *GV);
153 void printVariableBody(const GlobalVariable *GV);
428 if (const GlobalVariable* GV = dyn_cast<GlobalVariable>(val)) {
430 getTypePrefix(GV->getType()->getElementType());
    [all...]
  /external/llvm/lib/CodeGen/AsmPrinter/
AsmPrinter.cpp 71 static unsigned getGVAlignmentLog2(const GlobalValue *GV, const DataLayout &TD,
74 if (const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV))
81 // If the GV has a specified alignment, take it into account.
82 if (GV->getAlignment() == 0)
85 unsigned GVAlign = Log2_32(GV->getAlignment());
88 // NumBits because the GV has an assigned section, obey it.
89 if (GVAlign > NumBits || GV->hasSection())
258 void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
259 if (GV->hasInitializer()) {
261 if (EmitSpecialLLVMGlobal(GV))
    [all...]
AsmPrinterDwarf.cpp 122 void AsmPrinter::EmitTTypeReference(const GlobalValue *GV,
124 if (GV) {
128 TLOF.getTTypeGlobalReference(GV, Mang, MMI, Encoding, OutStreamer);
ARMException.cpp 112 const GlobalVariable *GV = *I;
115 Asm->EmitTTypeReference(GV, TTypeEncoding);
  /external/llvm/lib/IR/
Verifier.cpp 240 void visitGlobalValue(GlobalValue &GV);
241 void visitGlobalVariable(GlobalVariable &GV);
384 void Verifier::visitGlobalValue(GlobalValue &GV) {
385 Assert1(!GV.isDeclaration() ||
386 GV.isMaterializable() ||
387 GV.hasExternalLinkage() ||
388 GV.hasDLLImportLinkage() ||
389 GV.hasExternalWeakLinkage() ||
390 (isa<GlobalAlias>(GV) &&
391 (GV.hasLocalLinkage() || GV.hasWeakLinkage()))
    [all...]
IRBuilder.cpp 29 GlobalVariable *GV = new GlobalVariable(M, StrConstant->getType(),
32 GV->setName(Name);
33 GV->setUnnamedAddr(true);
34 return GV;
AsmWriter.cpp 64 if (const GlobalValue *GV = dyn_cast<GlobalValue>(V))
65 return GV->getParent();
435 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
436 return new SlotTracker(GV->getParent());
    [all...]
  /external/llvm/lib/Target/ARM/
ARMInstrInfo.cpp 110 GlobalValue *GV = new GlobalVariable(Type::getInt32Ty(*Context), false,
114 ARMConstantPoolValue *CPV = ARMConstantPoolConstant::Create(GV, Id);
115 unsigned Align = TM->getDataLayout()->getPrefTypeAlignment(GV->getType());
  /external/llvm/examples/Fibonacci/
fibonacci.cpp 131 GenericValue GV = EE->runFunction(FibF, Args);
134 outs() << "Result: " << GV.IntVal << "\n";
  /external/llvm/unittests/ExecutionEngine/MCJIT/
MCJITTest.cpp 96 GlobalVariable *GV = insertGlobalInt32(M.get(), "myglob", initialNum);
100 Value *ReadGlobal = Builder.CreateLoad(GV);
128 GlobalVariable *GV = insertGlobalInt32(M.get(), "my_global", initialNum);
129 Value *DerefGV = Builder.CreateLoad(GV);
132 Builder.CreateStore(AddResult, GV);
136 void *gvPtr = TheJIT->getPointerToGlobal(GV);
  /external/clang/lib/CodeGen/
CGRTTI.cpp 127 llvm::GlobalVariable *GV =
130 GV->setInitializer(Init);
132 return GV;
144 llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name);
146 if (!GV) {
148 GV = new llvm::GlobalVariable(CGM.getModule(), CGM.Int8PtrTy,
153 return llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy);
528 maybeUpdateRTTILinkage(CodeGenModule &CGM, llvm::GlobalVariable *GV,
531 if (!GV->hasAvailableExternallyLinkage())
543 GV->setLinkage(Linkage)
    [all...]
TargetInfo.h 54 virtual void SetTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
  /external/llvm/lib/Target/AArch64/
AArch64AsmPrinter.cpp 101 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(MO.getGlobal())) {
103 if (GV->isThreadLocal()) {
104 switch (TM.getTLSModel(GV)) {
118 } else if (Subtarget->GVIsIndirectSymbol(GV, RelocM)) {
  /frameworks/compile/libbcc/bcinfo/BitReader_2_7/
BitcodeReader.h 212 virtual bool isMaterializable(const GlobalValue *GV) const;
213 virtual bool isDematerializable(const GlobalValue *GV) const;
214 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0);
216 virtual void Dematerialize(GlobalValue *GV);
  /frameworks/compile/libbcc/bcinfo/BitReader_3_0/
BitcodeReader.h 206 virtual bool isMaterializable(const GlobalValue *GV) const;
207 virtual bool isDematerializable(const GlobalValue *GV) const;
208 virtual bool Materialize(GlobalValue *GV, std::string *ErrInfo = 0);
210 virtual void Dematerialize(GlobalValue *GV);
  /external/llvm/lib/Analysis/
ConstantFolding.cpp 222 static bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV,
225 if ((GV = dyn_cast<GlobalValue>(C))) {
237 return IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD);
242 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, TD))
417 GlobalVariable *GV = dyn_cast<GlobalVariable>(GVal);
418 if (!GV || !GV->isConstant() || !GV->hasDefinitiveInitializer() ||
419 !GV->getInitializer()->getType()->isSized())
428 TD.getTypeAllocSize(GV->getInitializer()->getType())
    [all...]

Completed in 570 milliseconds

1 23 4 5 6 7 8