Home
last modified time | relevance | path

Searched refs:GV (Results 1 – 14 of 14) sorted by relevance

/frameworks/rs/rsov/compiler/
DRSAllocationUtils.cpp38 bool isRSAllocation(const GlobalVariable &GV) { in isRSAllocation() argument
39 auto *PT = cast<PointerType>(GV.getType()); in isRSAllocation()
55 for (auto &GV : M.globals()) { in getRSAllocationInfo() local
56 if (GV.isDeclaration() || !isRSAllocation(GV)) in getRSAllocationInfo()
59 Allocs.push_back({'%' + GV.getName().str(), None, &GV, -1}); in getRSAllocationInfo()
78 auto *GV = A.GlobalVar; in getRSAllocAccesses() local
79 std::vector<User *> WorkList(GV->user_begin(), GV->user_end()); in getRSAllocAccesses()
89 if (It->second == GV) { in getRSAllocAccesses()
94 GV->print(errs()); in getRSAllocAccesses()
105 Mapping[U] = GV; in getRSAllocAccesses()
[all …]
DGlobalMergePass.cpp62 for (GlobalVariable *GV : Globals) { in runOnModule()
63 Tys.push_back(GV->getValueType()); in runOnModule()
64 const char *name = GV->getName().data(); in runOnModule()
210 for (GlobalVariable &GV : M.globals()) { in collectGlobals()
211 assert(!GV.hasComdat() && "global variable has a comdat section"); in collectGlobals()
212 assert(!GV.hasSection() && "global variable has a non-default section"); in collectGlobals()
213 assert(!GV.isDeclaration() && "global variable is only a declaration"); in collectGlobals()
214 assert(!GV.isThreadLocal() && "global variable is thread-local"); in collectGlobals()
215 assert(GV.getType()->getAddressSpace() == 0 && in collectGlobals()
219 if (GV.isConstant()) { in collectGlobals()
[all …]
DGlobalAllocPass.cpp36 for (auto &GV : M.globals()) { in collectGlobalAllocs() local
37 if (!isRSAllocation(GV)) in collectGlobalAllocs()
40 DEBUG(GV.dump()); in collectGlobalAllocs()
41 GlobalAllocs.push_back(&GV); in collectGlobalAllocs()
DRSAllocationUtils.h56 bool isRSAllocation(const llvm::GlobalVariable &GV);
DWrapper.cpp254 std::find_if(GlobalsB, GlobalsE, [](const llvm::GlobalVariable &GV) { in DecorateGlobalBuffer() argument
255 return GV.getName() == "__GPUBlock"; in DecorateGlobalBuffer()
/frameworks/compile/libbcc/lib/
DRSGlobalInfoPass.cpp74 static uint32_t getEncodedProperties(const llvm::GlobalVariable &GV) { in getEncodedProperties() argument
75 auto GlobalType = GV.getType()->getPointerElementType(); in getEncodedProperties()
86 if (GV.isConstant()) { in getEncodedProperties()
90 if (GV.getLinkage() == llvm::GlobalValue::InternalLinkage) { in getEncodedProperties()
135 for (auto &GV : M.globals()) { in runOnModule() local
137 if (mSkipConstants && GV.isConstant()) { in runOnModule()
142 if (GV.getName().startswith("llvm.")) { in runOnModule()
148 GVAddresses.push_back(llvm::ConstantExpr::getBitCast(&GV, VoidPtrTy)); in runOnModule()
149 GVNameStrings.push_back(GV.getName()); in runOnModule()
154 auto GlobalType = GV.getType()->getPointerElementType(); in runOnModule()
[all …]
DRSAddDebugInfoPass.cpp135 for (llvm::DIGlobalVariable* GV : CU->getGlobalVariables()) { in initializeDebugInfo()
136 if (GV->getDisplayName() == DEBUG_PROTOTYPE_VAR_NAME) { in initializeDebugInfo()
137 kernelPrototypeVarMD = GV; in initializeDebugInfo()
DCompiler.cpp449 auto IsExportedSymbol = [=](const llvm::GlobalValue &GV) { in addInternalizeSymbolsPass() argument
450 return export_symbols.count(GV.getName()) > 0; in addInternalizeSymbolsPass()
/frameworks/compile/slang/BitWriter_3_2/
DBitcodeWriter.cpp344 static unsigned getEncodedLinkage(const GlobalValue &GV) { in getEncodedLinkage() argument
345 switch (GV.getLinkage()) { in getEncodedLinkage()
372 static unsigned getEncodedVisibility(const GlobalValue &GV) { in getEncodedVisibility() argument
373 switch (GV.getVisibility()) { in getEncodedVisibility()
381 static unsigned getEncodedThreadLocalMode(const GlobalVariable &GV) { in getEncodedThreadLocalMode() argument
382 switch (GV.getThreadLocalMode()) { in getEncodedThreadLocalMode()
414 for (const GlobalValue &GV : M->globals()) { in WriteModuleInfo() local
415 MaxAlignment = std::max(MaxAlignment, GV.getAlignment()); in WriteModuleInfo()
416 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV.getType())); in WriteModuleInfo()
417 if (GV.hasSection()) { in WriteModuleInfo()
[all …]
/frameworks/compile/slang/BitWriter_2_9/
DBitcodeWriter.cpp344 static unsigned getEncodedLinkage(const GlobalValue &GV) { in getEncodedLinkage() argument
345 switch (GV.getLinkage()) { in getEncodedLinkage()
372 static unsigned getEncodedVisibility(const GlobalValue &GV) { in getEncodedVisibility() argument
373 switch (GV.getVisibility()) { in getEncodedVisibility()
403 for (const GlobalValue &GV : M->globals()) { in WriteModuleInfo() local
404 MaxAlignment = std::max(MaxAlignment, GV.getAlignment()); in WriteModuleInfo()
405 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV.getType())); in WriteModuleInfo()
406 if (GV.hasSection()) { in WriteModuleInfo()
408 unsigned &Entry = SectionMap[GV.getSection()]; in WriteModuleInfo()
410 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV.getSection(), in WriteModuleInfo()
[all …]
/frameworks/compile/slang/BitWriter_2_9_func/
DBitcodeWriter.cpp342 static unsigned getEncodedLinkage(const GlobalValue &GV) { in getEncodedLinkage() argument
343 switch (GV.getLinkage()) { in getEncodedLinkage()
370 static unsigned getEncodedVisibility(const GlobalValue &GV) { in getEncodedVisibility() argument
371 switch (GV.getVisibility()) { in getEncodedVisibility()
401 for (const GlobalValue &GV : M->globals()) { in WriteModuleInfo() local
402 MaxAlignment = std::max(MaxAlignment, GV.getAlignment()); in WriteModuleInfo()
403 MaxGlobalType = std::max(MaxGlobalType, VE.getTypeID(GV.getType())); in WriteModuleInfo()
404 if (GV.hasSection()) { in WriteModuleInfo()
406 unsigned &Entry = SectionMap[GV.getSection()]; in WriteModuleInfo()
408 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV.getSection(), in WriteModuleInfo()
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.cpp102 GlobalVariable *GV = cast<GlobalVariable>(Val); in TransferClausesToLandingPadInst() local
103 LPI->addClause(GV->getInitializer()); in TransferClausesToLandingPadInst()
133 GlobalVariable *GV = cast<GlobalVariable>(Val); in TransferClausesToLandingPadInst() local
134 LPI->addClause(GV->getInitializer()); in TransferClausesToLandingPadInst()
500 bool isDematerializable(const GlobalValue *GV) const;
501 std::error_code materialize(GlobalValue *GV) override;
504 void dematerialize(GlobalValue *GV);
2308 GlobalVariable *GV = &*GI; in GlobalCleanup() local
2309 UpgradeGlobalVariable(GV); in GlobalCleanup()
3658 std::error_code BitcodeReader::materialize(GlobalValue *GV) { in materialize() argument
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.cpp263 bool isDematerializable(const GlobalValue *GV) const;
264 std::error_code materialize(GlobalValue *GV) override;
267 void dematerialize(GlobalValue *GV);
2015 GlobalVariable *GV = &*GI; in GlobalCleanup() local
2016 UpgradeGlobalVariable(&*GV); in GlobalCleanup()
3319 std::error_code BitcodeReader::materialize(GlobalValue *GV) { in materialize() argument
3323 Function *F = dyn_cast<Function>(GV); in materialize()
3353 bool BitcodeReader::isDematerializable(const GlobalValue *GV) const { in isDematerializable()
3354 const Function *F = dyn_cast<Function>(GV); in isDematerializable()
3360 void BitcodeReader::dematerialize(GlobalValue *GV) { in dematerialize() argument
[all …]
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_with_password69 …�ɵB�z6̜��/+��ؐ]`=� �ކ�l5�,��|x���q�2&�@�"�CFs*>�y�V��]c��"�*�/h��7��GV�� �c�"�� ��C�/@��E…