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

1 2 3 4

  /external/llvm/lib/Transforms/IPO/
StripDeadPrototypes.cpp 62 GlobalVariable *GV = I++;
64 if (GV->isDeclaration() && GV->use_empty())
65 GV->eraseFromParent();
ConstantMerge.cpp 49 bool hasKnownAlignment(GlobalVariable *GV) const;
53 unsigned getAlignment(GlobalVariable *GV) const;
75 GlobalValue *GV = cast<GlobalValue>(Operand);
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 = GVI++
    [all...]
  /external/llvm/lib/Target/AArch64/
AArch64MCInstLower.cpp 54 llvm_unreachable("Unexpected target flags with MO_GOT on GV operand");
62 llvm_unreachable("Unexpected target flags with MO_TLS on GV operand");
86 const GlobalValue *GV = MO.getGlobal();
87 Model = Printer.TM.getTLSModel(GV);
  /external/llvm/lib/Target/SystemZ/
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; }
  /external/llvm/lib/Transforms/Utils/
CloneModule.cpp 47 GlobalVariable *GV = new GlobalVariable(*New,
54 GV->copyAttributesFrom(I);
55 VMap[I] = GV;
84 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]);
86 GV->setInitializer(MapValue(I->getInitializer(), VMap));
CtorUtils.cpp 60 // If we didn't change the number of elements, don't create a new GV.
85 std::vector<Function*> parseGlobalCtors(GlobalVariable *GV) {
86 if (GV->getInitializer()->isNullValue())
88 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
101 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors");
102 if (!GV)
107 if (!GV->hasUniqueInitializer())
110 if (isa<ConstantAggregateZero>(GV->getInitializer()))
111 return GV;
112 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer())
    [all...]
ModuleUtils.cpp 84 GlobalVariable *GV = M.getGlobalVariable(Name);
85 if (!GV || !GV->hasInitializer())
86 return GV;
88 const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
94 return GV;
  /external/llvm/examples/Fibonacci/
fibonacci.cpp 131 GenericValue GV = EE->runFunction(FibF, Args);
134 outs() << "Result: " << GV.IntVal << "\n";
  /external/llvm/lib/CodeGen/AsmPrinter/
ARMException.cpp 126 const GlobalVariable *GV = *I;
129 Asm->EmitTTypeReference(GV, TTypeEncoding);
WinCodeViewLineTables.cpp 130 void WinCodeViewLineTables::emitDebugInfoForFunction(const Function *GV) {
133 const MCSymbol *Fn = Asm->getSymbol(GV);
136 const FunctionInfo &FI = FnDebugInfo[GV];
270 const Function *GV = MF->getFunction();
271 assert(FnDebugInfo.count(GV) == false);
272 VisitedFunctions.push_back(GV);
273 CurFn = &FnDebugInfo[GV];
310 const Function *GV = MF->getFunction();
311 assert(FnDebugInfo.count(GV));
312 assert(CurFn == &FnDebugInfo[GV]);
    [all...]
  /external/llvm/lib/IR/
IRBuilder.cpp 29 GlobalVariable *GV = new GlobalVariable(M, StrConstant->getType(),
32 GV->setName(Name);
33 GV->setUnnamedAddr(true);
34 return GV;
Globals.cpp 51 llvm_unreachable("You can't GV->destroyConstant()!");
85 const auto *GV = cast<GlobalObject>(Src);
86 GlobalValue::copyAttributesFrom(GV);
87 setAlignment(GV->getAlignment());
88 setSection(GV->getSection());
115 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this))
116 return GV->getNumOperands() == 0;
  /external/llvm/tools/llvm-extract/
llvm-extract.cpp 151 GlobalValue *GV = M->getNamedGlobal(ExtractGlobals[i]);
152 if (!GV) {
157 GVs.insert(GV);
169 for (auto &GV : M->globals()) {
170 if (RegEx.match(GV.getName())) {
171 GVs.insert(&GV);
184 GlobalValue *GV = M->getFunction(ExtractFuncs[i]);
185 if (!GV) {
190 GVs.insert(GV);
219 GlobalValue *GV = GVs[i]
    [all...]
  /external/clang/lib/CodeGen/
CGVTT.cpp 119 llvm::GlobalVariable *GV =
122 GV->setUnnamedAddr(true);
123 return GV;
  /external/llvm/lib/Object/
IRObjectFile.cpp 132 const GlobalValue *GV = &*I;
133 return reinterpret_cast<uintptr_t>(GV) | 2;
139 const GlobalValue *GV = &*I;
140 return reinterpret_cast<uintptr_t>(GV) | 1;
146 const GlobalValue *GV = &*I;
147 return reinterpret_cast<uintptr_t>(GV) | 0;
158 const GlobalValue *GV = getGV(Symb);
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));
    [all...]
  /external/llvm/lib/Target/NVPTX/
NVPTXReplaceImageHandles.cpp 344 const GlobalValue *GV = TexHandleDef.getOperand(1).getGlobal();
345 assert(GV->hasName() && "Global sampler must be named!");
346 Op.ChangeToImmediate(MFI->getImageHandleSymbolIndex(GV->getName().data()));
NVPTXGenericToNVVM.cpp 48 Value *getOrInsertCVTA(Module *M, Function *F, GlobalVariable *GV,
84 GlobalVariable *GV = I++;
85 if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC &&
86 !llvm::isTexture(*GV) && !llvm::isSurface(*GV) &&
87 !llvm::isSampler(*GV) && !GV->getName().startswith("llvm.")) {
89 M, GV->getType()->getElementType(), GV->isConstant(),
90 GV->getLinkage()
    [all...]
  /external/llvm/lib/Target/PowerPC/
PPCMCInstLower.cpp 59 const GlobalValue *GV = MO.getGlobal();
60 TM.getNameWithPrefix(Name, GV, *Mang);
  /external/llvm/lib/Target/X86/
X86InstrBuilder.h 51 const GlobalValue *GV;
55 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr),
76 if (GV)
77 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags));
135 if (AM.GV)
136 MIB.addGlobalAddress(AM.GV, AM.Disp, AM.GVOpFlags);
  /external/llvm/unittests/ExecutionEngine/MCJIT/
MCJITTest.cpp 100 GlobalVariable *GV = insertGlobalInt32(M.get(), "myglob", initialNum);
104 Value *ReadGlobal = Builder.CreateLoad(GV);
130 GlobalVariable *GV = insertGlobalInt32(M.get(), "my_global", initialNum);
131 Value *DerefGV = Builder.CreateLoad(GV);
134 Builder.CreateStore(AddResult, GV);
138 void *gvPtr = TheJIT->getPointerToGlobal(GV);
  /external/llvm/lib/Target/XCore/
XCoreLowerThreadLocal.cpp 49 bool lowerGlobal(GlobalVariable *GV);
160 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) {
162 for (User *U : GV->users())
179 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) {
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->getType()->getElementType())
    [all...]
  /external/llvm/unittests/IR/
IRBuilderTest.cpp 33 GV = new GlobalVariable(*M, Type::getFloatTy(Ctx), true,
46 GlobalVariable *GV;
135 F = Builder.CreateLoad(GV);
274 Value *F = Builder.CreateLoad(GV);
  /external/llvm/unittests/Linker/
LinkModulesTest.cpp 38 GV = new GlobalVariable(*M.get(), AT, false /*=isConstant*/,
54 GV->setInitializer(ConstantArray::get(AT, Init));
62 GlobalVariable *GV;
76 Value *GEP = Builder.CreateGEP(GV, GEPIndices, "switch.gep");
139 GlobalVariable *GV =
143 GV->setInitializer(ConstantStruct::get(STy, F));
  /external/llvm/include/llvm/CodeGen/
MachineRelocation.h 41 isGV, // The Target.GV field is valid.
59 GlobalValue *GV; // If this is a pointer to a GV or an indirect ref.
83 GlobalValue *GV, intptr_t cst = 0,
95 Result.Target.GV = GV;
103 GlobalValue *GV, intptr_t cst = 0,
115 Result.Target.GV = GV;
283 return Target.GV;
    [all...]
  /external/llvm/lib/CodeGen/
Analysis.cpp 111 GlobalVariable *GV = dyn_cast<GlobalVariable>(V);
113 if (GV && GV->getName() == "llvm.eh.catch.all.value") {
114 assert(GV->hasInitializer() &&
116 Value *Init = GV->getInitializer();
117 GV = dyn_cast<GlobalVariable>(Init);
118 if (!GV) V = cast<ConstantPointerNull>(Init);
121 assert((GV || isa<ConstantPointerNull>(V)) &&
123 return GV;

Completed in 909 milliseconds

1 2 3 4