Lines Matching full:ve
107 ValueEnumerator VE; member in llvm::dxil::DXILBitcodeWriter
137 StrtabBuilder(StrtabBuilder), M(M), VE(M, I8PtrTy), Buffer(Buffer), in DXILBitcodeWriter()
140 GlobalValueId = VE.getValues().size(); in DXILBitcodeWriter()
143 VE.EnumerateType(El.second); in DXILBitcodeWriter()
201 return VE.getValueID(VI.getValue()); in getValueId()
519 return VE.getTypeID(T); in getTypeID()
522 return VE.getTypeID(It->second); in getTypeID()
528 return VE.getTypeID(T); in getTypeID()
529 return VE.getTypeID(I8PtrTy); in getTypeID()
537 return VE.getTypeID(PtrTy->getElementType()); in getGlobalObjectValueTypeID()
539 return VE.getTypeID(T); in getGlobalObjectValueTypeID()
866 VE.getAttributeGroups(); in writeAttributeGroupTable()
876 Record.push_back(VE.getAttributeGroupID(Pair)); in writeAttributeGroupTable()
932 const std::vector<AttributeList> &Attrs = VE.getAttributeLists(); in writeAttributeTable()
943 Record.push_back(VE.getAttributeGroupID({i, AS})); in writeAttributeTable()
955 const ValueEnumerator::TypeList &TypeList = VE.getTypes(); in writeTypeTable()
960 uint64_t NumBits = VE.computeBitsRequiredForTypeIndices(); in writeTypeTable()
1148 for (const Comdat *C : VE.getComdats()) { in writeComdats()
1271 GV.isDeclaration() ? 0 : (VE.getValueID(GV.getInitializer()) + 1)); in writeModuleInfo()
1287 Vals.push_back(GV.hasComdat() ? VE.getComdatID(GV.getComdat()) : 0); in writeModuleInfo()
1305 Vals.push_back(VE.getAttributeListID(F.getAttributes())); in writeModuleInfo()
1313 F.hasPrologueData() ? (VE.getValueID(F.getPrologueData()) + 1) : 0); in writeModuleInfo()
1315 Vals.push_back(F.hasComdat() ? VE.getComdatID(F.getComdat()) : 0); in writeModuleInfo()
1316 Vals.push_back(F.hasPrefixData() ? (VE.getValueID(F.getPrefixData()) + 1) in writeModuleInfo()
1319 F.hasPersonalityFn() ? (VE.getValueID(F.getPersonalityFn()) + 1) : 0); in writeModuleInfo()
1330 Vals.push_back(VE.getValueID(A.getAliasee())); in writeModuleInfo()
1352 Record.push_back(VE.getValueID(V)); in writeValueAsMetadata()
1364 Record.push_back(VE.getMetadataOrNullID(MD)); in writeMDTuple()
1380 Record.push_back(VE.getMetadataID(N->getScope())); in writeDILocation()
1381 Record.push_back(VE.getMetadataOrNullID(N->getInlinedAt())); in writeDILocation()
1420 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDIEnumerator()
1431 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDIBasicType()
1445 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDIDerivedType()
1446 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDIDerivedType()
1448 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDIDerivedType()
1449 Record.push_back(VE.getMetadataOrNullID(N->getBaseType())); in writeDIDerivedType()
1454 Record.push_back(VE.getMetadataOrNullID(N->getExtraData())); in writeDIDerivedType()
1465 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDICompositeType()
1466 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDICompositeType()
1468 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDICompositeType()
1469 Record.push_back(VE.getMetadataOrNullID(N->getBaseType())); in writeDICompositeType()
1474 Record.push_back(VE.getMetadataOrNullID(N->getElements().get())); in writeDICompositeType()
1476 Record.push_back(VE.getMetadataOrNullID(N->getVTableHolder())); in writeDICompositeType()
1477 Record.push_back(VE.getMetadataOrNullID(N->getTemplateParams().get())); in writeDICompositeType()
1478 Record.push_back(VE.getMetadataOrNullID(N->getRawIdentifier())); in writeDICompositeType()
1489 Record.push_back(VE.getMetadataOrNullID(N->getTypeArray().get())); in writeDISubroutineType()
1499 Record.push_back(VE.getMetadataOrNullID(N->getRawFilename())); in writeDIFile()
1500 Record.push_back(VE.getMetadataOrNullID(N->getRawDirectory())); in writeDIFile()
1511 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDICompileUnit()
1512 Record.push_back(VE.getMetadataOrNullID(N->getRawProducer())); in writeDICompileUnit()
1514 Record.push_back(VE.getMetadataOrNullID(N->getRawFlags())); in writeDICompileUnit()
1516 Record.push_back(VE.getMetadataOrNullID(N->getRawSplitDebugFilename())); in writeDICompileUnit()
1518 Record.push_back(VE.getMetadataOrNullID(N->getEnumTypes().get())); in writeDICompileUnit()
1519 Record.push_back(VE.getMetadataOrNullID(N->getRetainedTypes().get())); in writeDICompileUnit()
1521 Record.push_back(VE.getMetadataOrNullID(N->getGlobalVariables().get())); in writeDICompileUnit()
1522 Record.push_back(VE.getMetadataOrNullID(N->getImportedEntities().get())); in writeDICompileUnit()
1533 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDISubprogram()
1534 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDISubprogram()
1535 Record.push_back(VE.getMetadataOrNullID(N->getRawLinkageName())); in writeDISubprogram()
1536 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDISubprogram()
1538 Record.push_back(VE.getMetadataOrNullID(N->getType())); in writeDISubprogram()
1542 Record.push_back(VE.getMetadataOrNullID(N->getContainingType())); in writeDISubprogram()
1547 Record.push_back(VE.getMetadataOrNullID(N->getRawUnit())); in writeDISubprogram()
1548 Record.push_back(VE.getMetadataOrNullID(N->getTemplateParams().get())); in writeDISubprogram()
1549 Record.push_back(VE.getMetadataOrNullID(N->getDeclaration())); in writeDISubprogram()
1550 Record.push_back(VE.getMetadataOrNullID(N->getRetainedNodes().get())); in writeDISubprogram()
1560 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDILexicalBlock()
1561 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDILexicalBlock()
1573 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDILexicalBlockFile()
1574 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDILexicalBlockFile()
1585 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDINamespace()
1586 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDINamespace()
1587 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDINamespace()
1599 Record.push_back(VE.getMetadataOrNullID(I)); in writeDIModule()
1609 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDITemplateTypeParameter()
1610 Record.push_back(VE.getMetadataOrNullID(N->getType())); in writeDITemplateTypeParameter()
1621 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDITemplateValueParameter()
1622 Record.push_back(VE.getMetadataOrNullID(N->getType())); in writeDITemplateValueParameter()
1623 Record.push_back(VE.getMetadataOrNullID(N->getValue())); in writeDITemplateValueParameter()
1633 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDIGlobalVariable()
1634 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDIGlobalVariable()
1635 Record.push_back(VE.getMetadataOrNullID(N->getRawLinkageName())); in writeDIGlobalVariable()
1636 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDIGlobalVariable()
1638 Record.push_back(VE.getMetadataOrNullID(N->getType())); in writeDIGlobalVariable()
1642 Record.push_back(VE.getMetadataOrNullID(N->getStaticDataMemberDeclaration())); in writeDIGlobalVariable()
1653 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDILocalVariable()
1654 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDILocalVariable()
1655 Record.push_back(VE.getMetadataOrNullID(N->getFile())); in writeDILocalVariable()
1657 Record.push_back(VE.getMetadataOrNullID(N->getType())); in writeDILocalVariable()
1688 Record.push_back(VE.getMetadataOrNullID(N->getScope())); in writeDIImportedEntity()
1689 Record.push_back(VE.getMetadataOrNullID(N->getEntity())); in writeDIImportedEntity()
1691 Record.push_back(VE.getMetadataOrNullID(N->getRawName())); in writeDIImportedEntity()
1790 if (!VE.hasMDs() && M.named_metadata_empty()) in writeModuleMetadata()
1815 writeMetadataStrings(VE.getMDStrings(), Record); in writeModuleMetadata()
1818 IndexPos.reserve(VE.getNonMDStrings().size()); in writeModuleMetadata()
1819 writeMetadataRecords(VE.getNonMDStrings(), Record, &MDAbbrevs, &IndexPos); in writeModuleMetadata()
1831 Record.push_back(VE.getMetadataID(N)); in writeModuleMetadata()
1840 if (!VE.hasMDs()) in writeFunctionMetadata()
1845 writeMetadataStrings(VE.getMDStrings(), Record); in writeFunctionMetadata()
1846 writeMetadataRecords(VE.getNonMDStrings(), Record); in writeFunctionMetadata()
1862 Record.push_back(VE.getMetadataID(I.second)); in writeFunctionMetadataAttachment()
1877 Record.push_back(VE.getInstructionID(&I)); in writeFunctionMetadataAttachment()
1881 Record.push_back(VE.getMetadataID(MDs[i].second)); in writeFunctionMetadataAttachment()
1958 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeConstants()
2092 Record.push_back(VE.getValueID(Op)); in writeConstants()
2102 Record.push_back(VE.getValueID(C->getOperand(0))); in writeConstants()
2108 Record.push_back(VE.getValueID(C->getOperand(0))); in writeConstants()
2109 Record.push_back(VE.getValueID(C->getOperand(1))); in writeConstants()
2124 Record.push_back(VE.getValueID(C->getOperand(i))); in writeConstants()
2130 Record.push_back(VE.getValueID(C->getOperand(0))); in writeConstants()
2131 Record.push_back(VE.getValueID(C->getOperand(1))); in writeConstants()
2132 Record.push_back(VE.getValueID(C->getOperand(2))); in writeConstants()
2137 Record.push_back(VE.getValueID(C->getOperand(0))); in writeConstants()
2139 Record.push_back(VE.getValueID(C->getOperand(1))); in writeConstants()
2143 Record.push_back(VE.getValueID(C->getOperand(0))); in writeConstants()
2144 Record.push_back(VE.getValueID(C->getOperand(1))); in writeConstants()
2146 Record.push_back(VE.getValueID(C->getOperand(2))); in writeConstants()
2159 Record.push_back(VE.getValueID(C->getOperand(0))); in writeConstants()
2160 Record.push_back(VE.getValueID(C->getOperand(1))); in writeConstants()
2161 Record.push_back(VE.getValueID(C->getOperand(2))); in writeConstants()
2167 Record.push_back(VE.getValueID(BA->getFunction())); in writeConstants()
2168 Record.push_back(VE.getGlobalBasicBlockID(BA->getBasicBlock())); in writeConstants()
2183 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeModuleConstants()
2205 unsigned ValID = VE.getValueID(V); in pushValueAndType()
2219 unsigned ValID = VE.getValueID(V); in pushValue()
2225 unsigned ValID = VE.getValueID(V); in pushValueSigned()
2235 VE.setInstructionID(&I); in writeInstruction()
2338 Vals.push_back(VE.getValueID(II.getSuccessor(0))); in writeInstruction()
2340 Vals.push_back(VE.getValueID(II.getSuccessor(1))); in writeInstruction()
2349 Vals.push_back(VE.getValueID(SI.getDefaultDest())); in writeInstruction()
2351 Vals.push_back(VE.getValueID(Case.getCaseValue())); in writeInstruction()
2352 Vals.push_back(VE.getValueID(Case.getCaseSuccessor())); in writeInstruction()
2361 Vals.push_back(VE.getValueID(I.getOperand(i))); in writeInstruction()
2370 Vals.push_back(VE.getAttributeListID(II->getAttributes())); in writeInstruction()
2372 Vals.push_back(VE.getValueID(II->getNormalDest())); in writeInstruction()
2373 Vals.push_back(VE.getValueID(II->getUnwindDest())); in writeInstruction()
2408 Vals64.push_back(VE.getValueID(PN.getIncomingBlock(i))); in writeInstruction()
2437 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in writeInstruction()
2514 Vals.push_back(VE.getAttributeListID(CI.getAttributes())); in writeInstruction()
2524 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); in writeInstruction()
2603 NameVals.push_back(VE.getValueID(SI->getValue())); in writeFunctionLevelValueSymbolTable()
2619 VE.incorporateFunction(F); in writeFunction()
2625 Vals.push_back(VE.getBasicBlocks().size()); in writeFunction()
2631 VE.getFunctionConstantRange(CstStart, CstEnd); in writeFunction()
2669 Vals.push_back(VE.getMetadataOrNullID(DL->getScope())); in writeFunction()
2670 Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt())); in writeFunction()
2684 VE.purgeFunction(); in writeFunction()
2741 VE.computeBitsRequiredForTypeIndices())); in writeBlockInfo()
2761 VE.computeBitsRequiredForTypeIndices())); in writeBlockInfo()
2783 VE.computeBitsRequiredForTypeIndices())); in writeBlockInfo()
2816 VE.computeBitsRequiredForTypeIndices())); in writeBlockInfo()
2850 Log2_32_Ceil(VE.getTypes().size() + 1))); in writeBlockInfo()