Home
last modified time | relevance | path

Searched refs:naclbitc (Results 1 – 13 of 13) sorted by relevance

/external/swiftshader/third_party/subzero/unittest/
DIceParseInstsTest.cpp38 1, naclbitc::BLK_CODE_ENTER, naclbitc::MODULE_BLOCK_ID, 2, Terminator, 1, in TEST()
39 naclbitc::BLK_CODE_ENTER, naclbitc::TYPE_BLOCK_ID_NEW, 2, Terminator, 3, in TEST()
40 naclbitc::TYPE_CODE_NUMENTRY, 3, Terminator, 3, in TEST()
41 naclbitc::TYPE_CODE_INTEGER, 32, Terminator, 3, naclbitc::TYPE_CODE_VOID, in TEST()
42 Terminator, 3, naclbitc::TYPE_CODE_FUNCTION, 0, 1, 0, 0, Terminator, 0, in TEST()
43 naclbitc::BLK_CODE_EXIT, Terminator, 3, naclbitc::MODULE_CODE_FUNCTION, 2, in TEST()
44 0, 1, 3, Terminator, 3, naclbitc::MODULE_CODE_FUNCTION, 2, 0, 0, 3, in TEST()
45 Terminator, 1, naclbitc::BLK_CODE_ENTER, naclbitc::FUNCTION_BLOCK_ID, 2, in TEST()
46 Terminator, 3, naclbitc::FUNC_CODE_DECLAREBLOCKS, 1, Terminator, in TEST()
48 3, naclbitc::FUNC_CODE_INST_CALL, 0, 4, 2, 100, Terminator, 3, in TEST()
[all …]
DIceParseTypesTest.cpp25 NaClBitsNeededForValue(naclbitc::DEFAULT_MAX_ABBREV);
27 const uint64_t BitcodeRecords[] = {naclbitc::ENTER_SUBBLOCK,
28 naclbitc::BLK_CODE_ENTER,
29 naclbitc::MODULE_BLOCK_ID,
32 naclbitc::ENTER_SUBBLOCK,
33 naclbitc::BLK_CODE_ENTER,
34 naclbitc::TYPE_BLOCK_ID_NEW,
37 naclbitc::UNABBREV_RECORD,
38 naclbitc::TYPE_CODE_NUMENTRY,
41 naclbitc::UNABBREV_RECORD,
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeDecoders.cpp14 namespace naclbitc { namespace
21 case naclbitc::CAST_TRUNC: in DecodeCastOpcode()
24 case naclbitc::CAST_ZEXT: in DecodeCastOpcode()
27 case naclbitc::CAST_SEXT: in DecodeCastOpcode()
30 case naclbitc::CAST_FPTOUI: in DecodeCastOpcode()
33 case naclbitc::CAST_FPTOSI: in DecodeCastOpcode()
36 case naclbitc::CAST_UITOFP: in DecodeCastOpcode()
39 case naclbitc::CAST_SITOFP: in DecodeCastOpcode()
42 case naclbitc::CAST_FPTRUNC: in DecodeCastOpcode()
45 case naclbitc::CAST_FPEXT: in DecodeCastOpcode()
[all …]
DNaClBitstreamReader.cpp24 std::string llvm::naclbitc::getBitAddress(uint64_t Bit) { in getBitAddress()
31 raw_ostream &llvm::naclbitc::ErrorAt(raw_ostream &Out, ErrorLevel Level, in ErrorAt()
35 << naclbitc::getBitAddress(BitPosition) << "): "; in ErrorAt()
48 naclbitc::ErrorAt(StrBuf, naclbitc::Fatal, in Fatal()
73 ReadVBR(naclbitc::CodeLenWidth)); in EnterSubBlock()
76 unsigned NumWords = Read(naclbitc::BlockSizeWidth); in EnterSubBlock()
112 if (AbbrevID == naclbitc::UNABBREV_RECORD) { in skipRecord()
202 if (AbbrevID == naclbitc::UNABBREV_RECORD) { in readRecord()
338 naclbitc::BLOCKINFO_BLOCK_ID, naclbitc::CONSTANTS_BLOCK_ID,
339 naclbitc::FUNCTION_BLOCK_ID, naclbitc::GLOBALVAR_BLOCK_ID,
[all …]
DNaClBitcodeParser.cpp52 Parser->Record.Entry.ID = naclbitc::UNABBREV_RECORD; in SetBID()
53 Parser->Record.Data.Code = naclbitc::BLOCKINFO_CODE_SETBID; in SetBID()
63 Parser->Record.Entry.ID = naclbitc::END_BLOCK; in EndBlockInfoBlock()
64 Parser->Record.Data.Code = naclbitc::END_BLOCK; in EndBlockInfoBlock()
66 GlobalBlockID = naclbitc::BLOCKINFO_BLOCK_ID; in EndBlockInfoBlock()
74 Parser->Record.Entry.ID = naclbitc::DEFINE_ABBREV; in ProcessAbbreviation()
75 Parser->Record.Data.Code = naclbitc::BLK_CODE_DEFINE_ABBREV; in ProcessAbbreviation()
87 bool NaClBitcodeParser::ErrorAt(naclbitc::ErrorLevel Level, in ErrorAt()
90 naclbitc::ErrorAt(*ErrStream, Level, BitPosition) << Message << "\n"; in ErrorAt()
91 if (Level == naclbitc::Fatal) in ErrorAt()
[all …]
DNaClBitCodes.cpp48 return Val <= naclbitc::MaxAbbrevWidth; in isValid()
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp243 bool ErrorAt(naclbitc::ErrorLevel Level, uint64_t BitPosition,
583 bool TopLevelParser::ErrorAt(naclbitc::ErrorLevel Level, uint64_t Bit, in ErrorAt()
596 if (Level >= naclbitc::Error && !Ice::getFlags().getAllowErrorRecovery()) in ErrorAt()
683 bool ErrorAt(naclbitc::ErrorLevel Level, uint64_t Bit,
767 bool BlockParserBaseClass::ErrorAt(naclbitc::ErrorLevel Level, uint64_t Bit, in ErrorAt()
868 case naclbitc::TYPE_CODE_NUMENTRY: { in ProcessRecord()
890 case naclbitc::TYPE_CODE_VOID: in ProcessRecord()
896 case naclbitc::TYPE_CODE_FLOAT: in ProcessRecord()
902 case naclbitc::TYPE_CODE_DOUBLE: in ProcessRecord()
908 case naclbitc::TYPE_CODE_INTEGER: in ProcessRecord()
[all …]
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeParser.h282 GetEntryID() != naclbitc::UNABBREV_RECORD; in UsedAnAbbreviation()
290 : static_cast<unsigned>(naclbitc::UNABBREV_RECORD); in GetAbbreviationIndex()
347 : Parser(Parser), GlobalBlockID(naclbitc::BLOCKINFO_BLOCK_ID) {} in NaClBitcodeParserListener()
458 virtual bool ErrorAt(naclbitc::ErrorLevel Level, uint64_t BitPosition,
462 return ErrorAt(naclbitc::Error, BitPosition, Message); in ErrorAt()
476 ErrorAt(naclbitc::Fatal, BitPosition, Message); in FatalAt()
586 if (GetBlockID() == naclbitc::BLOCKINFO_BLOCK_ID) { in ParseThisBlockInternal()
DNaClBitstreamReader.h35 namespace naclbitc {
506 Block(BitStream->getBlockInfo(naclbitc::TOP_LEVEL_BLOCKID))); in init()
562 return naclbitc::getBitAddress(GetCurrentBitNo()); in getCurrentBitAddress()
581 if (Code == naclbitc::END_BLOCK) { in advance()
588 if (Code == naclbitc::ENTER_SUBBLOCK) in advance()
591 if (Code == naclbitc::DEFINE_ABBREV && in advance()
794 unsigned ReadSubBlockID() { return ReadVBR(naclbitc::BlockIDWidth); } in ReadSubBlockID()
801 ReadVBR(naclbitc::CodeLenWidth); in SkipBlock()
803 unsigned NumFourBytes = Read(naclbitc::BlockSizeWidth); in SkipBlock()
867 unsigned AbbrevNo = AbbrevID - naclbitc::FIRST_APPLICATION_ABBREV; in getAbbrev()
DNaClBitcodeDefs.h21 namespace naclbitc {
DNaClBitcodeDecoders.h27 namespace naclbitc {
DNaClBitCodes.h30 namespace naclbitc {
418 NumBits(NaClBitsNeededForValue(naclbitc::DEFAULT_MAX_ABBREV)) {}
DNaClLLVMBitCodes.h28 namespace naclbitc {