Home
last modified time | relevance | path

Searched refs:MDNode (Results 1 – 10 of 10) sorted by relevance

/frameworks/compile/slang/BitWriter_2_9/
DValueEnumerator.cpp66 SmallVector<std::pair<unsigned, MDNode*>, 8> MDs; in ValueEnumerator()
79 if (MDNode *MD = dyn_cast<MDNode>(*OI)) in ValueEnumerator()
98 MDNode *Scope, *IA; in ValueEnumerator()
122 if (isa<MDNode>(V) || isa<MDString>(V)) { in getValueID()
191 void ValueEnumerator::EnumerateMDNodeOperands(const MDNode *N) { in EnumerateMDNodeOperands()
194 if (isa<MDNode>(V) || isa<MDString>(V)) in EnumerateMDNodeOperands()
204 assert((isa<MDNode>(MD) || isa<MDString>(MD)) && "Invalid metadata kind"); in EnumerateMetadata()
209 const MDNode *N = dyn_cast<MDNode>(MD); in EnumerateMetadata()
235 void ValueEnumerator::EnumerateFunctionLocalMetadata(const MDNode *N) { in EnumerateFunctionLocalMetadata()
256 if (MDNode *O = dyn_cast<MDNode>(V)) { in EnumerateFunctionLocalMetadata()
[all …]
DValueEnumerator.h30 class MDNode; variable
51 SmallVector<const MDNode *, 8> FunctionLocalMDs;
113 const SmallVector<const MDNode *, 8> &getFunctionLocalMDValues() const { in getFunctionLocalMDValues()
138 void EnumerateMDNodeOperands(const MDNode *N);
140 void EnumerateFunctionLocalMetadata(const MDNode *N);
DBitcodeWriter.cpp591 static void WriteMDNode(const MDNode *N, in WriteMDNode()
619 if (const MDNode *N = dyn_cast<MDNode>(Vals[i].first)) { in WriteModuleMetadata()
681 const SmallVector<const MDNode *, 8> &Vals = VE.getFunctionLocalMDValues(); in WriteFunctionLocalMetadata()
683 if (const MDNode *N = Vals[i]) in WriteFunctionLocalMetadata()
705 SmallVector<std::pair<unsigned, MDNode*>, 4> MDs; in WriteMetadataAttachment()
1369 MDNode *Scope, *IA; in WriteFunction()
/frameworks/compile/libbcc/lib/ExecutionEngine/
DCompiler.cpp376 llvm::MDNode *ExportVar = ExportVarMetadata->getOperand(i); in compile()
404 llvm::MDNode *ExportFunc = ExportFuncMetadata->getOperand(i); in compile()
449 llvm::MDNode *Pragma = PragmaMetadata->getOperand(i); in compile()
481 llvm::MDNode *ObjectSlot = ObjectSlotMetadata->getOperand(i); in compile()
579 llvm::MDNode *ExportVar = ExportVarMetadata->getOperand(i); in runCodeGen()
622 llvm::MDNode *ExportFunc = ExportFuncMetadata->getOperand(i); in runCodeGen()
691 llvm::MDNode *ExportVar = ExportVarMetadata->getOperand(i); in runLTO()
705 llvm::MDNode *ExportFunc = ExportFuncMetadata->getOperand(i); in runLTO()
/frameworks/compile/slang/
Dslang_rs_backend.cpp262 llvm::MDNode::get(mLLVMContext, ExportVarInfo)); in HandleTranslationUnitPost()
271 mRSObjectSlotsMetadata->addOperand(llvm::MDNode::get(mLLVMContext, in HandleTranslationUnitPost()
404 llvm::MDNode::get(mLLVMContext, ExportFuncInfo)); in HandleTranslationUnitPost()
429 llvm::MDNode::get(mLLVMContext, ExportForEachInfo)); in HandleTranslationUnitPost()
460 llvm::MDNode::get(mLLVMContext, ExportTypeInfo)); in HandleTranslationUnitPost()
508 llvm::MDNode::get(mLLVMContext, FieldInfo)); in HandleTranslationUnitPost()
Dslang_rs_metadata_spec_encoder.cpp291 RecordInfoMetadata->addOperand(llvm::MDNode::get(mModule->getContext(), in encodeRecordType()
336 mVarInfoMetadata->addOperand(llvm::MDNode::get(mModule->getContext(), in encodeRSVar()
362 mFuncInfoMetadata->addOperand(llvm::MDNode::get(mModule->getContext(), in encodeRSFunc()
440 RSMetadataStrTab->addOperand(llvm::MDNode::get(mModule->getContext(), in flushStringTable()
482 RSTypeInfo->addOperand(llvm::MDNode::get(mModule->getContext(), in flushTypeInfo()
Dllvm-rs-link.cpp71 llvm::MDNode *V = N->getOperand(i); in GetExportSymbolNames()
Dslang_backend.cpp271 llvm::MDNode::get(mLLVMContext, Pragma)); in HandleTranslationUnit()
/frameworks/compile/libbcc/bcinfo/
DMetadataExtractor.cpp105 llvm::MDNode *ObjectSlot = ObjectSlotMetadata->getOperand(i); in populateObjectSlotMetadata()
157 llvm::MDNode *Pragma = PragmaMetadata->getOperand(i); in populatePragmaMetadata()
191 llvm::MDNode *SigNode = ExportForEachMetadata->getOperand(i); in populateForEachMetadata()
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.cpp345 MDNode *PrevVal = cast<MDNode>(OldV); in AssignValue()
347 MDNode::deleteTemporary(PrevVal); in AssignValue()
363 Value *V = MDNode::getTemporary(Context, ArrayRef<Value*>()); in getValueFwdRef()
1066 MDNode *MD = dyn_cast<MDNode>(MDValueList.getValueFwdRef(Record[i])); in ParseMetadata()
1103 Value *V = MDNode::getWhenValsUnresolved(Context, Elts, IsFunctionLocal); in ParseMetadata()
2033 Inst->setMetadata(I->second, cast<MDNode>(Node)); in ParseMetadataAttachment()
2148 MDNode *Scope = 0, *IA = 0; in ParseFunctionBody()
2149 if (ScopeID) Scope = cast<MDNode>(MDValueList.getValueFwdRef(ScopeID-1)); in ParseFunctionBody()
2150 if (IAID) IA = cast<MDNode>(MDValueList.getValueFwdRef(IAID-1)); in ParseFunctionBody()