Home | History | Annotate | Download | only in BitWriter_2_9

Lines Matching refs:bitc

56   VST_ENTRY_8_ABBREV = bitc::FIRST_APPLICATION_ABBREV,
62 CONSTANTS_SETTYPE_ABBREV = bitc::FIRST_APPLICATION_ABBREV,
68 FUNCTION_INST_LOAD_ABBREV = bitc::FIRST_APPLICATION_ABBREV,
81 case Instruction::Trunc : return bitc::CAST_TRUNC;
82 case Instruction::ZExt : return bitc::CAST_ZEXT;
83 case Instruction::SExt : return bitc::CAST_SEXT;
84 case Instruction::FPToUI : return bitc::CAST_FPTOUI;
85 case Instruction::FPToSI : return bitc::CAST_FPTOSI;
86 case Instruction::UIToFP : return bitc::CAST_UITOFP;
87 case Instruction::SIToFP : return bitc::CAST_SITOFP;
88 case Instruction::FPTrunc : return bitc::CAST_FPTRUNC;
89 case Instruction::FPExt : return bitc::CAST_FPEXT;
90 case Instruction::PtrToInt: return bitc::CAST_PTRTOINT;
91 case Instruction::IntToPtr: return bitc::CAST_INTTOPTR;
92 case Instruction::BitCast : return bitc::CAST_BITCAST;
100 case Instruction::FAdd: return bitc::BINOP_ADD;
102 case Instruction::FSub: return bitc::BINOP_SUB;
104 case Instruction::FMul: return bitc::BINOP_MUL;
105 case Instruction::UDiv: return bitc::BINOP_UDIV;
107 case Instruction::SDiv: return bitc::BINOP_SDIV;
108 case Instruction::URem: return bitc::BINOP_UREM;
110 case Instruction::SRem: return bitc::BINOP_SREM;
111 case Instruction::Shl: return bitc::BINOP_SHL;
112 case Instruction::LShr: return bitc::BINOP_LSHR;
113 case Instruction::AShr: return bitc::BINOP_ASHR;
114 case Instruction::And: return bitc::BINOP_AND;
115 case Instruction::Or: return bitc::BINOP_OR;
116 case Instruction::Xor: return bitc::BINOP_XOR;
141 Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3);
152 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY_OLD, Record);
166 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_ENTRY));
199 Stream.EmitRecord(bitc::VST_CODE_ENTRY, NameVals, is7Bit ? V7Abbrev : 0);
223 Stream.EmitRecord(bitc::VST_CODE_ENTRY, NameVals, is7Bit ? V7Abbrev : 0);
241 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_POINTER));
249 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_FUNCTION_OLD));
260 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_ANON));
269 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_NAME));
276 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_NAMED));
295 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_ARRAY));
303 Stream.EmitRecord(bitc::TYPE_CODE_NUMENTRY, TypeVals);
314 case Type::VoidTyID: Code = bitc::TYPE_CODE_VOID; break;
315 case Type::FloatTyID: Code = bitc::TYPE_CODE_FLOAT; break;
316 case Type::DoubleTyID: Code = bitc::TYPE_CODE_DOUBLE; break;
317 case Type::X86_FP80TyID: Code = bitc::TYPE_CODE_X86_FP80; break;
318 case Type::FP128TyID: Code = bitc::TYPE_CODE_FP128; break;
319 case Type::PPC_FP128TyID: Code = bitc::TYPE_CODE_PPC_FP128; break;
320 case Type::LabelTyID: Code = bitc::TYPE_CODE_LABEL; break;
321 case Type::MetadataTyID: Code = bitc::TYPE_CODE_METADATA; break;
322 case Type::X86_MMXTyID: Code = bitc::TYPE_CODE_X86_MMX; break;
325 Code = bitc::TYPE_CODE_INTEGER;
331 Code = bitc::TYPE_CODE_POINTER;
341 Code = bitc::TYPE_CODE_FUNCTION_OLD;
364 Code = bitc::TYPE_CODE_ARRAY;
373 Code = bitc::TYPE_CODE_VECTOR;
428 WriteStringRecord(bitc::MODULE_CODE_TRIPLE, M->getTargetTriple(),
431 WriteStringRecord(bitc::MODULE_CODE_DATALAYOUT, M->getDataLayout(),
434 WriteStringRecord(bitc::MODULE_CODE_ASM, M->getModuleInlineAsm(),
452 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(),
462 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, F->getSection(),
471 WriteStringRecord(bitc::MODULE_CODE_GCNAME, F->getGC(),
483 Abbv->Add(BitCodeAbbrevOp(bitc::MODULE_CODE_GLOBALVAR));
531 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse);
551 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse);
563 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse);
574 Flags |= 1 << bitc::OBO_NO_SIGNED_WRAP;
576 Flags |= 1 << bitc::OBO_NO_UNSIGNED_WRAP;
580 Flags |= 1 << bitc::PEO_EXACT;
617 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
624 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
628 Abbv->Add(BitCodeAbbrevOp(bitc::METADATA_STRING));
639 Stream.EmitRecord(bitc::METADATA_STRING, Record, MDSAbbrev);
649 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
657 Stream.EmitRecord(bitc::METADATA_NAME, Record, 0/*TODO*/);
681 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
694 Stream.EnterSubblock(bitc::METADATA_ATTACHMENT_ID, 3);
734 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
741 Stream.EmitRecord(bitc::METADATA_KIND, Record, 0);
753 Stream.EnterSubblock(bitc::CONSTANTS_BLOCK_ID, 4);
763 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_AGGREGATE));
770 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_STRING));
776 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CSTRING));
782 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CSTRING));
798 Stream.EmitRecord(bitc::CST_CODE_SETTYPE, Record,
818 Stream.EmitRecord(bitc::CST_CODE_INLINEASM, Record);
826 Code = bitc::CST_CODE_NULL;
828 Code = bitc::CST_CODE_UNDEF;
836 Code = bitc::CST_CODE_INTEGER;
852 Code = bitc::CST_CODE_WIDE_INTEGER;
855 Code = bitc::CST_CODE_FLOAT;
881 Code = bitc::CST_CODE_CSTRING;
884 Code = bitc::CST_CODE_STRING;
887 bool isCStr7 = Code == bitc::CST_CODE_CSTRING;
888 bool isCStrChar6 = Code == bitc::CST_CODE_CSTRING;
907 Code = bitc::CST_CODE_AGGREGATE;
913 Code = bitc::CST_CODE_AGGREGATE;
921 Code = bitc::CST_CODE_CE_CAST;
928 Code = bitc::CST_CODE_CE_BINOP;
938 Code = bitc::CST_CODE_CE_GEP;
940 Code = bitc::CST_CODE_CE_INBOUNDS_GEP;
947 Code = bitc::CST_CODE_CE_SELECT;
953 Code = bitc::CST_CODE_CE_EXTRACTELT;
959 Code = bitc::CST_CODE_CE_INSERTELT;
970 Code = bitc::CST_CODE_CE_SHUFFLEVEC;
972 Code = bitc::CST_CODE_CE_SHUFVEC_EX;
981 Code = bitc::CST_CODE_CE_CMP;
989 Code = bitc::CST_CODE_BLOCKADDRESS;
1051 Code = bitc::FUNC_CODE_INST_CAST;
1058 Code = bitc::FUNC_CODE_INST_BINOP;
1073 Code = bitc::FUNC_CODE_INST_GEP;
1075 Code = bitc::FUNC_CODE_INST_INBOUNDS_GEP;
1080 Code = bitc::FUNC_CODE_INST_EXTRACTVAL;
1088 Code = bitc::FUNC_CODE_INST_INSERTVAL;
1097 Code = bitc::FUNC_CODE_INST_VSELECT;
1103 Code = bitc::FUNC_CODE_INST_EXTRACTELT;
1108 Code = bitc::FUNC_CODE_INST_INSERTELT;
1114 Code = bitc::FUNC_CODE_INST_SHUFFLEVEC;
1122 Code = bitc::FUNC_CODE_INST_CMP2;
1130 Code = bitc::FUNC_CODE_INST_RET;
1145 Code = bitc::FUNC_CODE_INST_BR;
1156 Code = bitc::FUNC_CODE_INST_SWITCH;
1182 Code = bitc::FUNC_CODE_INST_INDIRECTBR;
1193 Code = bitc::FUNC_CODE_INST_INVOKE;
1214 Code = bitc::FUNC_CODE_INST_UNREACHABLE;
1220 Code = bitc::FUNC_CODE_INST_PHI;
1230 Code = bitc::FUNC_CODE_INST_ALLOCA;
1238 Code = bitc::FUNC_CODE_INST_LOAD;
1246 Code = bitc::FUNC_CODE_INST_STORE;
1276 Code = bitc::FUNC_CODE_INST_VAARG;
1292 Stream.EnterSubblock(bitc::VALUE_SYMTAB_BLOCK_ID, 4);
1322 Code = bitc::VST_CODE_BBENTRY;
1326 Code = bitc::VST_CODE_ENTRY;
1348 Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4);
1356 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals);
1392 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals);
1431 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1438 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_ENTRY));
1442 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1448 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_ENTRY));
1452 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1458 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_BBENTRY));
1462 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1471 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_SETTYPE));
1474 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1481 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_INTEGER));
1483 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1490 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CE_CAST));
1496 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1502 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_NULL));
1503 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1512 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_LOAD));
1516 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1522 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_BINOP));
1526 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1532 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_BINOP));
1537 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1543 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_CAST));
1548 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1555 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_RET));
1556 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1562 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_RET));
1564 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1570 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_UNREACHABLE));
1571 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1582 Stream.EnterSubblock(bitc::MODULE_BLOCK_ID, 3);
1588 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals);