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,
475 case Instruction::Trunc : return bitc::CAST_TRUNC; in getEncodedCastOpcode()
476 case Instruction::ZExt : return bitc::CAST_ZEXT; in getEncodedCastOpcode()
477 case Instruction::SExt : return bitc::CAST_SEXT; in getEncodedCastOpcode()
478 case Instruction::FPToUI : return bitc::CAST_FPTOUI; in getEncodedCastOpcode()
479 case Instruction::FPToSI : return bitc::CAST_FPTOSI; in getEncodedCastOpcode()
480 case Instruction::UIToFP : return bitc::CAST_UITOFP; in getEncodedCastOpcode()
481 case Instruction::SIToFP : return bitc::CAST_SITOFP; in getEncodedCastOpcode()
482 case Instruction::FPTrunc : return bitc::CAST_FPTRUNC; in getEncodedCastOpcode()
483 case Instruction::FPExt : return bitc::CAST_FPEXT; in getEncodedCastOpcode()
484 case Instruction::PtrToInt: return bitc::CAST_PTRTOINT; in getEncodedCastOpcode()
485 case Instruction::IntToPtr: return bitc::CAST_INTTOPTR; in getEncodedCastOpcode()
486 case Instruction::BitCast : return bitc::CAST_BITCAST; in getEncodedCastOpcode()
487 case Instruction::AddrSpaceCast: return bitc::CAST_ADDRSPACECAST; in getEncodedCastOpcode()
495 case Instruction::FAdd: return bitc::BINOP_ADD; in getEncodedBinaryOpcode()
497 case Instruction::FSub: return bitc::BINOP_SUB; in getEncodedBinaryOpcode()
499 case Instruction::FMul: return bitc::BINOP_MUL; in getEncodedBinaryOpcode()
500 case Instruction::UDiv: return bitc::BINOP_UDIV; in getEncodedBinaryOpcode()
502 case Instruction::SDiv: return bitc::BINOP_SDIV; in getEncodedBinaryOpcode()
503 case Instruction::URem: return bitc::BINOP_UREM; in getEncodedBinaryOpcode()
505 case Instruction::SRem: return bitc::BINOP_SREM; in getEncodedBinaryOpcode()
506 case Instruction::Shl: return bitc::BINOP_SHL; in getEncodedBinaryOpcode()
507 case Instruction::LShr: return bitc::BINOP_LSHR; in getEncodedBinaryOpcode()
508 case Instruction::AShr: return bitc::BINOP_ASHR; in getEncodedBinaryOpcode()
509 case Instruction::And: return bitc::BINOP_AND; in getEncodedBinaryOpcode()
510 case Instruction::Or: return bitc::BINOP_OR; in getEncodedBinaryOpcode()
511 case Instruction::Xor: return bitc::BINOP_XOR; in getEncodedBinaryOpcode()
518 case AtomicRMWInst::Xchg: return bitc::RMW_XCHG; in getEncodedRMWOperation()
519 case AtomicRMWInst::Add: return bitc::RMW_ADD; in getEncodedRMWOperation()
520 case AtomicRMWInst::Sub: return bitc::RMW_SUB; in getEncodedRMWOperation()
521 case AtomicRMWInst::And: return bitc::RMW_AND; in getEncodedRMWOperation()
522 case AtomicRMWInst::Nand: return bitc::RMW_NAND; in getEncodedRMWOperation()
523 case AtomicRMWInst::Or: return bitc::RMW_OR; in getEncodedRMWOperation()
524 case AtomicRMWInst::Xor: return bitc::RMW_XOR; in getEncodedRMWOperation()
525 case AtomicRMWInst::Max: return bitc::RMW_MAX; in getEncodedRMWOperation()
526 case AtomicRMWInst::Min: return bitc::RMW_MIN; in getEncodedRMWOperation()
527 case AtomicRMWInst::UMax: return bitc::RMW_UMAX; in getEncodedRMWOperation()
528 case AtomicRMWInst::UMin: return bitc::RMW_UMIN; in getEncodedRMWOperation()
534 case AtomicOrdering::NotAtomic: return bitc::ORDERING_NOTATOMIC; in getEncodedOrdering()
535 case AtomicOrdering::Unordered: return bitc::ORDERING_UNORDERED; in getEncodedOrdering()
536 case AtomicOrdering::Monotonic: return bitc::ORDERING_MONOTONIC; in getEncodedOrdering()
537 case AtomicOrdering::Acquire: return bitc::ORDERING_ACQUIRE; in getEncodedOrdering()
538 case AtomicOrdering::Release: return bitc::ORDERING_RELEASE; in getEncodedOrdering()
539 case AtomicOrdering::AcquireRelease: return bitc::ORDERING_ACQREL; in getEncodedOrdering()
540 case AtomicOrdering::SequentiallyConsistent: return bitc::ORDERING_SEQCST; in getEncodedOrdering()
547 case SingleThread: return bitc::SYNCHSCOPE_SINGLETHREAD; in getEncodedSynchScope()
548 case CrossThread: return bitc::SYNCHSCOPE_CROSSTHREAD; in getEncodedSynchScope()
571 return bitc::ATTR_KIND_ALIGNMENT; in getAttrKindEncoding()
573 return bitc::ATTR_KIND_ALLOC_SIZE; in getAttrKindEncoding()
575 return bitc::ATTR_KIND_ALWAYS_INLINE; in getAttrKindEncoding()
577 return bitc::ATTR_KIND_ARGMEMONLY; in getAttrKindEncoding()
579 return bitc::ATTR_KIND_BUILTIN; in getAttrKindEncoding()
581 return bitc::ATTR_KIND_BY_VAL; in getAttrKindEncoding()
583 return bitc::ATTR_KIND_CONVERGENT; in getAttrKindEncoding()
585 return bitc::ATTR_KIND_IN_ALLOCA; in getAttrKindEncoding()
587 return bitc::ATTR_KIND_COLD; in getAttrKindEncoding()
589 return bitc::ATTR_KIND_INACCESSIBLEMEM_ONLY; in getAttrKindEncoding()
591 return bitc::ATTR_KIND_INACCESSIBLEMEM_OR_ARGMEMONLY; in getAttrKindEncoding()
593 return bitc::ATTR_KIND_INLINE_HINT; in getAttrKindEncoding()
595 return bitc::ATTR_KIND_IN_REG; in getAttrKindEncoding()
597 return bitc::ATTR_KIND_JUMP_TABLE; in getAttrKindEncoding()
599 return bitc::ATTR_KIND_MIN_SIZE; in getAttrKindEncoding()
601 return bitc::ATTR_KIND_NAKED; in getAttrKindEncoding()
603 return bitc::ATTR_KIND_NEST; in getAttrKindEncoding()
605 return bitc::ATTR_KIND_NO_ALIAS; in getAttrKindEncoding()
607 return bitc::ATTR_KIND_NO_BUILTIN; in getAttrKindEncoding()
609 return bitc::ATTR_KIND_NO_CAPTURE; in getAttrKindEncoding()
611 return bitc::ATTR_KIND_NO_DUPLICATE; in getAttrKindEncoding()
613 return bitc::ATTR_KIND_NO_IMPLICIT_FLOAT; in getAttrKindEncoding()
615 return bitc::ATTR_KIND_NO_INLINE; in getAttrKindEncoding()
617 return bitc::ATTR_KIND_NO_RECURSE; in getAttrKindEncoding()
619 return bitc::ATTR_KIND_NON_LAZY_BIND; in getAttrKindEncoding()
621 return bitc::ATTR_KIND_NON_NULL; in getAttrKindEncoding()
623 return bitc::ATTR_KIND_DEREFERENCEABLE; in getAttrKindEncoding()
625 return bitc::ATTR_KIND_DEREFERENCEABLE_OR_NULL; in getAttrKindEncoding()
627 return bitc::ATTR_KIND_NO_RED_ZONE; in getAttrKindEncoding()
629 return bitc::ATTR_KIND_NO_RETURN; in getAttrKindEncoding()
631 return bitc::ATTR_KIND_NO_UNWIND; in getAttrKindEncoding()
633 return bitc::ATTR_KIND_OPTIMIZE_FOR_SIZE; in getAttrKindEncoding()
635 return bitc::ATTR_KIND_OPTIMIZE_NONE; in getAttrKindEncoding()
637 return bitc::ATTR_KIND_READ_NONE; in getAttrKindEncoding()
639 return bitc::ATTR_KIND_READ_ONLY; in getAttrKindEncoding()
641 return bitc::ATTR_KIND_RETURNED; in getAttrKindEncoding()
643 return bitc::ATTR_KIND_RETURNS_TWICE; in getAttrKindEncoding()
645 return bitc::ATTR_KIND_S_EXT; in getAttrKindEncoding()
647 return bitc::ATTR_KIND_STACK_ALIGNMENT; in getAttrKindEncoding()
649 return bitc::ATTR_KIND_STACK_PROTECT; in getAttrKindEncoding()
651 return bitc::ATTR_KIND_STACK_PROTECT_REQ; in getAttrKindEncoding()
653 return bitc::ATTR_KIND_STACK_PROTECT_STRONG; in getAttrKindEncoding()
655 return bitc::ATTR_KIND_SAFESTACK; in getAttrKindEncoding()
657 return bitc::ATTR_KIND_STRUCT_RET; in getAttrKindEncoding()
659 return bitc::ATTR_KIND_SANITIZE_ADDRESS; in getAttrKindEncoding()
661 return bitc::ATTR_KIND_SANITIZE_THREAD; in getAttrKindEncoding()
663 return bitc::ATTR_KIND_SANITIZE_MEMORY; in getAttrKindEncoding()
665 return bitc::ATTR_KIND_SWIFT_ERROR; in getAttrKindEncoding()
667 return bitc::ATTR_KIND_SWIFT_SELF; in getAttrKindEncoding()
669 return bitc::ATTR_KIND_UW_TABLE; in getAttrKindEncoding()
671 return bitc::ATTR_KIND_WRITEONLY; in getAttrKindEncoding()
673 return bitc::ATTR_KIND_Z_EXT; in getAttrKindEncoding()
687 Stream.EnterSubblock(bitc::PARAMATTR_GROUP_BLOCK_ID, 3); in writeAttributeGroupTable()
722 Stream.EmitRecord(bitc::PARAMATTR_GRP_CODE_ENTRY, Record); in writeAttributeGroupTable()
734 Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3); in writeAttributeTable()
742 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record); in writeAttributeTable()
753 Stream.EnterSubblock(bitc::TYPE_BLOCK_ID_NEW, 4 /*count from # abbrevs */); in writeTypeTable()
760 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_POINTER)); in writeTypeTable()
767 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_FUNCTION)); in writeTypeTable()
776 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_ANON)); in writeTypeTable()
785 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_NAME)); in writeTypeTable()
792 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_STRUCT_NAMED)); in writeTypeTable()
801 Abbv->Add(BitCodeAbbrevOp(bitc::TYPE_CODE_ARRAY)); in writeTypeTable()
809 Stream.EmitRecord(bitc::TYPE_CODE_NUMENTRY, TypeVals); in writeTypeTable()
819 case Type::VoidTyID: Code = bitc::TYPE_CODE_VOID; break; in writeTypeTable()
820 case Type::HalfTyID: Code = bitc::TYPE_CODE_HALF; break; in writeTypeTable()
821 case Type::FloatTyID: Code = bitc::TYPE_CODE_FLOAT; break; in writeTypeTable()
822 case Type::DoubleTyID: Code = bitc::TYPE_CODE_DOUBLE; break; in writeTypeTable()
823 case Type::X86_FP80TyID: Code = bitc::TYPE_CODE_X86_FP80; break; in writeTypeTable()
824 case Type::FP128TyID: Code = bitc::TYPE_CODE_FP128; break; in writeTypeTable()
825 case Type::PPC_FP128TyID: Code = bitc::TYPE_CODE_PPC_FP128; break; in writeTypeTable()
826 case Type::LabelTyID: Code = bitc::TYPE_CODE_LABEL; break; in writeTypeTable()
827 case Type::MetadataTyID: Code = bitc::TYPE_CODE_METADATA; break; in writeTypeTable()
828 case Type::X86_MMXTyID: Code = bitc::TYPE_CODE_X86_MMX; break; in writeTypeTable()
829 case Type::TokenTyID: Code = bitc::TYPE_CODE_TOKEN; break; in writeTypeTable()
832 Code = bitc::TYPE_CODE_INTEGER; in writeTypeTable()
838 Code = bitc::TYPE_CODE_POINTER; in writeTypeTable()
848 Code = bitc::TYPE_CODE_FUNCTION; in writeTypeTable()
866 Code = bitc::TYPE_CODE_STRUCT_ANON; in writeTypeTable()
870 Code = bitc::TYPE_CODE_OPAQUE; in writeTypeTable()
872 Code = bitc::TYPE_CODE_STRUCT_NAMED; in writeTypeTable()
878 writeStringRecord(bitc::TYPE_CODE_STRUCT_NAME, ST->getName(), in writeTypeTable()
886 Code = bitc::TYPE_CODE_ARRAY; in writeTypeTable()
895 Code = bitc::TYPE_CODE_VECTOR; in writeTypeTable()
988 return bitc::COMDAT_SELECTION_KIND_ANY; in getEncodedComdatSelectionKind()
990 return bitc::COMDAT_SELECTION_KIND_EXACT_MATCH; in getEncodedComdatSelectionKind()
992 return bitc::COMDAT_SELECTION_KIND_LARGEST; in getEncodedComdatSelectionKind()
994 return bitc::COMDAT_SELECTION_KIND_NO_DUPLICATES; in getEncodedComdatSelectionKind()
996 return bitc::COMDAT_SELECTION_KIND_SAME_SIZE; in getEncodedComdatSelectionKind()
1020 Stream.EmitRecord(bitc::MODULE_CODE_COMDAT, Vals, /*AbbrevToUse=*/0); in writeComdats()
1034 Abbv->Add(BitCodeAbbrevOp(bitc::MODULE_CODE_VSTOFFSET)); in writeValueSymbolTableForwardDecl()
1042 uint64_t Vals[] = {bitc::MODULE_CODE_VSTOFFSET, 0}; in writeValueSymbolTableForwardDecl()
1075 writeStringRecord(bitc::MODULE_CODE_TRIPLE, M.getTargetTriple(), in writeModuleInfo()
1079 writeStringRecord(bitc::MODULE_CODE_DATALAYOUT, DL, 0 /*TODO*/); in writeModuleInfo()
1081 writeStringRecord(bitc::MODULE_CODE_ASM, M.getModuleInlineAsm(), in writeModuleInfo()
1097 writeStringRecord(bitc::MODULE_CODE_SECTIONNAME, GV.getSection(), in writeModuleInfo()
1109 writeStringRecord(bitc::MODULE_CODE_SECTIONNAME, F.getSection(), in writeModuleInfo()
1118 writeStringRecord(bitc::MODULE_CODE_GCNAME, F.getGC(), 0 /*TODO*/); in writeModuleInfo()
1129 Abbv->Add(BitCodeAbbrevOp(bitc::MODULE_CODE_GLOBALVAR)); in writeModuleInfo()
1185 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in writeModuleInfo()
1214 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in writeModuleInfo()
1231 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse); in writeModuleInfo()
1243 Stream.EmitRecord(bitc::MODULE_CODE_IFUNC, Vals); in writeModuleInfo()
1259 Abbv->Add(BitCodeAbbrevOp(bitc::MODULE_CODE_SOURCE_FILENAME)); in writeModuleInfo()
1268 Stream.EmitRecord(bitc::MODULE_CODE_SOURCE_FILENAME, Vals, FilenameAbbrev); in writeModuleInfo()
1283 Flags |= 1 << bitc::OBO_NO_SIGNED_WRAP; in getOptimizationFlags()
1285 Flags |= 1 << bitc::OBO_NO_UNSIGNED_WRAP; in getOptimizationFlags()
1288 Flags |= 1 << bitc::PEO_EXACT; in getOptimizationFlags()
1311 Stream.EmitRecord(bitc::METADATA_VALUE, Record, 0); in writeValueAsMetadata()
1324 Stream.EmitRecord(N->isDistinct() ? bitc::METADATA_DISTINCT_NODE in writeMDTuple()
1325 : bitc::METADATA_NODE, in writeMDTuple()
1334 Abbv->Add(BitCodeAbbrevOp(bitc::METADATA_LOCATION)); in createDILocationAbbrev()
1355 Stream.EmitRecord(bitc::METADATA_LOCATION, Record, Abbrev); in writeDILocation()
1363 Abbv->Add(BitCodeAbbrevOp(bitc::METADATA_GENERIC_DEBUG)); in createGenericDINodeAbbrev()
1386 Stream.EmitRecord(bitc::METADATA_GENERIC_DEBUG, Record, Abbrev); in writeGenericDINode()
1402 Stream.EmitRecord(bitc::METADATA_SUBRANGE, Record, Abbrev); in writeDISubrange()
1413 Stream.EmitRecord(bitc::METADATA_ENUMERATOR, Record, Abbrev); in writeDIEnumerator()
1427 Stream.EmitRecord(bitc::METADATA_BASIC_TYPE, Record, Abbrev); in writeDIBasicType()
1447 Stream.EmitRecord(bitc::METADATA_DERIVED_TYPE, Record, Abbrev); in writeDIDerivedType()
1472 Stream.EmitRecord(bitc::METADATA_COMPOSITE_TYPE, Record, Abbrev); in writeDICompositeType()
1485 Stream.EmitRecord(bitc::METADATA_SUBROUTINE_TYPE, Record, Abbrev); in writeDISubroutineType()
1496 Stream.EmitRecord(bitc::METADATA_FILE, Record, Abbrev); in writeDIFile()
1521 Stream.EmitRecord(bitc::METADATA_COMPILE_UNIT, Record, Abbrev); in writeDICompileUnit()
1550 Stream.EmitRecord(bitc::METADATA_SUBPROGRAM, Record, Abbrev); in writeDISubprogram()
1563 Stream.EmitRecord(bitc::METADATA_LEXICAL_BLOCK, Record, Abbrev); in writeDILexicalBlock()
1575 Stream.EmitRecord(bitc::METADATA_LEXICAL_BLOCK_FILE, Record, Abbrev); in writeDILexicalBlockFile()
1588 Stream.EmitRecord(bitc::METADATA_NAMESPACE, Record, Abbrev); in writeDINamespace()
1601 Stream.EmitRecord(bitc::METADATA_MACRO, Record, Abbrev); in writeDIMacro()
1614 Stream.EmitRecord(bitc::METADATA_MACRO_FILE, Record, Abbrev); in writeDIMacroFile()
1625 Stream.EmitRecord(bitc::METADATA_MODULE, Record, Abbrev); in writeDIModule()
1636 Stream.EmitRecord(bitc::METADATA_TEMPLATE_TYPE, Record, Abbrev); in writeDITemplateTypeParameter()
1649 Stream.EmitRecord(bitc::METADATA_TEMPLATE_VALUE, Record, Abbrev); in writeDITemplateValueParameter()
1668 Stream.EmitRecord(bitc::METADATA_GLOBAL_VAR, Record, Abbrev); in writeDIGlobalVariable()
1684 Stream.EmitRecord(bitc::METADATA_LOCAL_VAR, Record, Abbrev); in writeDILocalVariable()
1696 Stream.EmitRecord(bitc::METADATA_EXPRESSION, Record, Abbrev); in writeDIExpression()
1712 Stream.EmitRecord(bitc::METADATA_OBJC_PROPERTY, Record, Abbrev); in writeDIObjCProperty()
1726 Stream.EmitRecord(bitc::METADATA_IMPORTED_ENTITY, Record, Abbrev); in writeDIImportedEntity()
1732 Abbv->Add(BitCodeAbbrevOp(bitc::METADATA_NAME)); in createNamedMetadataAbbrev()
1748 Stream.EmitRecord(bitc::METADATA_NAME, Record, Abbrev); in writeNamedMetadata()
1754 Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0); in writeNamedMetadata()
1761 Abbv->Add(BitCodeAbbrevOp(bitc::METADATA_STRINGS)); in createMetadataStringsAbbrev()
1778 Record.push_back(bitc::METADATA_STRINGS); in writeMetadataStrings()
1833 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in writeModuleMetadata()
1843 Stream.EmitRecord(bitc::METADATA_GLOBAL_DECL_ATTACHMENT, Record); in writeModuleMetadata()
1861 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in writeFunctionMetadata()
1880 Stream.EnterSubblock(bitc::METADATA_ATTACHMENT_ID, 3); in writeFunctionMetadataAttachment()
1886 Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0); in writeFunctionMetadataAttachment()
1907 Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0); in writeFunctionMetadataAttachment()
1924 Stream.EnterSubblock(bitc::METADATA_KIND_BLOCK_ID, 3); in writeModuleMetadataKinds()
1931 Stream.EmitRecord(bitc::METADATA_KIND, Record, 0); in writeModuleMetadataKinds()
1951 Stream.EnterSubblock(bitc::OPERAND_BUNDLE_TAGS_BLOCK_ID, 3); in writeOperandBundleTags()
1958 Stream.EmitRecord(bitc::OPERAND_BUNDLE_TAG, Record, 0); in writeOperandBundleTags()
1976 Stream.EnterSubblock(bitc::CONSTANTS_BLOCK_ID, 4); in writeConstants()
1986 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_AGGREGATE)); in writeConstants()
1993 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_STRING)); in writeConstants()
1999 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CSTRING)); in writeConstants()
2005 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CSTRING)); in writeConstants()
2021 Stream.EmitRecord(bitc::CST_CODE_SETTYPE, Record, in writeConstants()
2040 Stream.EmitRecord(bitc::CST_CODE_INLINEASM, Record); in writeConstants()
2048 Code = bitc::CST_CODE_NULL; in writeConstants()
2050 Code = bitc::CST_CODE_UNDEF; in writeConstants()
2055 Code = bitc::CST_CODE_INTEGER; in writeConstants()
2067 Code = bitc::CST_CODE_WIDE_INTEGER; in writeConstants()
2070 Code = bitc::CST_CODE_FLOAT; in writeConstants()
2096 Code = bitc::CST_CODE_CSTRING; in writeConstants()
2099 Code = bitc::CST_CODE_STRING; in writeConstants()
2102 bool isCStr7 = Code == bitc::CST_CODE_CSTRING; in writeConstants()
2103 bool isCStrChar6 = Code == bitc::CST_CODE_CSTRING; in writeConstants()
2118 Code = bitc::CST_CODE_DATA; in writeConstants()
2129 Code = bitc::CST_CODE_AGGREGATE; in writeConstants()
2137 Code = bitc::CST_CODE_CE_CAST; in writeConstants()
2144 Code = bitc::CST_CODE_CE_BINOP; in writeConstants()
2154 Code = bitc::CST_CODE_CE_GEP; in writeConstants()
2157 Code = bitc::CST_CODE_CE_INBOUNDS_GEP; in writeConstants()
2166 Code = bitc::CST_CODE_CE_SELECT; in writeConstants()
2172 Code = bitc::CST_CODE_CE_EXTRACTELT; in writeConstants()
2179 Code = bitc::CST_CODE_CE_INSERTELT; in writeConstants()
2191 Code = bitc::CST_CODE_CE_SHUFFLEVEC; in writeConstants()
2193 Code = bitc::CST_CODE_CE_SHUFVEC_EX; in writeConstants()
2202 Code = bitc::CST_CODE_CE_CMP; in writeConstants()
2210 Code = bitc::CST_CODE_BLOCKADDRESS; in writeConstants()
2272 Stream.EmitRecord(bitc::FUNC_CODE_OPERAND_BUNDLE, Record); in writeOperandBundles()
2302 Code = bitc::FUNC_CODE_INST_CAST; in writeInstruction()
2309 Code = bitc::FUNC_CODE_INST_BINOP; in writeInstruction()
2324 Code = bitc::FUNC_CODE_INST_GEP; in writeInstruction()
2334 Code = bitc::FUNC_CODE_INST_EXTRACTVAL; in writeInstruction()
2341 Code = bitc::FUNC_CODE_INST_INSERTVAL; in writeInstruction()
2349 Code = bitc::FUNC_CODE_INST_VSELECT; in writeInstruction()
2355 Code = bitc::FUNC_CODE_INST_EXTRACTELT; in writeInstruction()
2360 Code = bitc::FUNC_CODE_INST_INSERTELT; in writeInstruction()
2366 Code = bitc::FUNC_CODE_INST_SHUFFLEVEC; in writeInstruction()
2374 Code = bitc::FUNC_CODE_INST_CMP2; in writeInstruction()
2386 Code = bitc::FUNC_CODE_INST_RET; in writeInstruction()
2401 Code = bitc::FUNC_CODE_INST_BR; in writeInstruction()
2412 Code = bitc::FUNC_CODE_INST_SWITCH; in writeInstruction()
2424 Code = bitc::FUNC_CODE_INST_INDIRECTBR; in writeInstruction()
2440 Code = bitc::FUNC_CODE_INST_INVOKE; in writeInstruction()
2462 Code = bitc::FUNC_CODE_INST_RESUME; in writeInstruction()
2466 Code = bitc::FUNC_CODE_INST_CLEANUPRET; in writeInstruction()
2474 Code = bitc::FUNC_CODE_INST_CATCHRET; in writeInstruction()
2483 Code = isa<CatchPadInst>(FuncletPad) ? bitc::FUNC_CODE_INST_CATCHPAD in writeInstruction()
2484 : bitc::FUNC_CODE_INST_CLEANUPPAD; in writeInstruction()
2494 Code = bitc::FUNC_CODE_INST_CATCHSWITCH; in writeInstruction()
2509 Code = bitc::FUNC_CODE_INST_UNREACHABLE; in writeInstruction()
2515 Code = bitc::FUNC_CODE_INST_PHI; in writeInstruction()
2533 Code = bitc::FUNC_CODE_INST_LANDINGPAD; in writeInstruction()
2548 Code = bitc::FUNC_CODE_INST_ALLOCA; in writeInstruction()
2566 Code = bitc::FUNC_CODE_INST_LOADATOMIC; in writeInstruction()
2569 Code = bitc::FUNC_CODE_INST_LOAD; in writeInstruction()
2583 Code = bitc::FUNC_CODE_INST_STOREATOMIC; in writeInstruction()
2585 Code = bitc::FUNC_CODE_INST_STORE; in writeInstruction()
2596 Code = bitc::FUNC_CODE_INST_CMPXCHG; in writeInstruction()
2610 Code = bitc::FUNC_CODE_INST_ATOMICRMW; in writeInstruction()
2621 Code = bitc::FUNC_CODE_INST_FENCE; in writeInstruction()
2632 Code = bitc::FUNC_CODE_INST_CALL; in writeInstruction()
2637 Vals.push_back(CI.getCallingConv() << bitc::CALL_CCONV | in writeInstruction()
2638 unsigned(CI.isTailCall()) << bitc::CALL_TAIL | in writeInstruction()
2639 unsigned(CI.isMustTailCall()) << bitc::CALL_MUSTTAIL | in writeInstruction()
2640 1 << bitc::CALL_EXPLICIT_TYPE | in writeInstruction()
2641 unsigned(CI.isNoTailCall()) << bitc::CALL_NOTAIL | in writeInstruction()
2642 unsigned(Flags != 0) << bitc::CALL_FMF); in writeInstruction()
2667 Code = bitc::FUNC_CODE_INST_VAARG; in writeInstruction()
2703 Stream.EnterSubblock(bitc::VALUE_SYMTAB_BLOCK_ID, 4); in writeValueSymbolTable()
2713 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_FNENTRY)); in writeValueSymbolTable()
2722 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_FNENTRY)); in writeValueSymbolTable()
2731 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_FNENTRY)); in writeValueSymbolTable()
2765 Code = bitc::VST_CODE_BBENTRY; in writeValueSymbolTable()
2781 Code = bitc::VST_CODE_FNENTRY; in writeValueSymbolTable()
2788 Code = bitc::VST_CODE_ENTRY; in writeValueSymbolTable()
2815 Stream.EnterSubblock(bitc::VALUE_SYMTAB_BLOCK_ID, 4); in writeCombinedValueSymbolTable()
2818 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_COMBINED_ENTRY)); in writeCombinedValueSymbolTable()
2830 Stream.EmitRecord(bitc::VST_CODE_COMBINED_ENTRY, NameVals, EntryAbbrev); in writeCombinedValueSymbolTable()
2840 Code = bitc::USELIST_CODE_BB; in writeUseList()
2842 Code = bitc::USELIST_CODE_DEFAULT; in writeUseList()
2860 Stream.EnterSubblock(bitc::USELIST_BLOCK_ID, 3); in writeUseListBlock()
2876 Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4); in writeFunction()
2884 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in writeFunction()
2920 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in writeFunction()
2928 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); in writeFunction()
2958 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, Abbv) != in writeBlockInfo()
2965 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_ENTRY)); in writeBlockInfo()
2969 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, Abbv) != in writeBlockInfo()
2975 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_ENTRY)); in writeBlockInfo()
2979 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, Abbv) != in writeBlockInfo()
2985 Abbv->Add(BitCodeAbbrevOp(bitc::VST_CODE_BBENTRY)); in writeBlockInfo()
2989 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, Abbv) != in writeBlockInfo()
2998 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_SETTYPE)); in writeBlockInfo()
3001 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, Abbv) != in writeBlockInfo()
3008 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_INTEGER)); in writeBlockInfo()
3010 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, Abbv) != in writeBlockInfo()
3017 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_CE_CAST)); in writeBlockInfo()
3023 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, Abbv) != in writeBlockInfo()
3029 Abbv->Add(BitCodeAbbrevOp(bitc::CST_CODE_NULL)); in writeBlockInfo()
3030 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, Abbv) != in writeBlockInfo()
3039 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_LOAD)); in writeBlockInfo()
3045 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3051 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_BINOP)); in writeBlockInfo()
3055 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3061 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_BINOP)); in writeBlockInfo()
3066 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3072 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_CAST)); in writeBlockInfo()
3077 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3084 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_RET)); in writeBlockInfo()
3085 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3091 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_RET)); in writeBlockInfo()
3093 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3099 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_UNREACHABLE)); in writeBlockInfo()
3100 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3106 Abbv->Add(BitCodeAbbrevOp(bitc::FUNC_CODE_INST_GEP)); in writeBlockInfo()
3112 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, Abbv) != in writeBlockInfo()
3123 Stream.EnterSubblock(bitc::MODULE_STRTAB_BLOCK_ID, 3); in writeModStrings()
3129 Abbv->Add(BitCodeAbbrevOp(bitc::MST_CODE_ENTRY)); in writeModStrings()
3137 Abbv->Add(BitCodeAbbrevOp(bitc::MST_CODE_ENTRY)); in writeModStrings()
3145 Abbv->Add(BitCodeAbbrevOp(bitc::MST_CODE_ENTRY)); in writeModStrings()
3153 Abbv->Add(BitCodeAbbrevOp(bitc::MST_CODE_HASH)); in writeModStrings()
3179 Stream.EmitRecord(bitc::MST_CODE_ENTRY, Vals, AbbrevToUse); in writeModStrings()
3192 Stream.EmitRecord(bitc::MST_CODE_HASH, Vals, AbbrevHash); in writeModStrings()
3237 (HasProfileData ? bitc::FS_PERMODULE_PROFILE : bitc::FS_PERMODULE); in writePerModuleFunctionSummaryRecord()
3264 Stream.EmitRecord(bitc::FS_PERMODULE_GLOBALVAR_INIT_REFS, NameVals, in writeModuleLevelReferences()
3280 Stream.EnterSubblock(bitc::GLOBALVAL_SUMMARY_BLOCK_ID, 4); in writePerModuleGlobalValueSummary()
3282 Stream.EmitRecord(bitc::FS_VERSION, ArrayRef<uint64_t>{INDEX_VERSION}); in writePerModuleGlobalValueSummary()
3286 Abbv->Add(BitCodeAbbrevOp(bitc::FS_PERMODULE)); in writePerModuleGlobalValueSummary()
3298 Abbv->Add(BitCodeAbbrevOp(bitc::FS_PERMODULE_PROFILE)); in writePerModuleGlobalValueSummary()
3310 Abbv->Add(BitCodeAbbrevOp(bitc::FS_PERMODULE_GLOBALVAR_INIT_REFS)); in writePerModuleGlobalValueSummary()
3319 Abbv->Add(BitCodeAbbrevOp(bitc::FS_ALIAS)); in writePerModuleGlobalValueSummary()
3356 Stream.EmitRecord(bitc::FS_ALIAS, NameVals, FSAliasAbbrev); in writePerModuleGlobalValueSummary()
3365 Stream.EnterSubblock(bitc::GLOBALVAL_SUMMARY_BLOCK_ID, 3); in writeCombinedGlobalValueSummary()
3366 Stream.EmitRecord(bitc::FS_VERSION, ArrayRef<uint64_t>{INDEX_VERSION}); in writeCombinedGlobalValueSummary()
3370 Abbv->Add(BitCodeAbbrevOp(bitc::FS_COMBINED)); in writeCombinedGlobalValueSummary()
3383 Abbv->Add(BitCodeAbbrevOp(bitc::FS_COMBINED_PROFILE)); in writeCombinedGlobalValueSummary()
3396 Abbv->Add(BitCodeAbbrevOp(bitc::FS_COMBINED_GLOBALVAR_INIT_REFS)); in writeCombinedGlobalValueSummary()
3406 Abbv->Add(BitCodeAbbrevOp(bitc::FS_COMBINED_ALIAS)); in writeCombinedGlobalValueSummary()
3428 Stream.EmitRecord(bitc::FS_COMBINED_ORIGINAL_NAME, NameVals); in writeCombinedGlobalValueSummary()
3456 Stream.EmitRecord(bitc::FS_COMBINED_GLOBALVAR_INIT_REFS, NameVals, in writeCombinedGlobalValueSummary()
3495 (HasProfileData ? bitc::FS_COMBINED_PROFILE : bitc::FS_COMBINED); in writeCombinedGlobalValueSummary()
3514 Stream.EmitRecord(bitc::FS_COMBINED_ALIAS, NameVals, FSAliasAbbrev); in writeCombinedGlobalValueSummary()
3523 Stream.EnterSubblock(bitc::IDENTIFICATION_BLOCK_ID, 5); in writeIdentificationBlock()
3527 Abbv->Add(BitCodeAbbrevOp(bitc::IDENTIFICATION_CODE_STRING)); in writeIdentificationBlock()
3531 writeStringRecord(bitc::IDENTIFICATION_CODE_STRING, in writeIdentificationBlock()
3536 Abbv->Add(BitCodeAbbrevOp(bitc::IDENTIFICATION_CODE_EPOCH)); in writeIdentificationBlock()
3539 SmallVector<unsigned, 1> Vals = {bitc::BITCODE_CURRENT_EPOCH}; in writeIdentificationBlock()
3540 Stream.EmitRecord(bitc::IDENTIFICATION_CODE_EPOCH, Vals, EpochAbbrev); in writeIdentificationBlock()
3562 Stream.EmitRecord(bitc::MODULE_CODE_HASH, Vals); in writeModuleHash()
3583 Stream.EnterSubblock(bitc::MODULE_BLOCK_ID, 3); in writeModule()
3589 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in writeModule()
3749 Stream.EnterSubblock(bitc::MODULE_BLOCK_ID, 3); in writeIndex()
3754 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in writeIndex()