Home | History | Annotate | Download | only in Writer

Lines Matching refs:bitc

45   VST_ENTRY_8_ABBREV = bitc::FIRST_APPLICATION_ABBREV,
51 CONSTANTS_SETTYPE_ABBREV = bitc::FIRST_APPLICATION_ABBREV,
57 FUNCTION_INST_LOAD_ABBREV = bitc::FIRST_APPLICATION_ABBREV,
72 case Instruction::Trunc : return bitc::CAST_TRUNC;
73 case Instruction::ZExt : return bitc::CAST_ZEXT;
74 case Instruction::SExt : return bitc::CAST_SEXT;
75 case Instruction::FPToUI : return bitc::CAST_FPTOUI;
76 case Instruction::FPToSI : return bitc::CAST_FPTOSI;
77 case Instruction::UIToFP : return bitc::CAST_UITOFP;
78 case Instruction::SIToFP : return bitc::CAST_SITOFP;
79 case Instruction::FPTrunc : return bitc::CAST_FPTRUNC;
80 case Instruction::FPExt : return bitc::CAST_FPEXT;
81 case Instruction::PtrToInt: return bitc::CAST_PTRTOINT;
82 case Instruction::IntToPtr: return bitc::CAST_INTTOPTR;
83 case Instruction::BitCast : return bitc::CAST_BITCAST;
91 case Instruction::FAdd: return bitc::BINOP_ADD;
93 case Instruction::FSub: return bitc::BINOP_SUB;
95 case Instruction::FMul: return bitc::BINOP_MUL;
96 case Instruction::UDiv: return bitc::BINOP_UDIV;
98 case Instruction::SDiv: return bitc::BINOP_SDIV;
99 case Instruction::URem: return bitc::BINOP_UREM;
101 case Instruction::SRem: return bitc::BINOP_SREM;
102 case Instruction::Shl: return bitc::BINOP_SHL;
103 case Instruction::LShr: return bitc::BINOP_LSHR;
104 case Instruction::AShr: return bitc::BINOP_ASHR;
105 case Instruction::And: return bitc::BINOP_AND;
106 case Instruction::Or: return bitc::BINOP_OR;
107 case Instruction::Xor: return bitc::BINOP_XOR;
114 case AtomicRMWInst::Xchg: return bitc::RMW_XCHG;
115 case AtomicRMWInst::Add: return bitc::RMW_ADD;
116 case AtomicRMWInst::Sub: return bitc::RMW_SUB;
117 case AtomicRMWInst::And: return bitc::RMW_AND;
118 case AtomicRMWInst::Nand: return bitc::RMW_NAND;
119 case AtomicRMWInst::Or: return bitc::RMW_OR;
120 case AtomicRMWInst::Xor: return bitc::RMW_XOR;
121 case AtomicRMWInst::Max: return bitc::RMW_MAX;
122 case AtomicRMWInst::Min: return bitc::RMW_MIN;
123 case AtomicRMWInst::UMax: return bitc::RMW_UMAX;
124 case AtomicRMWInst::UMin: return bitc::RMW_UMIN;
130 case NotAtomic: return bitc::ORDERING_NOTATOMIC;
131 case Unordered: return bitc::ORDERING_UNORDERED;
132 case Monotonic: return bitc::ORDERING_MONOTONIC;
133 case Acquire: return bitc::ORDERING_ACQUIRE;
134 case Release: return bitc::ORDERING_RELEASE;
135 case AcquireRelease: return bitc::ORDERING_ACQREL;
136 case SequentiallyConsistent: return bitc::ORDERING_SEQCST;
143 case SingleThread: return bitc::SYNCHSCOPE_SINGLETHREAD;
144 case CrossThread: return bitc::SYNCHSCOPE_CROSSTHREAD;
167 return bitc::ATTR_KIND_ALIGNMENT;
169 return bitc::ATTR_KIND_ALWAYS_INLINE;
171 return bitc::ATTR_KIND_BUILTIN;
173 return bitc::ATTR_KIND_BY_VAL;
175 return bitc::ATTR_KIND_COLD;
177 return bitc::ATTR_KIND_INLINE_HINT;
179 return bitc::ATTR_KIND_IN_REG;
181 return bitc::ATTR_KIND_MIN_SIZE;
183 return bitc::ATTR_KIND_NAKED;
185 return bitc::ATTR_KIND_NEST;
187 return bitc::ATTR_KIND_NO_ALIAS;
189 return bitc::ATTR_KIND_NO_BUILTIN;
191 return bitc::ATTR_KIND_NO_CAPTURE;
193 return bitc::ATTR_KIND_NO_DUPLICATE;
195 return bitc::ATTR_KIND_NO_IMPLICIT_FLOAT;
197 return bitc::ATTR_KIND_NO_INLINE;
199 return bitc::ATTR_KIND_NON_LAZY_BIND;
201 return bitc::ATTR_KIND_NO_RED_ZONE;
203 return bitc::ATTR_KIND_NO_RETURN;
205 return bitc::ATTR_KIND_NO_UNWIND;
207 return bitc::ATTR_KIND_OPTIMIZE_FOR_SIZE;
209 return bitc::ATTR_KIND_READ_NONE;
211 return bitc::ATTR_KIND_READ_ONLY;
213 return bitc::ATTR_KIND_RETURNED;
215 return bitc::ATTR_KIND_RETURNS_TWICE;
217 return bitc::ATTR_KIND_S_EXT;
219 return bitc::ATTR_KIND_STACK_ALIGNMENT;
221 return bitc::ATTR_KIND_STACK_PROTECT;
223 return bitc::ATTR_KIND_STACK_PROTECT_REQ;
225 return bitc::ATTR_KIND_STACK_PROTECT_STRONG;
227 return bitc::ATTR_KIND_STRUCT_RET;
229 return bitc::ATTR_KIND_SANITIZE_ADDRESS;
231 return bitc::ATTR_KIND_SANITIZE_THREAD;
233 return bitc::ATTR_KIND_SANITIZE_MEMORY;
235 return bitc::ATTR_KIND_UW_TABLE;
237 return bitc::ATTR_KIND_Z_EXT;
252 Stream.EnterSubblock(bitc::PARAMATTR_GROUP_BLOCK_ID, 3);
287 Stream.EmitRecord(bitc::PARAMATTR_GRP_CODE_ENTRY, Record);
300 Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3);
308 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record);
319 Stream.EnterSubblock(bitc::TYPE_BLOCK_ID_NEW, 4 /*count from # abbrevs */);
326 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_POINTER));
333 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_FUNCTION));
342 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_ANON));
351 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_NAME));
358 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_NAMED));
367 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_ARRAY));
375 Stream.EmitRecord(bitc::TYPE_CODE_NUMENTRY, TypeVals);
386 case Type::VoidTyID: Code = bitc::TYPE_CODE_VOID; break;
387 case Type::HalfTyID: Code = bitc::TYPE_CODE_HALF; break;
388 case Type::FloatTyID: Code = bitc::TYPE_CODE_FLOAT; break;
389 case Type::DoubleTyID: Code = bitc::TYPE_CODE_DOUBLE; break;
390 case Type::X86_FP80TyID: Code = bitc::TYPE_CODE_X86_FP80; break;
391 case Type::FP128TyID: Code = bitc::TYPE_CODE_FP128; break;
392 case Type::PPC_FP128TyID: Code = bitc::TYPE_CODE_PPC_FP128; break;
393 case Type::LabelTyID: Code = bitc::TYPE_CODE_LABEL; break;
394 case Type::MetadataTyID: Code = bitc::TYPE_CODE_METADATA; break;
395 case Type::X86_MMXTyID: Code = bitc::TYPE_CODE_X86_MMX; break;
398 Code = bitc::TYPE_CODE_INTEGER;
404 Code = bitc::TYPE_CODE_POINTER;
414 Code = bitc::TYPE_CODE_FUNCTION;
432 Code = bitc::TYPE_CODE_STRUCT_ANON;
436 Code = bitc::TYPE_CODE_OPAQUE;
438 Code = bitc::TYPE_CODE_STRUCT_NAMED;
444 WriteStringRecord(bitc::TYPE_CODE_STRUCT_NAME, ST->getName(),
452 Code = bitc::TYPE_CODE_ARRAY;
461 Code = bitc::TYPE_CODE_VECTOR;
524 WriteStringRecord(bitc::MODULE_CODE_TRIPLE, M->getTargetTriple(),
527 WriteStringRecord(bitc::MODULE_CODE_DATALAYOUT, M->getDataLayout(),
530 WriteStringRecord(bitc::MODULE_CODE_ASM, M->getModuleInlineAsm(),
547 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV->getSection(),
559 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, F->getSection(),
568 WriteStringRecord(bitc::MODULE_CODE_GCNAME, F->getGC(),
580 Abbv->Add(BitCodeAbbrevOp(bitc::MODULE_CODE_GLOBALVAR));
629 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse);
649 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse);
662 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse);
673 Flags |= 1 << bitc::OBO_NO_SIGNED_WRAP;
675 Flags |= 1 << bitc::OBO_NO_UNSIGNED_WRAP;
679 Flags |= 1 << bitc::PEO_EXACT;
710 unsigned MDCode = N->isFunctionLocal() ? bitc::METADATA_FN_NODE :
711 bitc::METADATA_NODE;
728 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
735 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
739 Abbv->Add(BitCodeAbbrevOp(bitc::METADATA_STRING));
750 Stream.EmitRecord(bitc::METADATA_STRING, Record, MDSAbbrev);
760 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
768 Stream.EmitRecord(bitc::METADATA_NAME, Record, 0/*TODO*/);
774 Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0);
792 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
805 Stream.EnterSubblock(bitc::METADATA_ATTACHMENT_ID, 3);
828 Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0);
845 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
852 Stream.EmitRecord(bitc::METADATA_KIND, Record, 0);
873 Code = bitc::CST_CODE_INTEGER;
890 Code = bitc::CST_CODE_WIDE_INTEGER;
899 Stream.EnterSubblock(bitc::CONSTANTS_BLOCK_ID, 4);
909 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_AGGREGATE));
916 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_STRING));
922 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CSTRING));
928 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CSTRING));
944 Stream.EmitRecord(bitc::CST_CODE_SETTYPE, Record,
965 Stream.EmitRecord(bitc::CST_CODE_INLINEASM, Record);
973 Code = bitc::CST_CODE_NULL;
975 Code = bitc::CST_CODE_UNDEF;
979 Code = bitc::CST_CODE_FLOAT;
1005 Code = bitc::CST_CODE_CSTRING;
1008 Code = bitc::CST_CODE_STRING;
1011 bool isCStr7 = Code == bitc::CST_CODE_CSTRING;
1012 bool isCStrChar6 = Code == bitc::CST_CODE_CSTRING;
1027 Code = bitc::CST_CODE_DATA;
1048 Code = bitc::CST_CODE_AGGREGATE;
1056 Code = bitc::CST_CODE_CE_CAST;
1063 Code = bitc::CST_CODE_CE_BINOP;
1073 Code = bitc::CST_CODE_CE_GEP;
1075 Code = bitc::CST_CODE_CE_INBOUNDS_GEP;
1082 Code = bitc::CST_CODE_CE_SELECT;
1088 Code = bitc::CST_CODE_CE_EXTRACTELT;
1094 Code = bitc::CST_CODE_CE_INSERTELT;
1105 Code = bitc::CST_CODE_CE_SHUFFLEVEC;
1107 Code = bitc::CST_CODE_CE_SHUFVEC_EX;
1116 Code = bitc::CST_CODE_CE_CMP;
1124 Code = bitc::CST_CODE_BLOCKADDRESS;
1210 Code = bitc::FUNC_CODE_INST_CAST;
1217 Code = bitc::FUNC_CODE_INST_BINOP;
1232 Code = bitc::FUNC_CODE_INST_GEP;
1234 Code = bitc::FUNC_CODE_INST_INBOUNDS_GEP;
1239 Code = bitc::FUNC_CODE_INST_EXTRACTVAL;
1247 Code = bitc::FUNC_CODE_INST_INSERTVAL;
1256 Code = bitc::FUNC_CODE_INST_VSELECT;
1262 Code = bitc::FUNC_CODE_INST_EXTRACTELT;
1267 Code = bitc::FUNC_CODE_INST_INSERTELT;
1273 Code = bitc::FUNC_CODE_INST_SHUFFLEVEC;
1281 Code = bitc::FUNC_CODE_INST_CMP2;
1289 Code = bitc
1304 Code = bitc::FUNC_CODE_INST_BR;
1319 Code = bitc::FUNC_CODE_INST_SWITCH;
1375 Code = bitc::FUNC_CODE_INST_INDIRECTBR;
1388 Code = bitc::FUNC_CODE_INST_INVOKE;
1409 Code = bitc::FUNC_CODE_INST_RESUME;
1413 Code = bitc::FUNC_CODE_INST_UNREACHABLE;
1419 Code = bitc::FUNC_CODE_INST_PHI;
1437 Code = bitc::FUNC_CODE_INST_LANDINGPAD;
1453 Code = bitc::FUNC_CODE_INST_ALLOCA;
1462 Code = bitc::FUNC_CODE_INST_LOADATOMIC;
1465 Code = bitc::FUNC_CODE_INST_LOAD;
1478 Code = bitc::FUNC_CODE_INST_STOREATOMIC;
1480 Code = bitc::FUNC_CODE_INST_STORE;
1491 Code = bitc::FUNC_CODE_INST_CMPXCHG;
1502 Code = bitc::FUNC_CODE_INST_ATOMICRMW;
1513 Code = bitc::FUNC_CODE_INST_FENCE;
1522 Code = bitc::FUNC_CODE_INST_CALL;
1546 Code = bitc::FUNC_CODE_INST_VAARG;
1562 Stream.EnterSubblock(bitc::VALUE_SYMTAB_BLOCK_ID, 4);
1592 Code = bitc::VST_CODE_BBENTRY;
1596 Code = bitc::VST_CODE_ENTRY;
1618 Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4);
1626 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals);
1662 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals);
1671 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals);
1700 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1707 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_ENTRY));
1711 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1717 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_ENTRY));
1721 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1727 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_BBENTRY));
1731 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1740 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_SETTYPE));
1743 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1750 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_INTEGER));
1752 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1759 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CE_CAST));
1765 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1771 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_NULL));
1772 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1781 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_LOAD));
1785 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1791 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_BINOP));
1795 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1801 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_BINOP));
1806 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1812 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_CAST));
1817 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1824 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_RET));
1825 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1831 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_RET));
1833 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1839 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_UNREACHABLE));
1840 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1908 Stream.EnterSubblock(bitc::USELIST_BLOCK_ID, 3);
1947 Stream.EnterSubblock(bitc::MODULE_BLOCK_ID, 3);
1952 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals);