/external/autotest/client/site_tests/firmware_TouchMTB/ |
D | firmware_constants.py | 64 GV = _GestureVariation() variable 66 GV.HORIZONTAL = 'horizontal' 67 GV.VERTICAL = 'vertical' 68 GV.DIAGONAL = 'diagonal' 69 GV.LR = 'left_to_right' 70 GV.RL = 'right_to_left' 71 GV.TB = 'top_to_bottom' 72 GV.BT = 'bottom_to_top' 73 GV.CL = 'center_to_left' 74 GV.CR = 'center_to_right' [all …]
|
D | test_conf.py | 10 from firmware_constants import DEV, GV, VAL 324 variations=((GV.LOW_FREQUENCY, GV.MED_FREQUENCY, GV.HIGH_FREQUENCY), 325 (GV.HALF_AMPLITUDE, GV.MAX_AMPLITUDE), 326 (GV.SQUARE_WAVE,), 327 (GV.TL, GV.TR, GV.BL, GV.BR, GV.TS, GV.BS, GV.LS, GV.RS, 328 GV.CENTER), 333 GV.TL: ('top left corner',), 334 GV.TR: ('top right corner',), 335 GV.BL: ('bottom left corner',), 336 GV.BR: ('bottom right corner',), [all …]
|
D | touchbotII_robot_wrapper.py | 16 from firmware_constants import GV, MODE, OPTIONS 126 GV.LR: (START, CENTER, END, CENTER), 127 GV.RL: (END, CENTER, START, CENTER), 128 GV.TB: (CENTER, START, CENTER, END), 129 GV.BT: (CENTER, END, CENTER, START), 130 GV.BLTR: (START, END, END, START), 131 GV.TRBL: (END, START, START, END), 132 GV.BRTL: (END, END, START, START), 133 GV.TLBR: (START, START, END, END), 134 GV.CUR: (CENTER, CENTER, END, START), [all …]
|
/external/llvm/lib/Transforms/IPO/ |
D | ConstantMerge.cpp | 49 bool hasKnownAlignment(GlobalVariable *GV) const; 53 unsigned getAlignment(GlobalVariable *GV) const; 74 GlobalValue *GV = cast<GlobalValue>(Operand); in FindUsedValues() local 75 UsedValues.insert(GV); in FindUsedValues() 91 unsigned ConstantMerge::getAlignment(GlobalVariable *GV) const { in getAlignment() 92 unsigned Align = GV->getAlignment(); in getAlignment() 95 return GV->getParent()->getDataLayout().getPreferredAlignment(GV); in getAlignment() 122 GlobalVariable *GV = &*GVI++; in runOnModule() local 125 GV->removeDeadConstantUsers(); in runOnModule() 126 if (GV->use_empty() && GV->hasLocalLinkage()) { in runOnModule() [all …]
|
D | GlobalDCE.cpp | 55 void GlobalIsNeeded(GlobalValue *GV); 58 bool RemoveUnusedGlobalValue(GlobalValue &GV); 87 for (GlobalVariable &GV : M.globals()) in runOnModule() 88 if (Comdat *C = GV.getComdat()) in runOnModule() 89 ComdatMembers.insert(std::make_pair(C, &GV)); in runOnModule() 103 for (GlobalVariable &GV : M.globals()) { in runOnModule() 104 Changed |= RemoveUnusedGlobalValue(GV); in runOnModule() 107 if (!GV.isDeclaration() && !GV.hasAvailableExternallyLinkage()) in runOnModule() 108 if (!GV.isDiscardableIfUnused()) in runOnModule() 109 GlobalIsNeeded(&GV); in runOnModule() [all …]
|
D | GlobalOpt.cpp | 86 bool ProcessGlobal(GlobalVariable *GV,Module::global_iterator &GVI); 87 bool ProcessInternalGlobal(GlobalVariable *GV,Module::global_iterator &GVI, 92 GlobalValue *GV); 111 static bool isLeakCheckerRoot(GlobalVariable *GV) { in isLeakCheckerRoot() argument 120 if (GV->hasPrivateLinkage()) in isLeakCheckerRoot() 124 Types.push_back(cast<PointerType>(GV->getType())->getElementType()); in isLeakCheckerRoot() 188 static bool CleanupPointerRootUsers(GlobalVariable *GV, in CleanupPointerRootUsers() argument 206 for (Value::user_iterator UI = GV->user_begin(), E = GV->user_end(); in CleanupPointerRootUsers() 245 CleanupPointerRootUsers(GV, TLI); in CleanupPointerRootUsers() 394 static bool IsUserOfGlobalSafeForSRA(User *U, GlobalValue *GV) { in IsUserOfGlobalSafeForSRA() argument [all …]
|
D | Internalize.cpp | 63 bool maybeInternalize(GlobalValue &GV, 65 void checkComdatVisibility(GlobalValue &GV, 112 static bool isExternallyVisible(const GlobalValue &GV, in isExternallyVisible() argument 115 if (GV.isDeclaration()) in isExternallyVisible() 119 if (GV.hasAvailableExternallyLinkage()) in isExternallyVisible() 123 if (GV.hasDLLExportStorageClass()) in isExternallyVisible() 127 if (!GV.hasLocalLinkage() && ExternalNames.count(GV.getName())) in isExternallyVisible() 136 GlobalValue &GV, const std::set<const Comdat *> &ExternalComdats) { in maybeInternalize() argument 137 if (Comdat *C = GV.getComdat()) { in maybeInternalize() 142 if (auto GO = dyn_cast<GlobalObject>(&GV)) in maybeInternalize() [all …]
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 99 GVMemoryBlock(const GlobalVariable *GV) in GVMemoryBlock() argument 100 : CallbackVH(const_cast<GlobalVariable*>(GV)) {} in GVMemoryBlock() 105 static char *Create(const GlobalVariable *GV, const DataLayout& TD) { in Create() argument 106 Type *ElTy = GV->getType()->getElementType(); in Create() 110 TD.getPreferredAlignment(GV)) in Create() 112 new(RawMemory) GVMemoryBlock(GV); in Create() 126 char *ExecutionEngine::getMemoryForGV(const GlobalVariable *GV) { in getMemoryForGV() argument 127 return GVMemoryBlock::Create(GV, getDataLayout()); in getMemoryForGV() 167 GlobalVariable *GV = Modules[i]->getGlobalVariable(Name,AllowInternal); in FindGlobalVariableNamed() local 168 if (GV && !GV->isDeclaration()) in FindGlobalVariableNamed() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetObjectFile.cpp | 23 MCSection *AMDGPUTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV, in SelectSectionForGlobal() argument 27 if (Kind.isReadOnly() && AMDGPU::isReadOnlySegment(GV)) in SelectSectionForGlobal() 30 return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang, TM); in SelectSectionForGlobal() 58 bool AMDGPUHSATargetObjectFile::isAgentAllocation(const GlobalValue *GV) const { in isAgentAllocation() 60 return AMDGPU::isReadOnlySegment(GV) || in isAgentAllocation() 61 (AMDGPU::isGlobalSegment(GV) && GV->hasSection() && in isAgentAllocation() 62 isAgentAllocationSection(GV->getSection())); in isAgentAllocation() 66 const GlobalValue *GV) const { in isProgramAllocation() 68 return AMDGPU::isGlobalSegment(GV) && !isAgentAllocation(GV); in isProgramAllocation() 72 const GlobalValue *GV, SectionKind Kind, in SelectSectionForGlobal() argument [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsTargetObjectFile.cpp | 63 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM) const { in IsGlobalInSmallSection() argument 67 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) in IsGlobalInSmallSection() 68 return IsGlobalInSmallSectionImpl(GV, TM); in IsGlobalInSmallSection() 70 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); in IsGlobalInSmallSection() 76 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, in IsGlobalInSmallSection() argument 78 return (IsGlobalInSmallSectionImpl(GV, TM) && in IsGlobalInSmallSection() 86 IsGlobalInSmallSectionImpl(const GlobalValue *GV, in IsGlobalInSmallSectionImpl() argument 96 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); in IsGlobalInSmallSectionImpl() 101 if (!LocalSData && GV->hasLocalLinkage()) in IsGlobalInSmallSectionImpl() 105 if (!ExternSData && ((GV->hasExternalLinkage() && GV->isDeclaration()) || in IsGlobalInSmallSectionImpl() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SplitModule.cpp | 29 static void externalize(GlobalValue *GV) { in externalize() argument 30 if (GV->hasLocalLinkage()) { in externalize() 31 GV->setLinkage(GlobalValue::ExternalLinkage); in externalize() 32 GV->setVisibility(GlobalValue::HiddenVisibility); in externalize() 37 if (!GV->hasName()) in externalize() 38 GV->setName("__llvmsplit_unnamed"); in externalize() 42 static bool isInPartition(const GlobalValue *GV, unsigned I, unsigned N) { in isInPartition() argument 43 if (auto GA = dyn_cast<GlobalAlias>(GV)) in isInPartition() 45 GV = Base; in isInPartition() 48 if (const Comdat *C = GV->getComdat()) in isInPartition() [all …]
|
/external/llvm/lib/CodeGen/ |
D | TargetLoweringObjectFileImpl.cpp | 52 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, in getCFIPersonalitySymbol() argument 57 TM.getSymbol(GV, Mang)->getName()); in getCFIPersonalitySymbol() 59 return TM.getSymbol(GV, Mang); in getCFIPersonalitySymbol() 88 const GlobalValue *GV, unsigned Encoding, Mangler &Mang, in getTTypeGlobalReference() argument 95 MCSymbol *SSym = getSymbolWithGlobalValueBase(GV, ".DW.stub", Mang, TM); in getTTypeGlobalReference() 101 MCSymbol *Sym = TM.getSymbol(GV, Mang); in getTTypeGlobalReference() 102 StubSym = MachineModuleInfoImpl::StubValueTy(Sym, !GV->hasLocalLinkage()); in getTTypeGlobalReference() 111 getTTypeGlobalReference(GV, Encoding, Mang, TM, MMI, Streamer); in getTTypeGlobalReference() 192 static const Comdat *getELFComdat(const GlobalValue *GV) { in getELFComdat() argument 193 const Comdat *C = GV->getComdat(); in getELFComdat() [all …]
|
D | GlobalMerge.cpp | 145 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable() 146 return MustKeepGlobalVariables.count(GV); in isMustKeepGlobalVariable() 268 GlobalVariable *GV = Globals[GI]; in doMerge() local 280 for (auto &U : GV->uses()) { in doMerge() 477 const GlobalVariable *GV = M.getGlobalVariable("llvm.used"); in collectUsedGlobalVariables() local 478 if (!GV || !GV->hasInitializer()) return; in collectUsedGlobalVariables() 481 const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer()); in collectUsedGlobalVariables() 504 if (const GlobalVariable *GV = in setMustKeepGlobalVariables() local 507 MustKeepGlobalVariables.insert(GV); in setMustKeepGlobalVariables() 523 for (auto &GV : M.globals()) { in doInitialization() local [all …]
|
/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 60 void addLazyFor(GlobalValue &GV, IRMover::ValueAdder Add); 117 bool linkIfNeeded(GlobalValue &GV); 138 void processGlobalForThinLTO(GlobalValue &GV); 569 bool ModuleLinker::linkIfNeeded(GlobalValue &GV) { in linkIfNeeded() argument 570 GlobalValue *DGV = getLinkedToGlobal(&GV); in linkIfNeeded() 575 if (DGV && !GV.hasLocalLinkage() && !GV.hasAppendingLinkage()) { in linkIfNeeded() 577 auto *SGVar = dyn_cast<GlobalVariable>(&GV); in linkIfNeeded() 592 getMinVisibility(DGV->getVisibility(), GV.getVisibility()); in linkIfNeeded() 594 GV.setVisibility(Visibility); in linkIfNeeded() 596 bool HasUnnamedAddr = GV.hasUnnamedAddr() && DGV->hasUnnamedAddr(); in linkIfNeeded() [all …]
|
/external/llvm/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 53 static bool isSuitableForBSS(const GlobalVariable *GV, bool NoZerosInBSS) { in isSuitableForBSS() argument 54 const Constant *C = GV->getInitializer(); in isSuitableForBSS() 61 if (GV->isConstant()) in isSuitableForBSS() 65 if (GV->hasSection()) in isSuitableForBSS() 104 const GlobalValue *GV, StringRef Suffix, Mangler &Mang, in getSymbolWithGlobalValueBase() argument 109 NameStr += GV->getParent()->getDataLayout().getPrivateGlobalPrefix(); in getSymbolWithGlobalValueBase() 110 TM.getNameWithPrefix(NameStr, GV, Mang); in getSymbolWithGlobalValueBase() 116 const GlobalValue *GV, Mangler &Mang, const TargetMachine &TM, in getCFIPersonalitySymbol() argument 118 return TM.getSymbol(GV, Mang); in getCFIPersonalitySymbol() 132 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalValue *GV, in getKindForGlobal() argument [all …]
|
D | TargetMachine.cpp | 92 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) { in getSelectedTLSModel() argument 93 switch (GV->getThreadLocalMode()) { in getSelectedTLSModel() 109 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const { in getTLSModel() 110 bool isLocal = GV->hasLocalLinkage(); in getTLSModel() 111 bool isDeclaration = GV->isDeclaration(); in getTLSModel() 116 bool isHidden = GV->hasHiddenVisibility(); in getTLSModel() 132 TLSModel::Model SelectedModel = getSelectedTLSModel(GV); in getTLSModel() 159 const GlobalValue *GV, Mangler &Mang, in getNameWithPrefix() argument 161 if (MayAlwaysUsePrivate || !GV->hasPrivateLinkage()) { in getNameWithPrefix() 164 Mang.getNameWithPrefix(Name, GV, false); in getNameWithPrefix() [all …]
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonTargetObjectFile.cpp | 53 bool HexagonTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV, in IsGlobalInSmallSection() argument 58 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) in IsGlobalInSmallSection() 63 return IsGlobalInSmallSection(GV, TM, getKindForGlobal(GV, TM)); in IsGlobalInSmallSection() 69 IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM, in IsGlobalInSmallSection() argument 72 const GlobalVariable *GVA = dyn_cast<GlobalVariable>(GV); in IsGlobalInSmallSection() 77 Type *Ty = GV->getType()->getElementType(); in IsGlobalInSmallSection() 79 GV->getParent()->getDataLayout().getTypeAllocSize(Ty)); in IsGlobalInSmallSection() 86 HexagonTargetObjectFile::SelectSectionForGlobal(const GlobalValue *GV, in SelectSectionForGlobal() argument 91 if (Kind.isBSS() && IsGlobalInSmallSection(GV, TM, Kind)) in SelectSectionForGlobal() 93 if (Kind.isData() && IsGlobalInSmallSection(GV, TM, Kind)) in SelectSectionForGlobal() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreLowerThreadLocal.cpp | 49 bool lowerGlobal(GlobalVariable *GV); 161 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { in rewriteNonInstructionUses() argument 163 for (User *U : GV->users()) in rewriteNonInstructionUses() 180 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { in lowerGlobal() argument 181 Module *M = GV->getParent(); in lowerGlobal() 183 if (!GV->isThreadLocal()) in lowerGlobal() 187 if (!rewriteNonInstructionUses(GV, this) || in lowerGlobal() 188 !GV->getType()->isSized() || isZeroLengthArray(GV->getType())) in lowerGlobal() 192 ArrayType *NewType = createLoweredType(GV->getType()->getElementType()); in lowerGlobal() 194 if (GV->hasInitializer()) in lowerGlobal() [all …]
|
D | XCoreAsmPrinter.cpp | 78 void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); 79 void EmitGlobalVariable(const GlobalVariable *GV) override; 92 void XCoreAsmPrinter::emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV) { in emitArrayBound() argument 93 assert( ( GV->hasExternalLinkage() || GV->hasWeakLinkage() || in emitArrayBound() 94 GV->hasLinkOnceLinkage() || GV->hasCommonLinkage() ) && in emitArrayBound() 97 cast<PointerType>(GV->getType())->getElementType())) { in emitArrayBound() 105 if (GV->hasWeakLinkage() || GV->hasLinkOnceLinkage() || in emitArrayBound() 106 GV->hasCommonLinkage()) { in emitArrayBound() 112 void XCoreAsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) { in EmitGlobalVariable() argument 114 if (!GV->hasInitializer() || in EmitGlobalVariable() [all …]
|
/external/llvm/lib/Object/ |
D | IRObjectFile.cpp | 127 const GlobalValue *GV = &*I; in skipEmpty() local 128 return reinterpret_cast<uintptr_t>(GV) | 2; in skipEmpty() 134 const GlobalValue *GV = &*I; in skipEmpty() local 135 return reinterpret_cast<uintptr_t>(GV) | 1; in skipEmpty() 141 const GlobalValue *GV = &*I; in skipEmpty() local 142 return reinterpret_cast<uintptr_t>(GV) | 0; in skipEmpty() 153 const GlobalValue *GV = getGV(Symb); in moveSymbolNext() local 158 Module::const_iterator Iter(static_cast<const Function*>(GV)); in moveSymbolNext() 164 Module::const_global_iterator Iter(static_cast<const GlobalVariable*>(GV)); in moveSymbolNext() 170 Module::const_alias_iterator Iter(static_cast<const GlobalAlias*>(GV)); in moveSymbolNext() [all …]
|
/external/llvm/tools/gold/ |
D | gold-plugin.cpp | 315 static const GlobalObject *getBaseObject(const GlobalValue &GV) { in getBaseObject() argument 316 if (auto *GA = dyn_cast<GlobalAlias>(&GV)) in getBaseObject() 318 return cast<GlobalObject>(&GV); in getBaseObject() 453 const GlobalValue *GV = Obj->getSymbolGV(Sym.getRawDataRefImpl()); in claim_file_hook() local 458 if (GV) { in claim_file_hook() 459 Res.UnnamedAddr &= GV->hasUnnamedAddr(); in claim_file_hook() 460 Res.IsLinkonceOdr &= GV->hasLinkOnceLinkage(); in claim_file_hook() 461 if (GV->hasCommonLinkage()) { in claim_file_hook() 462 Res.CommonAlign = std::max(Res.CommonAlign, GV->getAlignment()); in claim_file_hook() 463 const DataLayout &DL = GV->getParent()->getDataLayout(); in claim_file_hook() [all …]
|
/external/llvm/lib/Analysis/ |
D | GlobalsModRef.cpp | 146 ModRefInfo getModRefInfoForGlobal(const GlobalValue &GV) const { in getModRefInfoForGlobal() 149 auto I = P->Map.find(&GV); in getModRefInfoForGlobal() 169 void addModRefInfoForGlobal(const GlobalValue &GV, ModRefInfo NewMRI) { in addModRefInfoForGlobal() argument 175 auto &GlobalMRI = P->Map[&GV]; in addModRefInfoForGlobal() 181 void eraseModRefInfoForGlobal(const GlobalValue &GV) { in eraseModRefInfoForGlobal() argument 183 P->Map.erase(&GV); in eraseModRefInfoForGlobal() 200 if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) { in deleted() local 201 if (GAR->NonAddressTakenGlobals.erase(GV)) { in deleted() 204 if (GAR->IndirectGlobals.erase(GV)) { in deleted() 209 if (I->second == GV) in deleted() [all …]
|
/external/llvm/include/llvm/Target/ |
D | TargetLoweringObjectFile.h | 78 static SectionKind getKindForGlobal(const GlobalValue *GV, 84 MCSection *SectionForGlobal(const GlobalValue *GV, SectionKind Kind, 90 MCSection *SectionForGlobal(const GlobalValue *GV, Mangler &Mang, in SectionForGlobal() argument 92 return SectionForGlobal(GV, getKindForGlobal(GV, TM), Mang, TM); in SectionForGlobal() 96 const GlobalValue *GV, Mangler &Mang, 109 getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 113 virtual const MCSection *getSpecialCasedSectionGlobals(const GlobalValue *GV, in getSpecialCasedSectionGlobals() argument 122 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 128 MCSymbol *getSymbolWithGlobalValueBase(const GlobalValue *GV, 133 virtual MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXGenericToNVVM.cpp | 49 Value *getOrInsertCVTA(Module *M, Function *F, GlobalVariable *GV, 84 GlobalVariable *GV = &*I++; in runOnModule() local 85 if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC && in runOnModule() 86 !llvm::isTexture(*GV) && !llvm::isSurface(*GV) && in runOnModule() 87 !llvm::isSampler(*GV) && !GV->getName().startswith("llvm.")) { in runOnModule() 89 M, GV->getType()->getElementType(), GV->isConstant(), in runOnModule() 90 GV->getLinkage(), in runOnModule() 91 GV->hasInitializer() ? GV->getInitializer() : nullptr, in runOnModule() 92 "", GV, GV->getThreadLocalMode(), llvm::ADDRESS_SPACE_GLOBAL); in runOnModule() 93 NewGV->copyAttributesFrom(GV); in runOnModule() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | TargetLoweringObjectFileImpl.h | 52 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 56 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 69 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 75 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, 98 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 102 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, 111 getTTypeGlobalReference(const GlobalValue *GV, unsigned Encoding, 117 MCSymbol *getCFIPersonalitySymbol(const GlobalValue *GV, Mangler &Mang, 127 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const GlobalValue *GV, 137 MCSection *getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind, [all …]
|