/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/ |
H A D | ConstantMerge.cpp | 46 static void FindUsedValues(GlobalVariable *LLVMUsed, in FindUsedValues() 59 static bool IsBetterCanonical(const GlobalVariable &A, in IsBetterCanonical() 80 GlobalVariable *To) { in copyDebugLocMetadata() 87 static Align getAlign(GlobalVariable *GV) { in getAlign() 93 isUnmergeableGlobal(GlobalVariable *GV, in isUnmergeableGlobal() 105 static CanMerge makeMergeable(GlobalVariable *Old, GlobalVariable *New) { in makeMergeable() 116 static void replace(Module &M, GlobalVariable *Old, GlobalVariable *New) { in replace() 142 DenseMap<Constant *, GlobalVariable *> CMap; in mergeConstants() 144 SmallVector<std::pair<GlobalVariable *, GlobalVariable *>, 32> in mergeConstants() 182 GlobalVariable *&Slot = CMap[Init]; in mergeConstants() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/IR/ |
H A D | GlobalVariable.h | 39 class GlobalVariable : public GlobalObject, public ilist_node<GlobalVariable> { 40 friend class SymbolTableListTraits<GlobalVariable>; 52 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage, 60 GlobalVariable *InsertBefore = nullptr, 64 GlobalVariable(const GlobalVariable &) = delete; 65 GlobalVariable &operator=(const GlobalVariable &) = delete; 67 ~GlobalVariable() { in ~GlobalVariable() 164 void copyAttributesFrom(const GlobalVariable *Src); 256 struct OperandTraits<GlobalVariable> : 257 public OptionalOperandTraits<GlobalVariable> { [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUReplaceLDSUseWithPointer.cpp | 132 DenseMap<GlobalVariable *, GlobalVariable *> LDSToPointer; 143 std::vector<GlobalVariable *> LDSGlobals = in collectLDSRequiringPointerReplace() 147 llvm::erase_if(LDSGlobals, [&](GlobalVariable *GV) { in collectLDSRequiringPointerReplace() 172 GlobalVariable *createLDSPointer(GlobalVariable *GV) { in createLDSPointer() 183 GlobalVariable *LDSPointer = new GlobalVariable( in createLDSPointer() 227 GlobalVariable *LDSPointer) { in initializeLDSPointer() 252 void replaceLDSUseByPointer(GlobalVariable *GV, GlobalVariable *LDSPointer) { in replaceLDSUseByPointer() 296 GlobalVariable *LDSPointer) { in getReplacementInst() 343 bool replaceLDSUse(GlobalVariable *GV); 353 GlobalVariable *LDSPointer = nullptr; in replaceLDSUse() [all …]
|
H A D | AMDGPULowerModuleLDSPass.cpp | 446 GlobalVariable *SGV = nullptr; 508 return new GlobalVariable( in buildLookupTable() 516 GlobalVariable *LookupTable) { in replaceUsesInInstructionsWithTableLookup() 605 static GlobalVariable * 611 GlobalVariable *GV = nullptr; in chooseBestVariableForModuleStrategy() 646 GlobalVariable *GV = K.first; in chooseBestVariableForModuleStrategy() 935 [](const GlobalVariable *lhs, const GlobalVariable *rhs) { in runOnModule() 1023 [](const GlobalVariable *lhs, const GlobalVariable *rhs) { in createLDSVariableReplacement() 1043 GlobalVariable *FGV = static_cast<GlobalVariable *>( in createLDSVariableReplacement() 1080 GlobalVariable *SGV = new GlobalVariable( in createLDSVariableReplacement() [all …]
|
H A D | AMDGPUMachineFunction.h | 100 unsigned allocateLDSGlobal(const DataLayout &DL, const GlobalVariable &GV) { in allocateLDSGlobal() 104 unsigned allocateLDSGlobal(const DataLayout &DL, const GlobalVariable &GV, 114 getKernelLDSFunctionFromGlobal(const GlobalVariable &GV); 115 static const GlobalVariable * 119 static bool isKnownAddressLDSGlobal(const GlobalVariable &GV); 120 static unsigned calculateKnownAddressOfLDSGlobal(const GlobalVariable &GV); 126 void setDynLDSAlign(const DataLayout &DL, const GlobalVariable &GV);
|
H A D | AMDGPUMachineFunction.cpp | 55 const GlobalVariable &GV, in allocateLDSGlobal() 92 bool AMDGPUMachineFunction::isKnownAddressLDSGlobal(const GlobalVariable &GV) { in isKnownAddressLDSGlobal() 99 const GlobalVariable &GV) { in getKernelLDSFunctionFromGlobal() 108 const GlobalVariable * 123 const GlobalVariable &GV) { in calculateKnownAddressOfLDSGlobal() 137 const GlobalVariable *GVM = M->getNamedGlobal(ModuleLDSName); in calculateKnownAddressOfLDSGlobal() 179 const GlobalVariable *GV = M->getNamedGlobal(ModuleLDSName); in allocateKnownAddressLDSGlobal() 180 const GlobalVariable *KV = getKernelLDSGlobalFromFunction(F); in allocateKnownAddressLDSGlobal() 218 const GlobalVariable &GV) { in setDynLDSAlign()
|
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Instrumentation/ |
H A D | InstrProfiling.h | 51 GlobalVariable *RegionCounters = nullptr; 52 GlobalVariable *DataVar = nullptr; 58 DenseMap<GlobalVariable *, PerFunctionProfileData> ProfileDataMap; 64 std::vector<GlobalVariable *> ReferencedNames; 65 GlobalVariable *NamesVar; 102 void lowerCoverageData(GlobalVariable *CoverageNamesVar); 112 GlobalVariable *getOrCreateRegionCounters(InstrProfInstBase *Inc); 115 GlobalVariable *createRegionCounters(InstrProfInstBase *Inc, StringRef Name,
|
/openbsd/gnu/llvm/llvm/lib/CodeGen/ |
H A D | LowerEmuTLS.cpp | 40 bool addEmuTlsVar(Module &M, const GlobalVariable *GV); 42 const GlobalVariable *from, in copyLinkageVisibility() 43 GlobalVariable *to) { in copyLinkageVisibility() 76 SmallVector<const GlobalVariable*, 8> TlsVars; in runOnModule() 86 bool LowerEmuTLS::addEmuTlsVar(Module &M, const GlobalVariable *GV) { in addEmuTlsVar() 91 GlobalVariable *EmuTlsVar = M.getNamedGlobal(EmuTlsVarName); in addEmuTlsVar() 122 EmuTlsVar = cast<GlobalVariable>( in addEmuTlsVar() 134 GlobalVariable *EmuTlsTmplVar = nullptr; in addEmuTlsVar() 137 EmuTlsTmplVar = dyn_cast_or_null<GlobalVariable>( in addEmuTlsVar()
|
H A D | GlobalMerge.cpp | 161 bool doMerge(SmallVectorImpl<GlobalVariable*> &Globals, 166 bool doMerge(const SmallVectorImpl<GlobalVariable *> &Globals, 173 bool isMustKeepGlobalVariable(const GlobalVariable *GV) const { in isMustKeepGlobalVariable() 226 Globals, [&DL](const GlobalVariable *GV1, const GlobalVariable *GV2) { in doMerge() 299 GlobalVariable *GV = Globals[GI]; in doMerge() 517 auto *MergedGV = new GlobalVariable( in doMerge() 519 GlobalVariable::NotThreadLocal, AddrSpace); in doMerge() 569 const GlobalVariable *GV = M.getGlobalVariable(Name); in collectUsedGlobalVariables() 576 if (const GlobalVariable *G = in collectUsedGlobalVariables() 593 if (const GlobalVariable *GV = in setMustKeepGlobalVariables() [all …]
|
/openbsd/gnu/llvm/clang/tools/clang-linker-wrapper/ |
H A D | OffloadWrapper.cpp | 154 auto *EntriesB = new GlobalVariable( in createBinDesc() 158 auto *EntriesE = new GlobalVariable( in createBinDesc() 170 auto *DummyEntry = new GlobalVariable( in createBinDesc() 227 void createRegisterFunction(Module &M, GlobalVariable *BinDesc) { in createRegisterFunction() 254 void createUnregisterFunction(Module &M, GlobalVariable *BinDesc) { in createUnregisterFunction() 324 new GlobalVariable(M, getFatbinWrapperTy(M), in createFatbinDesc() 335 auto *DummyEntry = new GlobalVariable( in createFatbinDesc() 393 new GlobalVariable(M, ArrayType::get(getEntryTy(M), 0), in createRegisterGlobalsFunction() 400 new GlobalVariable(M, ArrayType::get(getEntryTy(M), 0), in createRegisterGlobalsFunction() 558 auto *BinaryHandleGlobal = new llvm::GlobalVariable( in createRegisterFatbinFunction() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
H A D | Evaluator.h | 102 DenseMap<GlobalVariable *, Constant *> getMutatedInitializers() const { in getMutatedInitializers() 103 DenseMap<GlobalVariable *, Constant *> Result; in getMutatedInitializers() 109 const SmallPtrSetImpl<GlobalVariable *> &getInvariants() const { in getInvariants() 141 Constant *ComputeLoadResult(GlobalVariable *GV, Type *Ty, 156 DenseMap<GlobalVariable *, MutableValue> MutatedMemory; 161 SmallVector<std::unique_ptr<GlobalVariable>, 32> AllocaTmps; 165 SmallPtrSet<GlobalVariable*, 8> Invariants;
|
/openbsd/gnu/llvm/llvm/lib/Target/DirectX/ |
H A D | DXContainerGlobals.cpp | 30 GlobalVariable *getShaderFlags(Module &M); 31 GlobalVariable *computeShaderHash(Module &M); 62 GlobalVariable *DXContainerGlobals::getShaderFlags(Module &M) { in getShaderFlags() 67 auto *GV = new llvm::GlobalVariable(M, FlagsConstant->getType(), true, in getShaderFlags() 75 GlobalVariable *DXContainerGlobals::computeShaderHash(Module &M) { in computeShaderHash() 95 auto *GV = new llvm::GlobalVariable(M, ModuleConstant->getType(), true, in computeShaderHash()
|
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/ |
H A D | RelLookupTableConverter.cpp | 24 static bool shouldConvertToRelLookupTable(Module &M, GlobalVariable &GV) { in shouldConvertToRelLookupTable() 80 auto *GlovalVarOp = dyn_cast<GlobalVariable>(GVOp); in shouldConvertToRelLookupTable() 93 static GlobalVariable *createRelLookupTable(Function &Func, in createRelLookupTable() 94 GlobalVariable &LookupTable) { in createRelLookupTable() 102 GlobalVariable *RelLookupTable = new GlobalVariable( in createRelLookupTable() 130 static void convertToRelLookupTable(GlobalVariable &LookupTable) { in convertToRelLookupTable() 141 GlobalVariable *RelLookupTable = createRelLookupTable(Func, LookupTable); in convertToRelLookupTable() 191 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in convertToRelativeLookupTables()
|
H A D | CtorUtils.cpp | 28 static void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors() 48 GlobalVariable *NGV = in removeGlobalCtors() 49 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors() 67 parseGlobalCtors(GlobalVariable *GV) { in parseGlobalCtors() 80 static GlobalVariable *findGlobalCtors(Module &M) { in findGlobalCtors() 81 GlobalVariable *GV = M.getGlobalVariable("llvm.global_ctors"); in findGlobalCtors() 115 GlobalVariable *GlobalCtors = findGlobalCtors(M); in optimizeGlobalCtorsList()
|
H A D | CloneModule.cpp | 64 for (const GlobalVariable &I : M.globals()) { in CloneModule() 65 GlobalVariable *NewGV = new GlobalVariable( in CloneModule() 67 (Constant *)nullptr, I.getName(), (GlobalVariable *)nullptr, in CloneModule() 95 GV = new GlobalVariable(*New, I.getValueType(), false, in CloneModule() 125 for (const GlobalVariable &G : M.globals()) { in CloneModule() 126 GlobalVariable *GV = cast<GlobalVariable>(VMap[&G]); in CloneModule()
|
/openbsd/gnu/llvm/llvm/lib/IR/ |
H A D | Globals.cpp | 267 if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(this)) in isDeclaration() 395 if (auto *Var = dyn_cast<GlobalVariable>(this)) in canBeOmittedFromSymbolTable() 406 GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link, in GlobalVariable() function in GlobalVariable 411 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable() 425 GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant, in GlobalVariable() function in GlobalVariable 432 OperandTraits<GlobalVariable>::op_begin(this), in GlobalVariable() 454 void GlobalVariable::removeFromParent() { in removeFromParent() 458 void GlobalVariable::eraseFromParent() { in eraseFromParent() 462 void GlobalVariable::setInitializer(Constant *InitVal) { in setInitializer() 485 void GlobalVariable::copyAttributesFrom(const GlobalVariable *Src) { in copyAttributesFrom() [all …]
|
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Scalar/ |
H A D | TLSVariableHoist.h | 74 class GlobalVariable; variable 115 using TLSCandMapType = MapVector<GlobalVariable *, tlshoist::TLSCandidate>; 122 BasicBlock::iterator findInsertPos(Function &Fn, GlobalVariable *GV, 124 Instruction *genBitCastInst(Function &Fn, GlobalVariable *GV); 126 bool tryReplaceTLSCandidate(Function &Fn, GlobalVariable *GV);
|
/openbsd/gnu/llvm/clang/lib/CodeGen/ |
H A D | CGVTables.h | 124 llvm::GlobalVariable * 127 llvm::GlobalVariable::LinkageTypes Linkage, 132 llvm::GlobalVariable *GetAddrOfVTT(const CXXRecordDecl *RD); 135 void EmitVTTDefinition(llvm::GlobalVariable *VTT, 136 llvm::GlobalVariable::LinkageTypes Linkage, 159 void GenerateRelativeVTableAlias(llvm::GlobalVariable *VTable,
|
H A D | SanitizerMetadata.h | 21 class GlobalVariable; variable 40 void reportGlobal(llvm::GlobalVariable *GV, const VarDecl &D, 42 void reportGlobal(llvm::GlobalVariable *GV, SourceLocation Loc, 46 void disableSanitizerForGlobal(llvm::GlobalVariable *GV);
|
H A D | CGVTT.cpp | 20 static llvm::GlobalVariable * 24 llvm::GlobalVariable::LinkageTypes Linkage, in GetAddrOfVTTVTable() 41 CodeGenVTables::EmitVTTDefinition(llvm::GlobalVariable *VTT, in EmitVTTDefinition() 42 llvm::GlobalVariable::LinkageTypes Linkage, in EmitVTTDefinition() 48 SmallVector<llvm::GlobalVariable *, 8> VTables; in EmitVTTDefinition() 61 llvm::GlobalVariable *VTable = VTables[i->VTableIndex]; in EmitVTTDefinition() 101 llvm::GlobalVariable *CodeGenVTables::GetAddrOfVTT(const CXXRecordDecl *RD) { in GetAddrOfVTT() 119 llvm::GlobalVariable *GV = CGM.CreateOrReplaceCXXRuntimeVariable( in GetAddrOfVTT()
|
/openbsd/gnu/llvm/llvm/lib/Target/XCore/ |
H A D | XCoreLowerThreadLocal.cpp | 49 bool lowerGlobal(GlobalVariable *GV); 110 static bool rewriteNonInstructionUses(GlobalVariable *GV, Pass *P) { in rewriteNonInstructionUses() 129 bool XCoreLowerThreadLocal::lowerGlobal(GlobalVariable *GV) { in lowerGlobal() 145 GlobalVariable *NewGV = in lowerGlobal() 146 new GlobalVariable(*M, NewType, GV->isConstant(), GV->getLinkage(), in lowerGlobal() 148 GlobalVariable::NotThreadLocal, in lowerGlobal() 175 SmallVector<GlobalVariable *, 16> ThreadLocalGlobals; in runOnModule() 176 for (GlobalVariable &GV : M.globals()) in runOnModule()
|
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/Utils/ |
H A D | AMDGPUMemoryUtils.h | 20 class GlobalVariable; variable 29 Align getAlign(DataLayout const &DL, const GlobalVariable *GV); 31 bool isLDSVariableToLower(const GlobalVariable &GV); 32 std::vector<GlobalVariable *> findLDSVariablesToLower(Module &M,
|
/openbsd/gnu/llvm/llvm/lib/Target/NVPTX/ |
H A D | NVPTXGenericToNVVM.cpp | 55 typedef ValueMap<GlobalVariable *, GlobalVariable *> GVMapTy; 77 for (GlobalVariable &GV : llvm::make_early_inc_range(M.globals())) { in runOnModule() 81 GlobalVariable *NewGV = new GlobalVariable( in runOnModule() 129 GlobalVariable *GV = I->first; in runOnModule() 130 GlobalVariable *NewGV = I->second; in runOnModule() 162 if (isa<GlobalVariable>(C)) { in remapConstant() 168 GVMapTy::iterator I = GVMap.find(cast<GlobalVariable>(C)); in remapConstant() 170 GlobalVariable *GV = I->second; in remapConstant()
|
/openbsd/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | IRForTarget.cpp | 219 GlobalVariable *result_global = dyn_cast<GlobalVariable>(result_value); in CreateResultVariable() 331 GlobalVariable *new_result_global = new GlobalVariable( in CreateResultVariable() 550 GlobalVariable *nsstring_global = in RewriteObjCConstStrings() 699 GlobalVariable *gv = dyn_cast<GlobalVariable>(value_symbol.second); in RewriteObjCConstStrings() 722 GlobalVariable *global_variable = dyn_cast<GlobalVariable>(value); in IsObjCSelectorRef() 872 GlobalVariable *global_variable = dyn_cast<GlobalVariable>(value); in IsObjCClassReference() 921 GlobalVariable *_objc_class_name_ = in RewriteObjCClassReference() 1054 GlobalVariable *persistent_global = new GlobalVariable( in RewritePersistentAlloc() 1278 GlobalVariable *global_variable = in HandleObjCClass() 1434 GlobalVariable *GV = dyn_cast<GlobalVariable>(Old); in isGuardVariableRef() [all …]
|
/openbsd/gnu/llvm/llvm/lib/Target/ |
H A D | TargetMachine.cpp | 73 case GlobalVariable::NotThreadLocal: in getSelectedTLSModel() 76 case GlobalVariable::GeneralDynamicTLSModel: in getSelectedTLSModel() 78 case GlobalVariable::LocalDynamicTLSModel: in getSelectedTLSModel() 80 case GlobalVariable::InitialExecTLSModel: in getSelectedTLSModel() 82 case GlobalVariable::LocalExecTLSModel: in getSelectedTLSModel() 119 isa<GlobalVariable>(GV)) in shouldAssumeDSOLocal()
|