Searched defs:GV (Results 76 - 100 of 151) sorted by relevance

1234567

/external/llvm/include/llvm/CodeGen/
H A DMachineInstrBuilder.h133 const MachineInstrBuilder &addGlobalAddress(const GlobalValue *GV, argument
136 MI->addOperand(*MF, MachineOperand::CreateGA(GV, Offset, TargetFlags));
H A DMachineOperand.h175 const GlobalValue *GV; // For MO_GlobalAddress. member in union:llvm::MachineOperand::__anon10138::__anon10140::__anon10141
435 return Contents.OffsetedInfo.Val.GV;
646 static MachineOperand CreateGA(const GlobalValue *GV, int64_t Offset,
649 Op.Contents.OffsetedInfo.Val.GV = GV;
H A DSelectionDAG.h447 SDValue getGlobalAddress(const GlobalValue *GV, SDLoc DL, EVT VT,
450 SDValue getTargetGlobalAddress(const GlobalValue *GV, SDLoc DL, EVT VT, argument
453 return getGlobalAddress(GV, DL, VT, offset, true, TargetFlags);
/external/llvm/include/llvm/ExecutionEngine/
H A DExecutionEngine.h129 virtual char *getMemoryForGV(const GlobalVariable *GV);
153 std::string getMangledName(const GlobalValue *GV);
284 void addGlobalMapping(const GlobalValue *GV, void *Addr);
295 /// updateGlobalMapping - Replace an existing mapping for GV with a new
299 uint64_t updateGlobalMapping(const GlobalValue *GV, void *Addr);
310 void *getPointerToGlobalIfAvailable(const GlobalValue *GV);
317 void *getPointerToGlobal(const GlobalValue *GV);
379 virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) { argument
380 return getPointerToGlobal((const GlobalValue *)GV);
478 void EmitGlobalVariable(const GlobalVariable *GV);
[all...]
/external/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp412 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(V))
413 return visitGlobalVariable(*GV);
536 SizeOffsetType ObjectSizeOffsetVisitor::visitGlobalVariable(GlobalVariable &GV){ argument
537 if (!GV.hasDefinitiveInitializer())
540 APInt Size(IntTyBits, DL.getTypeAllocSize(GV.getType()->getElementType()));
541 return std::make_pair(align(Size, GV.getAlignment()), Zero);
H A DConstantFolding.cpp236 static bool IsConstantOffsetFromGlobal(Constant *C, GlobalValue *&GV, argument
239 if ((GV = dyn_cast<GlobalValue>(C))) {
240 unsigned BitWidth = DL.getPointerTypeSizeInBits(GV->getType());
253 return IsConstantOffsetFromGlobal(CE->getOperand(0), GV, Offset, DL);
264 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, TmpOffset, DL))
444 GlobalVariable *GV = dyn_cast<GlobalVariable>(GVal);
445 if (!GV || !GV->isConstant() || !GV->hasDefinitiveInitializer() ||
446 !GV
[all...]
/external/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp325 const GlobalVariable *GV = M.getGlobalVariable("llvm.used"); local
326 if (!GV || !GV->hasInitializer()) return;
329 const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer());
H A DTargetLoweringObjectFileImpl.cpp50 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM,
55 TM.getSymbol(GV, Mang)->getName());
57 return TM.getSymbol(GV, Mang);
88 const GlobalValue *GV, unsigned Encoding, Mangler &Mang,
95 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", Mang, TM);
101 MCSymbol *Sym = TM.getSymbol(GV, Mang);
102 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage());
111 getTTypeGlobalReference(GV, Encoding, Mang, TM, MMI, Streamer);
192 static const Comdat *getELFComdat(const GlobalValue *GV) { argument
193 const Comdat *C = GV
49 getCFIPersonalitySymbol( const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const argument
87 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
204 getExplicitSectionGlobal( const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
249 selectELFSectionForGlobal(MCContext &Ctx, const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM, bool EmitUniqueSection, unsigned Flags, unsigned *NextUniqueID) argument
311 SelectSectionForGlobal( const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
534 checkMachOComdat(const GlobalValue *GV) argument
543 getExplicitSectionGlobal( const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
586 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
669 getTTypeGlobalReference( const GlobalValue *GV, unsigned Encoding, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI, MCStreamer &Streamer) const argument
701 getCFIPersonalitySymbol( const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, MachineModuleInfo *MMI) const argument
820 getComdatGVForCOFF(const GlobalValue *GV) argument
837 getSelectionForCOFF(const GlobalValue *GV) argument
864 getExplicitSectionGlobal( const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
908 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang, const TargetMachine &TM) const argument
963 getNameWithPrefix( SmallVectorImpl<char> &OutName, const GlobalValue *GV, bool CannotUsePrivateLabel, Mangler &Mang, const TargetMachine &TM) const argument
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp312 auto *GV = cast<GlobalVariable>(CH->getSelector()->stripPointerCasts()); local
315 auto *CS = cast<ConstantStruct>(GV->getInitializer());
/external/llvm/lib/LTO/
H A DLTOModule.cpp582 const GlobalValue *GV = IRFile->getSymbolGV(Sym.getRawDataRefImpl()); local
589 if (!GV) {
606 auto *F = dyn_cast<Function>(GV);
617 if (isa<GlobalVariable>(GV)) {
622 assert(isa<GlobalAlias>(GV));
/external/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp772 static char getSymbolNMTypeChar(const GlobalValue &GV) { argument
773 if (GV.getType()->getElementType()->isFunctionTy())
781 const GlobalValue *GV = Obj.getSymbolGV(I->getRawDataRefImpl()); local
782 if (!GV)
784 return getSymbolNMTypeChar(*GV);
922 const GlobalValue *GV = IR->getSymbolGV(I->getRawDataRefImpl()); local
923 if (GV && isa<GlobalAlias>(GV))
/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-parsing.cpp154 class GUARDED_VAR GV { // \ class
/external/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCompileUnit.cpp99 DIE *DwarfCompileUnit::getOrCreateGlobalVariableDIE(DIGlobalVariable GV) { argument
101 if (DIE *Die = getDIE(GV))
104 assert(GV);
106 DIScope GVContext = GV->getScope();
107 DIType GTy = DD->resolve(GV->getType());
114 DIE *VariableDIE = &createAndAddDIE(GV->getTag(), *ContextDIE, GV);
117 if (auto *SDMDecl = GV->getStaticDataMemberDeclaration()) {
120 assert(GV->isDefinition());
125 DeclContext = GV
[all...]
/external/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp90 GVMemoryBlock(const GlobalVariable *GV) argument
91 : CallbackVH(const_cast<GlobalVariable*>(GV)) {}
96 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { argument
97 Type *ElTy = GV->getType()->getElementType();
101 TD.getPreferredAlignment(GV))
103 new(RawMemory) GVMemoryBlock(GV);
117 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { argument
118 return GVMemoryBlock::Create(GV, *getDataLayout());
174 std::string ExecutionEngine::getMangledName(const GlobalValue *GV) { argument
178 Mang.getNameWithPrefix(FullName, GV
182 addGlobalMapping(const GlobalValue *GV, void *Addr) argument
223 updateGlobalMapping(const GlobalValue *GV, void *Addr) argument
274 getPointerToGlobalIfAvailable(const GlobalValue *GV) argument
351 GlobalVariable *GV = module.getNamedGlobal(Name); local
554 getPointerToGlobal(const GlobalValue *GV) argument
637 GenericValue GV = getConstantValue(Op0); local
643 GenericValue GV = getConstantValue(Op0); local
649 GenericValue GV = getConstantValue(Op0); local
656 GenericValue GV = getConstantValue(Op0); local
662 GenericValue GV = getConstantValue(Op0); local
667 GenericValue GV = getConstantValue(Op0); local
682 GenericValue GV = getConstantValue(Op0); local
698 GenericValue GV = getConstantValue(Op0); local
716 GenericValue GV = getConstantValue(Op0); local
725 GenericValue GV = getConstantValue(Op0); local
733 GenericValue GV = getConstantValue(Op0); local
773 GenericValue GV; local
1291 const GlobalValue *GV = NonCanonicalGlobals[i]; local
1319 EmitGlobalVariable(const GlobalVariable *GV) argument
[all...]
/external/llvm/lib/IR/
H A DConstantFold.cpp1045 GlobalValue *GV = cast<GlobalValue>(CE1->getOperand(0)); local
1048 unsigned GVAlign = GV->getAlignment();
1049 if (isa<Function>(GV))
1378 auto isGlobalUnsafeForEquality = [](const GlobalValue *GV) {
1379 if (GV->hasExternalWeakLinkage() || GV->hasWeakAnyLinkage())
1381 if (const auto *GVar = dyn_cast<GlobalVariable>(GV)) {
1448 } else if (const GlobalValue *GV = dyn_cast<GlobalValue>(V1)) {
1461 return areGlobalsPotentiallyEqual(GV, GV2);
1468 if (!GV
[all...]
/external/llvm/lib/Target/AArch64/
H A DAArch64InstrInfo.cpp992 const GlobalValue *GV = local
995 unsigned char OpFlags = Subtarget.ClassifyGlobalReference(GV, TM);
1000 .addGlobalAddress(GV, 0, AArch64II::MO_GOT);
1006 .addGlobalAddress(GV, 0, AArch64II::MO_G3).addImm(48);
1009 .addGlobalAddress(GV, 0, AArch64II::MO_G2 | MO_NC).addImm(32);
1012 .addGlobalAddress(GV, 0, AArch64II::MO_G1 | MO_NC).addImm(16);
1015 .addGlobalAddress(GV, 0, AArch64II::MO_G0 | MO_NC).addImm(0);
1021 .addGlobalAddress(GV, 0, OpFlags | AArch64II::MO_PAGE);
1025 .addGlobalAddress(GV, 0, LoFlags)
/external/llvm/lib/Target/ARM/
H A DARMAsmPrinter.cpp88 const GlobalValue *GV = dyn_cast<GlobalValue>(CV->stripPointerCasts()); local
89 assert(GV && "C++ constructor pointer was not a GlobalValue!");
91 const MCExpr *E = MCSymbolRefExpr::Create(GetARMGVSymbol(GV,
182 const GlobalValue *GV = MO.getGlobal(); local
189 O << *GetARMGVSymbol(GV, TF);
832 MCSymbol *ARMAsmPrinter::GetARMGVSymbol(const GlobalValue *GV, argument
836 Subtarget->GVIsIndirectSymbol(GV, TM.getRelocationModel());
839 return getSymbol(GV);
842 MCSymbol *MCSym = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
846 GV
886 const GlobalValue *GV = cast<ARMConstantPoolConstant>(ACPV)->getGV(); local
1323 const GlobalValue *GV = Op.getGlobal(); local
1341 const GlobalValue *GV = MI->getOperand(1).getGlobal(); local
1374 const GlobalValue *GV = MI->getOperand(2).getGlobal(); local
[all...]
H A DARMExpandPseudoInsts.cpp723 const GlobalValue *GV = MO.getGlobal(); local
725 LO16 = LO16.addGlobalAddress(GV, MO.getOffset(), TF | ARMII::MO_LO16);
726 HI16 = HI16.addGlobalAddress(GV, MO.getOffset(), TF | ARMII::MO_HI16);
978 const GlobalValue *GV = MO1.getGlobal(); local
997 CPV = ARMConstantPoolConstant::Create(GV, ARMPCLabelIndex,
1000 CPV = ARMConstantPoolConstant::Create(GV, ARMCP::no_modifier);
1031 const GlobalValue *GV = MO1.getGlobal(); local
1043 .addGlobalAddress(GV, MO1.getOffset(), TF | LO16TF)
1048 .addGlobalAddress(GV, MO1.getOffset(), TF | HI16TF)
/external/llvm/lib/Target/MSP430/
H A DMSP430ISelLowering.cpp787 const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal(); local
791 SDValue Result = DAG.getTargetGlobalAddress(GV, SDLoc(Op),
/external/llvm/lib/Target/PowerPC/
H A DPPCAsmPrinter.cpp195 const GlobalValue *GV = MO.getGlobal(); local
200 (GV->isDeclaration() || GV->isWeakForLinker())) {
201 if (!GV->hasHiddenVisibility()) {
202 SymToPrint = getSymbolWithGlobalValueBase(GV, "$non_lazy_ptr");
208 StubValueTy(getSymbol(GV), !GV->hasInternalLinkage());
209 } else if (GV->isDeclaration() || GV->hasCommonLinkage() ||
210 GV
622 const GlobalValue *GV = MO.getGlobal(); local
705 const GlobalValue *GV = MO.getGlobal(); local
[all...]
/external/llvm/lib/Target/X86/
H A DX86MCInstLower.cpp154 const GlobalValue *GV = MO.getGlobal(); local
155 AsmPrinter.getNameWithPrefix(Name, GV);
228 default: llvm_unreachable("Unknown target flag on GV operand");
/external/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp813 GlobalVariable *GV = M->getGlobalVariable("__llvm_gcov_global_state_pred"); local
814 if (!GV) {
815 GV = new GlobalVariable(*M, Type::getInt32Ty(*Ctx), false,
820 GV->setUnnamedAddr(true);
822 return GV;
868 GlobalVariable *GV = CountersBySP[j].first; local
870 cast<ArrayType>(GV->getType()->getElementType())->getNumElements();
873 Builder.CreateConstGEP2_64(GV, 0, 0));
962 GlobalVariable *GV = I->first; local
963 Constant *Null = Constant::getNullValue(GV
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp997 GlobalVariable *GV = new GlobalVariable(*M, PatternValue->getType(), true, local
1000 GV->setUnnamedAddr(true); // Ok to merge these.
1001 GV->setAlignment(16);
1002 Value *PatternPtr = ConstantExpr::getBitCast(GV, Int8PtrTy);
H A DSCCP.cpp228 void TrackValueOfGlobalVariable(GlobalVariable *GV) { argument
230 if (GV->getType()->getElementType()->isSingleValueType()) {
231 LatticeVal &IV = TrackedGlobals[GV];
232 if (!isa<UndefValue>(GV->getInitializer()))
233 IV.markConstant(GV->getInitializer());
1027 GlobalVariable *GV = cast<GlobalVariable>(SI.getOperand(1));
1028 DenseMap<GlobalVariable*, LatticeVal>::iterator I = TrackedGlobals.find(GV);
1032 mergeInValue(I->second, GV, getValueState(SI.getOperand(0)));
1061 if (GlobalVariable *GV = dyn_cast<GlobalVariable>(Ptr)) {
1065 TrackedGlobals.find(GV);
1666 AddressIsTaken(const GlobalValue *GV) argument
1933 GlobalVariable *GV = I->first; local
[all...]
/external/llvm/tools/gold/
H A Dgold-plugin.cpp267 static const GlobalObject *getBaseObject(const GlobalValue &GV) { argument
268 if (auto *GA = dyn_cast<GlobalAlias>(&GV))
270 return cast<GlobalObject>(&GV);
382 const GlobalValue *GV = Obj->getSymbolGV(Sym.getRawDataRefImpl()); local
385 if (GV) {
386 switch (GV->getVisibility()) {
401 if (GV && GV->hasExternalWeakLinkage())
405 if (GV) {
406 assert(!GV
441 keepGlobalValue(GlobalValue &GV, std::vector<GlobalAlias *> &KeptAliases) argument
462 internalize(GlobalValue &GV) argument
469 drop(GlobalValue &GV) argument
628 GlobalValue *GV = Obj.getSymbolGV(ObjSym.getRawDataRefImpl()); local
859 GlobalValue *GV = Combined->getNamedValue(Name.first()); local
865 GlobalValue *GV = Combined->getNamedValue(Name.first()); local
[all...]

Completed in 849 milliseconds

1234567