LLVM 20.0.0git
LLVMBitCodes.h
Go to the documentation of this file.
1//===- LLVMBitCodes.h - Enum values for the LLVM bitcode format -*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This header defines Bitcode enum values for LLVM IR bitcode files.
10//
11// The enum values defined in this file should be considered permanent. If
12// new features are added, they should have values added at the end of the
13// respective lists.
14//
15//===----------------------------------------------------------------------===//
16
17#ifndef LLVM_BITCODE_LLVMBITCODES_H
18#define LLVM_BITCODE_LLVMBITCODES_H
19
20// This is the only file included, and it, in turn, is a leaf header.
21// This allows external tools to dump the AST of this file and analyze it for
22// changes without needing to fully or partially build LLVM itself.
24
25namespace llvm {
26namespace bitc {
27// The only top-level block types are MODULE, IDENTIFICATION, STRTAB and SYMTAB.
29 // Blocks
31
32 // Module sub-block id's.
35
38
39 // Block intended to contains information on the bitcode versioning.
40 // Can be used to provide better error messages when we fail to parse a
41 // bitcode file.
43
47
49
51
54
56
58
60
62
64
66};
67
68/// Identification block contains a string that describes the producer details,
69/// and an epoch that defines the auto-upgrade capability.
71 IDENTIFICATION_CODE_STRING = 1, // IDENTIFICATION: [strchr x N]
72 IDENTIFICATION_CODE_EPOCH = 2, // EPOCH: [epoch#]
73};
74
75/// The epoch that defines the auto-upgrade compatibility for the bitcode.
76///
77/// LLVM guarantees in a major release that a minor release can read bitcode
78/// generated by previous minor releases. We translate this by making the reader
79/// accepting only bitcode with the same epoch, except for the X.0 release which
80/// also accepts N-1.
82
83/// MODULE blocks have a number of optional fields and subblocks.
85 MODULE_CODE_VERSION = 1, // VERSION: [version#]
86 MODULE_CODE_TRIPLE = 2, // TRIPLE: [strchr x N]
87 MODULE_CODE_DATALAYOUT = 3, // DATALAYOUT: [strchr x N]
88 MODULE_CODE_ASM = 4, // ASM: [strchr x N]
89 MODULE_CODE_SECTIONNAME = 5, // SECTIONNAME: [strchr x N]
90
91 // Deprecated, but still needed to read old bitcode files.
92 MODULE_CODE_DEPLIB = 6, // DEPLIB: [strchr x N]
93
94 // GLOBALVAR: [pointer type, isconst, initid,
95 // linkage, alignment, section, visibility, threadlocal]
97
98 // FUNCTION: [type, callingconv, isproto, linkage, paramattrs, alignment,
99 // section, visibility, gc, unnamed_addr]
101
102 // ALIAS: [alias type, aliasee val#, linkage, visibility]
104
105 MODULE_CODE_GCNAME = 11, // GCNAME: [strchr x N]
106 MODULE_CODE_COMDAT = 12, // COMDAT: [selection_kind, name]
107
108 MODULE_CODE_VSTOFFSET = 13, // VSTOFFSET: [offset]
109
110 // ALIAS: [alias value type, addrspace, aliasee val#, linkage, visibility]
112
114
115 // SOURCE_FILENAME: [namechar x N]
117
118 // HASH: [5*i32]
120
121 // IFUNC: [ifunc value type, addrspace, resolver val#, linkage, visibility]
123};
124
125/// PARAMATTR blocks have code for defining a parameter attribute set.
127 // Deprecated, but still needed to read old bitcode files.
128 PARAMATTR_CODE_ENTRY_OLD = 1, // ENTRY: [paramidx0, attr0,
129 // paramidx1, attr1...]
130 PARAMATTR_CODE_ENTRY = 2, // ENTRY: [attrgrp0, attrgrp1, ...]
131 PARAMATTR_GRP_CODE_ENTRY = 3 // ENTRY: [grpid, idx, attr0, attr1, ...]
133
134/// TYPE blocks have codes for each type primitive they use.
136 TYPE_CODE_NUMENTRY = 1, // NUMENTRY: [numentries]
137
138 // Type Codes
139 TYPE_CODE_VOID = 2, // VOID
140 TYPE_CODE_FLOAT = 3, // FLOAT
141 TYPE_CODE_DOUBLE = 4, // DOUBLE
142 TYPE_CODE_LABEL = 5, // LABEL
143 TYPE_CODE_OPAQUE = 6, // OPAQUE
144 TYPE_CODE_INTEGER = 7, // INTEGER: [width]
145 TYPE_CODE_POINTER = 8, // POINTER: [pointee type]
146
147 TYPE_CODE_FUNCTION_OLD = 9, // FUNCTION: [vararg, attrid, retty,
148 // paramty x N]
149
150 TYPE_CODE_HALF = 10, // HALF
151
152 TYPE_CODE_ARRAY = 11, // ARRAY: [numelts, eltty]
153 TYPE_CODE_VECTOR = 12, // VECTOR: [numelts, eltty]
154
155 // These are not with the other floating point types because they're
156 // a late addition, and putting them in the right place breaks
157 // binary compatibility.
158 TYPE_CODE_X86_FP80 = 13, // X86 LONG DOUBLE
159 TYPE_CODE_FP128 = 14, // LONG DOUBLE (112 bit mantissa)
160 TYPE_CODE_PPC_FP128 = 15, // PPC LONG DOUBLE (2 doubles)
161
162 TYPE_CODE_METADATA = 16, // METADATA
163
164 TYPE_CODE_X86_MMX = 17, // X86 MMX
165
166 TYPE_CODE_STRUCT_ANON = 18, // STRUCT_ANON: [ispacked, eltty x N]
167 TYPE_CODE_STRUCT_NAME = 19, // STRUCT_NAME: [strchr x N]
168 TYPE_CODE_STRUCT_NAMED = 20, // STRUCT_NAMED: [ispacked, eltty x N]
169
170 TYPE_CODE_FUNCTION = 21, // FUNCTION: [vararg, retty, paramty x N]
171
172 TYPE_CODE_TOKEN = 22, // TOKEN
173
174 TYPE_CODE_BFLOAT = 23, // BRAIN FLOATING POINT
175 TYPE_CODE_X86_AMX = 24, // X86 AMX
176
177 TYPE_CODE_OPAQUE_POINTER = 25, // OPAQUE_POINTER: [addrspace]
178
179 TYPE_CODE_TARGET_TYPE = 26, // TARGET_TYPE
180};
181
183 OPERAND_BUNDLE_TAG = 1, // TAG: [strchr x N]
184};
185
188};
189
190// Value symbol table codes.
192 VST_CODE_ENTRY = 1, // VST_ENTRY: [valueid, namechar x N]
193 VST_CODE_BBENTRY = 2, // VST_BBENTRY: [bbid, namechar x N]
194 VST_CODE_FNENTRY = 3, // VST_FNENTRY: [valueid, offset, namechar x N]
195 // VST_COMBINED_ENTRY: [valueid, refguid]
198
199// The module path symbol table only has one code (MST_CODE_ENTRY).
201 MST_CODE_ENTRY = 1, // MST_ENTRY: [modid, namechar x N]
202 MST_CODE_HASH = 2, // MST_HASH: [5*i32]
203};
204
205// The summary section uses different codes in the per-module
206// and combined index cases.
208 // PERMODULE: [valueid, flags, instcount, numrefs, numrefs x valueid,
209 // n x (valueid)]
211 // PERMODULE_PROFILE: [valueid, flags, instcount, numrefs,
212 // numrefs x valueid,
213 // n x (valueid, hotness+tailcall)]
215 // PERMODULE_GLOBALVAR_INIT_REFS: [valueid, flags, n x valueid]
217 // COMBINED: [valueid, modid, flags, instcount, numrefs, numrefs x valueid,
218 // n x (valueid)]
220 // COMBINED_PROFILE: [valueid, modid, flags, instcount, numrefs,
221 // numrefs x valueid,
222 // n x (valueid, hotness+tailcall)]
224 // COMBINED_GLOBALVAR_INIT_REFS: [valueid, modid, flags, n x valueid]
226 // ALIAS: [valueid, flags, valueid]
228 // COMBINED_ALIAS: [valueid, modid, flags, valueid]
230 // COMBINED_ORIGINAL_NAME: [original_name_hash]
232 // VERSION of the summary, bumped when adding flags for instance.
234 // The list of llvm.type.test type identifiers used by the following function
235 // that are used other than by an llvm.assume.
236 // [n x typeid]
238 // The list of virtual calls made by this function using
239 // llvm.assume(llvm.type.test) intrinsics that do not have all constant
240 // integer arguments.
241 // [n x (typeid, offset)]
243 // The list of virtual calls made by this function using
244 // llvm.type.checked.load intrinsics that do not have all constant integer
245 // arguments.
246 // [n x (typeid, offset)]
248 // Identifies a virtual call made by this function using an
249 // llvm.assume(llvm.type.test) intrinsic with all constant integer arguments.
250 // [typeid, offset, n x arg]
252 // Identifies a virtual call made by this function using an
253 // llvm.type.checked.load intrinsic with all constant integer arguments.
254 // [typeid, offset, n x arg]
256 // Assigns a GUID to a value ID. This normally appears only in combined
257 // summaries, but it can also appear in per-module summaries for PGO data.
258 // [valueid, guid]
260 // The list of local functions with CFI jump tables. Function names are
261 // strings in strtab.
262 // [n * name]
264 // The list of external functions with CFI jump tables. Function names are
265 // strings in strtab.
266 // [n * name]
268 // Per-module summary that also adds relative block frequency to callee info.
269 // PERMODULE_RELBF: [valueid, flags, instcount, numrefs,
270 // numrefs x valueid,
271 // n x (valueid, relblockfreq+tailcall)]
273 // Index-wide flags
275 // Maps type identifier to summary information for that type identifier.
276 // Produced by the thin link (only lives in combined index).
277 // TYPE_ID: [typeid, kind, bitwidth, align, size, bitmask, inlinebits,
278 // n x (typeid, kind, name, numrba,
279 // numrba x (numarg, numarg x arg, kind, info, byte, bit))]
281 // For background see overview at https://llvm.org/docs/TypeMetadata.html.
282 // The type metadata includes both the type identifier and the offset of
283 // the address point of the type (the address held by objects of that type
284 // which may not be the beginning of the virtual table). Vtable definitions
285 // are decorated with type metadata for the types they are compatible with.
286 //
287 // Maps type identifier to summary information for that type identifier
288 // computed from type metadata: the valueid of each vtable definition
289 // decorated with a type metadata for that identifier, and the offset from
290 // the corresponding type metadata.
291 // Exists in the per-module summary to provide information to thin link
292 // for index-based whole program devirtualization.
293 // TYPE_ID_METADATA: [typeid, n x (valueid, offset)]
295 // Summarizes vtable definition for use in index-based whole program
296 // devirtualization during the thin link.
297 // PERMODULE_VTABLE_GLOBALVAR_INIT_REFS: [valueid, flags, varflags,
298 // numrefs, numrefs x valueid,
299 // n x (valueid, offset)]
301 // The total number of basic blocks in the module.
303 // Range information for accessed offsets for every argument.
304 // [n x (paramno, range, numcalls, numcalls x (callee_guid, paramno, range))]
306 // Summary of per-module memprof callsite metadata.
307 // [valueid, n x stackidindex]
309 // Summary of per-module allocation memprof metadata.
310 // [nummib, nummib x (alloc type, context radix tree index),
311 // [nummib x (numcontext x total size)]?]
313 // Summary of combined index memprof callsite metadata.
314 // [valueid, context radix tree index, numver,
315 // numver x version]
317 // Summary of combined index allocation memprof metadata.
318 // [nummib, numver,
319 // nummib x (alloc type, numstackids, numstackids x stackidindex),
320 // numver x version]
322 // List of all stack ids referenced by index in the callsite and alloc infos.
323 // [n x stack id]
325 // List of all full stack id pairs corresponding to the total sizes recorded
326 // at the end of the alloc info when reporting of hinted bytes is enabled.
327 // We use a fixed-width array, which is more efficient as these ids typically
328 // are close to 64 bits in size. The max fixed width value supported is 32
329 // bits so each 64-bit context id hash is recorded as a pair (upper 32 bits
330 // first). This record must immediately precede the associated alloc info, and
331 // the entries must be in the exact same order as the corresponding sizes.
332 // [nummib x (numcontext x full stack id)]
334 // Linearized radix tree of allocation contexts. See the description above the
335 // CallStackRadixTreeBuilder class in ProfileData/MemProf.h for format.
336 // [n x entry]
338};
339
341 METADATA_STRING_OLD = 1, // MDSTRING: [values]
342 METADATA_VALUE = 2, // VALUE: [type num, value num]
343 METADATA_NODE = 3, // NODE: [n x md num]
344 METADATA_NAME = 4, // STRING: [values]
345 METADATA_DISTINCT_NODE = 5, // DISTINCT_NODE: [n x md num]
346 METADATA_KIND = 6, // [n x [id, name]]
347 METADATA_LOCATION = 7, // [distinct, line, col, scope, inlined-at?]
348 METADATA_OLD_NODE = 8, // OLD_NODE: [n x (type num, value num)]
349 METADATA_OLD_FN_NODE = 9, // OLD_FN_NODE: [n x (type num, value num)]
350 METADATA_NAMED_NODE = 10, // NAMED_NODE: [n x mdnodes]
351 METADATA_ATTACHMENT = 11, // [m x [value, [n x [id, mdnode]]]
352 METADATA_GENERIC_DEBUG = 12, // [distinct, tag, vers, header, n x md num]
353 METADATA_SUBRANGE = 13, // [distinct, count, lo]
354 METADATA_ENUMERATOR = 14, // [isUnsigned|distinct, value, name]
355 METADATA_BASIC_TYPE = 15, // [distinct, tag, name, size, align, enc]
356 METADATA_FILE = 16, // [distinct, filename, directory, checksumkind, checksum]
357 METADATA_DERIVED_TYPE = 17, // [distinct, ...]
358 METADATA_COMPOSITE_TYPE = 18, // [distinct, ...]
359 METADATA_SUBROUTINE_TYPE = 19, // [distinct, flags, types, cc]
360 METADATA_COMPILE_UNIT = 20, // [distinct, ...]
361 METADATA_SUBPROGRAM = 21, // [distinct, ...]
362 METADATA_LEXICAL_BLOCK = 22, // [distinct, scope, file, line, column]
363 METADATA_LEXICAL_BLOCK_FILE = 23, //[distinct, scope, file, discriminator]
364 METADATA_NAMESPACE = 24, // [distinct, scope, file, name, line, exportSymbols]
365 METADATA_TEMPLATE_TYPE = 25, // [distinct, scope, name, type, ...]
366 METADATA_TEMPLATE_VALUE = 26, // [distinct, scope, name, type, value, ...]
367 METADATA_GLOBAL_VAR = 27, // [distinct, ...]
368 METADATA_LOCAL_VAR = 28, // [distinct, ...]
369 METADATA_EXPRESSION = 29, // [distinct, n x element]
370 METADATA_OBJC_PROPERTY = 30, // [distinct, name, file, line, ...]
371 METADATA_IMPORTED_ENTITY = 31, // [distinct, tag, scope, entity, line, name]
372 METADATA_MODULE = 32, // [distinct, scope, name, ...]
373 METADATA_MACRO = 33, // [distinct, macinfo, line, name, value]
374 METADATA_MACRO_FILE = 34, // [distinct, macinfo, line, file, ...]
375 METADATA_STRINGS = 35, // [count, offset] blob([lengths][chars])
376 METADATA_GLOBAL_DECL_ATTACHMENT = 36, // [valueid, n x [id, mdnode]]
377 METADATA_GLOBAL_VAR_EXPR = 37, // [distinct, var, expr]
378 METADATA_INDEX_OFFSET = 38, // [offset]
379 METADATA_INDEX = 39, // [bitpos]
380 METADATA_LABEL = 40, // [distinct, scope, name, file, line]
381 METADATA_STRING_TYPE = 41, // [distinct, name, size, align,...]
382 // Codes 42 and 43 are reserved for support for Fortran array specific debug
383 // info.
384 METADATA_COMMON_BLOCK = 44, // [distinct, scope, name, variable,...]
385 METADATA_GENERIC_SUBRANGE = 45, // [distinct, count, lo, up, stride]
386 METADATA_ARG_LIST = 46, // [n x [type num, value num]]
387 METADATA_ASSIGN_ID = 47, // [distinct, ...]
388};
389
390// The constants block (CONSTANTS_BLOCK_ID) describes emission for each
391// constant and maintains an implicit current type value.
393 CST_CODE_SETTYPE = 1, // SETTYPE: [typeid]
394 CST_CODE_NULL = 2, // NULL
395 CST_CODE_UNDEF = 3, // UNDEF
396 CST_CODE_INTEGER = 4, // INTEGER: [intval]
397 CST_CODE_WIDE_INTEGER = 5, // WIDE_INTEGER: [n x intval]
398 CST_CODE_FLOAT = 6, // FLOAT: [fpval]
399 CST_CODE_AGGREGATE = 7, // AGGREGATE: [n x value number]
400 CST_CODE_STRING = 8, // STRING: [values]
401 CST_CODE_CSTRING = 9, // CSTRING: [values]
402 CST_CODE_CE_BINOP = 10, // CE_BINOP: [opcode, opval, opval]
403 CST_CODE_CE_CAST = 11, // CE_CAST: [opcode, opty, opval]
404 CST_CODE_CE_GEP_OLD = 12, // CE_GEP: [n x operands]
405 CST_CODE_CE_SELECT = 13, // CE_SELECT: [opval, opval, opval]
406 CST_CODE_CE_EXTRACTELT = 14, // CE_EXTRACTELT: [opty, opval, opval]
407 CST_CODE_CE_INSERTELT = 15, // CE_INSERTELT: [opval, opval, opval]
408 CST_CODE_CE_SHUFFLEVEC = 16, // CE_SHUFFLEVEC: [opval, opval, opval]
409 CST_CODE_CE_CMP = 17, // CE_CMP: [opty, opval, opval, pred]
410 CST_CODE_INLINEASM_OLD = 18, // INLINEASM: [sideeffect|alignstack,
411 // asmstr,conststr]
412 CST_CODE_CE_SHUFVEC_EX = 19, // SHUFVEC_EX: [opty, opval, opval, opval]
413 CST_CODE_CE_INBOUNDS_GEP = 20, // INBOUNDS_GEP: [n x operands]
414 CST_CODE_BLOCKADDRESS = 21, // CST_CODE_BLOCKADDRESS [fnty, fnval, bb#]
415 CST_CODE_DATA = 22, // DATA: [n x elements]
416 CST_CODE_INLINEASM_OLD2 = 23, // INLINEASM: [sideeffect|alignstack|
417 // asmdialect,asmstr,conststr]
418 CST_CODE_CE_GEP_WITH_INRANGE_INDEX_OLD = 24, // [opty, flags, n x operands]
419 CST_CODE_CE_UNOP = 25, // CE_UNOP: [opcode, opval]
420 CST_CODE_POISON = 26, // POISON
421 CST_CODE_DSO_LOCAL_EQUIVALENT = 27, // DSO_LOCAL_EQUIVALENT [gvty, gv]
422 CST_CODE_INLINEASM_OLD3 = 28, // INLINEASM: [sideeffect|alignstack|
423 // asmdialect|unwind,
424 // asmstr,conststr]
425 CST_CODE_NO_CFI_VALUE = 29, // NO_CFI [ fty, f ]
426 CST_CODE_INLINEASM = 30, // INLINEASM: [fnty,
427 // sideeffect|alignstack|
428 // asmdialect|unwind,
429 // asmstr,conststr]
430 CST_CODE_CE_GEP_WITH_INRANGE = 31, // [opty, flags, range, n x operands]
431 CST_CODE_CE_GEP = 32, // [opty, flags, n x operands]
432 CST_CODE_PTRAUTH = 33, // [ptr, key, disc, addrdisc]
433};
434
435/// CastOpcodes - These are values used in the bitcode files to encode which
436/// cast a CST_CODE_CE_CAST or a XXX refers to. The values of these enums
437/// have no fixed relation to the LLVM IR enum values. Changing these will
438/// break compatibility with old files.
454
455/// UnaryOpcodes - These are values used in the bitcode files to encode which
456/// unop a CST_CODE_CE_UNOP or a XXX refers to. The values of these enums
457/// have no fixed relation to the LLVM IR enum values. Changing these will
458/// break compatibility with old files.
460 UNOP_FNEG = 0
462
463/// BinaryOpcodes - These are values used in the bitcode files to encode which
464/// binop a CST_CODE_CE_BINOP or a XXX refers to. The values of these enums
465/// have no fixed relation to the LLVM IR enum values. Changing these will
466/// break compatibility with old files.
472 BINOP_SDIV = 4, // overloaded for FP
474 BINOP_SREM = 6, // overloaded for FP
480 BINOP_XOR = 12
482
483/// These are values used in the bitcode files to encode AtomicRMW operations.
484/// The values of these enums have no fixed relation to the LLVM IR enum
485/// values. Changing these will break compatibility with old files.
505 RMW_USUB_SAT = 18
507
508/// OverflowingBinaryOperatorOptionalFlags - Flags for serializing
509/// OverflowingBinaryOperator's SubclassOptionalData contents.
514
515/// TruncInstOptionalFlags - Flags for serializing
516/// TruncInstOptionalFlags's SubclassOptionalData contents.
521
522/// FastMath Flags
523/// This is a fixed layout derived from the bitcode emitted by LLVM 5.0
524/// intended to decouple the in-memory representation from the serialization.
526 UnsafeAlgebra = (1 << 0), // Legacy
527 NoNaNs = (1 << 1),
528 NoInfs = (1 << 2),
529 NoSignedZeros = (1 << 3),
530 AllowReciprocal = (1 << 4),
531 AllowContract = (1 << 5),
532 ApproxFunc = (1 << 6),
533 AllowReassoc = (1 << 7)
535
536/// Flags for serializing PossiblyNonNegInst's SubclassOptionalData contents.
538
539/// PossiblyExactOperatorOptionalFlags - Flags for serializing
540/// PossiblyExactOperator's SubclassOptionalData contents.
542
543/// PossiblyDisjointInstOptionalFlags - Flags for serializing
544/// PossiblyDisjointInst's SubclassOptionalData contents.
546
547/// Mark to distinguish metadata from value in an operator bundle.
549
550/// GetElementPtrOptionalFlags - Flags for serializing
551/// GEPOperator's SubclassOptionalData contents.
556};
557
558/// ICmpOptionalFlags - Flags for serializing
559/// ICmpOptionalFlags's SubclassOptionalData contents.
561
562/// Encoded AtomicOrdering values.
572
573/// Markers and flags for call instruction.
580 CALL_FMF = 17 // Call has optional fast-math-flags.
582
583// The function body block (FUNCTION_BLOCK_ID) describes function bodies. It
584// can contain a constant block (CONSTANTS_BLOCK_ID).
586 FUNC_CODE_DECLAREBLOCKS = 1, // DECLAREBLOCKS: [n]
587
588 FUNC_CODE_INST_BINOP = 2, // BINOP: [opcode, ty, opval, opval]
589 FUNC_CODE_INST_CAST = 3, // CAST: [opcode, ty, opty, opval]
590 FUNC_CODE_INST_GEP_OLD = 4, // GEP: [n x operands]
591 FUNC_CODE_INST_SELECT = 5, // SELECT: [ty, opval, opval, opval]
592 FUNC_CODE_INST_EXTRACTELT = 6, // EXTRACTELT: [opty, opval, opval]
593 FUNC_CODE_INST_INSERTELT = 7, // INSERTELT: [ty, opval, opval, opval]
594 FUNC_CODE_INST_SHUFFLEVEC = 8, // SHUFFLEVEC: [ty, opval, opval, opval]
595 FUNC_CODE_INST_CMP = 9, // CMP: [opty, opval, opval, pred]
596
597 FUNC_CODE_INST_RET = 10, // RET: [opty,opval<both optional>]
598 FUNC_CODE_INST_BR = 11, // BR: [bb#, bb#, cond] or [bb#]
599 FUNC_CODE_INST_SWITCH = 12, // SWITCH: [opty, op0, op1, ...]
600 FUNC_CODE_INST_INVOKE = 13, // INVOKE: [attr, fnty, op0,op1, ...]
601 // 14 is unused.
602 FUNC_CODE_INST_UNREACHABLE = 15, // UNREACHABLE
603
604 FUNC_CODE_INST_PHI = 16, // PHI: [ty, val0,bb0, ...]
605 // 17 is unused.
606 // 18 is unused.
607 FUNC_CODE_INST_ALLOCA = 19, // ALLOCA: [instty, opty, op, align]
608 FUNC_CODE_INST_LOAD = 20, // LOAD: [opty, op, align, vol]
609 // 21 is unused.
610 // 22 is unused.
611 FUNC_CODE_INST_VAARG = 23, // VAARG: [valistty, valist, instty]
612 // This store code encodes the pointer type, rather than the value type
613 // this is so information only available in the pointer type (e.g. address
614 // spaces) is retained.
615 FUNC_CODE_INST_STORE_OLD = 24, // STORE: [ptrty,ptr,val, align, vol]
616 // 25 is unused.
617 FUNC_CODE_INST_EXTRACTVAL = 26, // EXTRACTVAL: [n x operands]
618 FUNC_CODE_INST_INSERTVAL = 27, // INSERTVAL: [n x operands]
619 // fcmp/icmp returning Int1TY or vector of Int1Ty. Same as CMP, exists to
620 // support legacy vicmp/vfcmp instructions.
621 FUNC_CODE_INST_CMP2 = 28, // CMP2: [opty, opval, opval, pred]
622 // new select on i1 or [N x i1]
623 FUNC_CODE_INST_VSELECT = 29, // VSELECT: [ty,opval,opval,predty,pred]
624 FUNC_CODE_INST_INBOUNDS_GEP_OLD = 30, // INBOUNDS_GEP: [n x operands]
625 FUNC_CODE_INST_INDIRECTBR = 31, // INDIRECTBR: [opty, op0, op1, ...]
626 // 32 is unused.
627 FUNC_CODE_DEBUG_LOC_AGAIN = 33, // DEBUG_LOC_AGAIN
628
629 FUNC_CODE_INST_CALL = 34, // CALL: [attr, cc, fnty, fnid, args...]
630
631 FUNC_CODE_DEBUG_LOC = 35, // DEBUG_LOC: [Line,Col,ScopeVal, IAVal]
632 FUNC_CODE_INST_FENCE = 36, // FENCE: [ordering, synchscope]
633 FUNC_CODE_INST_CMPXCHG_OLD = 37, // CMPXCHG: [ptrty, ptr, cmp, val, vol,
634 // ordering, synchscope,
635 // failure_ordering?, weak?]
636 FUNC_CODE_INST_ATOMICRMW_OLD = 38, // ATOMICRMW: [ptrty,ptr,val, operation,
637 // align, vol,
638 // ordering, synchscope]
639 FUNC_CODE_INST_RESUME = 39, // RESUME: [opval]
641 40, // LANDINGPAD: [ty,val,val,num,id0,val0...]
642 FUNC_CODE_INST_LOADATOMIC = 41, // LOAD: [opty, op, align, vol,
643 // ordering, synchscope]
644 FUNC_CODE_INST_STOREATOMIC_OLD = 42, // STORE: [ptrty,ptr,val, align, vol
645 // ordering, synchscope]
646 FUNC_CODE_INST_GEP = 43, // GEP: [inbounds, n x operands]
647 FUNC_CODE_INST_STORE = 44, // STORE: [ptrty,ptr,valty,val, align, vol]
648 FUNC_CODE_INST_STOREATOMIC = 45, // STORE: [ptrty,ptr,val, align, vol
649 FUNC_CODE_INST_CMPXCHG = 46, // CMPXCHG: [ptrty, ptr, cmp, val, vol,
650 // success_ordering, synchscope,
651 // failure_ordering, weak]
652 FUNC_CODE_INST_LANDINGPAD = 47, // LANDINGPAD: [ty,val,num,id0,val0...]
653 FUNC_CODE_INST_CLEANUPRET = 48, // CLEANUPRET: [val] or [val,bb#]
654 FUNC_CODE_INST_CATCHRET = 49, // CATCHRET: [val,bb#]
655 FUNC_CODE_INST_CATCHPAD = 50, // CATCHPAD: [bb#,bb#,num,args...]
656 FUNC_CODE_INST_CLEANUPPAD = 51, // CLEANUPPAD: [num,args...]
658 52, // CATCHSWITCH: [num,args...] or [num,args...,bb]
659 // 53 is unused.
660 // 54 is unused.
661 FUNC_CODE_OPERAND_BUNDLE = 55, // OPERAND_BUNDLE: [tag#, value...]
662 FUNC_CODE_INST_UNOP = 56, // UNOP: [opcode, ty, opval]
663 FUNC_CODE_INST_CALLBR = 57, // CALLBR: [attr, cc, norm, transfs,
664 // fnty, fnid, args...]
665 FUNC_CODE_INST_FREEZE = 58, // FREEZE: [opty, opval]
666 FUNC_CODE_INST_ATOMICRMW = 59, // ATOMICRMW: [ptrty, ptr, valty, val,
667 // operation, align, vol,
668 // ordering, synchscope]
669 FUNC_CODE_BLOCKADDR_USERS = 60, // BLOCKADDR_USERS: [value...]
670
672 61, // [DILocation, DILocalVariable, DIExpression, ValueAsMetadata]
674 62, // [DILocation, DILocalVariable, DIExpression, ValueAsMetadata]
676 63, // [DILocation, DILocalVariable, DIExpression, ValueAsMetadata,
677 // DIAssignID, DIExpression (addr), ValueAsMetadata (addr)]
679 64, // [DILocation, DILocalVariable, DIExpression, Value]
680 FUNC_CODE_DEBUG_RECORD_LABEL = 65, // [DILocation, DILabel]
681};
682
684 USELIST_CODE_DEFAULT = 1, // DEFAULT: [index..., value-id]
685 USELIST_CODE_BB = 2 // BB: [index..., bb-id]
687
689 // = 0 is unused
791};
792
799};
800
803};
804
807};
808
809} // End bitc namespace
810} // End llvm namespace
811
812#endif
@ BITCODE_CURRENT_EPOCH
Definition: LLVMBitCodes.h:81
TypeCodes
TYPE blocks have codes for each type primitive they use.
Definition: LLVMBitCodes.h:135
@ TYPE_CODE_METADATA
Definition: LLVMBitCodes.h:162
@ TYPE_CODE_PPC_FP128
Definition: LLVMBitCodes.h:160
@ TYPE_CODE_TARGET_TYPE
Definition: LLVMBitCodes.h:179
@ TYPE_CODE_STRUCT_ANON
Definition: LLVMBitCodes.h:166
@ TYPE_CODE_STRUCT_NAME
Definition: LLVMBitCodes.h:167
@ TYPE_CODE_X86_FP80
Definition: LLVMBitCodes.h:158
@ TYPE_CODE_OPAQUE_POINTER
Definition: LLVMBitCodes.h:177
@ TYPE_CODE_FUNCTION
Definition: LLVMBitCodes.h:170
@ TYPE_CODE_NUMENTRY
Definition: LLVMBitCodes.h:136
@ TYPE_CODE_FUNCTION_OLD
Definition: LLVMBitCodes.h:147
@ TYPE_CODE_STRUCT_NAMED
Definition: LLVMBitCodes.h:168
@ METADATA_NAMESPACE
Definition: LLVMBitCodes.h:364
@ METADATA_COMMON_BLOCK
Definition: LLVMBitCodes.h:384
@ METADATA_STRING_TYPE
Definition: LLVMBitCodes.h:381
@ METADATA_MACRO_FILE
Definition: LLVMBitCodes.h:374
@ METADATA_TEMPLATE_VALUE
Definition: LLVMBitCodes.h:366
@ METADATA_LEXICAL_BLOCK_FILE
Definition: LLVMBitCodes.h:363
@ METADATA_STRING_OLD
Definition: LLVMBitCodes.h:341
@ METADATA_INDEX_OFFSET
Definition: LLVMBitCodes.h:378
@ METADATA_LEXICAL_BLOCK
Definition: LLVMBitCodes.h:362
@ METADATA_SUBPROGRAM
Definition: LLVMBitCodes.h:361
@ METADATA_SUBROUTINE_TYPE
Definition: LLVMBitCodes.h:359
@ METADATA_GLOBAL_DECL_ATTACHMENT
Definition: LLVMBitCodes.h:376
@ METADATA_LOCAL_VAR
Definition: LLVMBitCodes.h:368
@ METADATA_GLOBAL_VAR
Definition: LLVMBitCodes.h:367
@ METADATA_EXPRESSION
Definition: LLVMBitCodes.h:369
@ METADATA_ATTACHMENT
Definition: LLVMBitCodes.h:351
@ METADATA_OBJC_PROPERTY
Definition: LLVMBitCodes.h:370
@ METADATA_NAMED_NODE
Definition: LLVMBitCodes.h:350
@ METADATA_IMPORTED_ENTITY
Definition: LLVMBitCodes.h:371
@ METADATA_GENERIC_SUBRANGE
Definition: LLVMBitCodes.h:385
@ METADATA_ASSIGN_ID
Definition: LLVMBitCodes.h:387
@ METADATA_COMPILE_UNIT
Definition: LLVMBitCodes.h:360
@ METADATA_COMPOSITE_TYPE
Definition: LLVMBitCodes.h:358
@ METADATA_OLD_FN_NODE
Definition: LLVMBitCodes.h:349
@ METADATA_ENUMERATOR
Definition: LLVMBitCodes.h:354
@ METADATA_DERIVED_TYPE
Definition: LLVMBitCodes.h:357
@ METADATA_TEMPLATE_TYPE
Definition: LLVMBitCodes.h:365
@ METADATA_GLOBAL_VAR_EXPR
Definition: LLVMBitCodes.h:377
@ METADATA_BASIC_TYPE
Definition: LLVMBitCodes.h:355
@ METADATA_DISTINCT_NODE
Definition: LLVMBitCodes.h:345
@ METADATA_GENERIC_DEBUG
Definition: LLVMBitCodes.h:352
RMWOperations
These are values used in the bitcode files to encode AtomicRMW operations.
Definition: LLVMBitCodes.h:486
GlobalValueSummarySymtabCodes
Definition: LLVMBitCodes.h:207
@ FS_CONTEXT_RADIX_TREE_ARRAY
Definition: LLVMBitCodes.h:337
@ FS_CFI_FUNCTION_DEFS
Definition: LLVMBitCodes.h:263
@ FS_PERMODULE_RELBF
Definition: LLVMBitCodes.h:272
@ FS_COMBINED_GLOBALVAR_INIT_REFS
Definition: LLVMBitCodes.h:225
@ FS_TYPE_CHECKED_LOAD_VCALLS
Definition: LLVMBitCodes.h:247
@ FS_COMBINED_PROFILE
Definition: LLVMBitCodes.h:223
@ FS_ALLOC_CONTEXT_IDS
Definition: LLVMBitCodes.h:333
@ FS_COMBINED_ORIGINAL_NAME
Definition: LLVMBitCodes.h:231
@ FS_TYPE_ID_METADATA
Definition: LLVMBitCodes.h:294
@ FS_PERMODULE_VTABLE_GLOBALVAR_INIT_REFS
Definition: LLVMBitCodes.h:300
@ FS_TYPE_TEST_ASSUME_CONST_VCALL
Definition: LLVMBitCodes.h:251
@ FS_PERMODULE_GLOBALVAR_INIT_REFS
Definition: LLVMBitCodes.h:216
@ FS_TYPE_TEST_ASSUME_VCALLS
Definition: LLVMBitCodes.h:242
@ FS_CFI_FUNCTION_DECLS
Definition: LLVMBitCodes.h:267
@ FS_COMBINED_CALLSITE_INFO
Definition: LLVMBitCodes.h:316
@ FS_COMBINED_ALLOC_INFO
Definition: LLVMBitCodes.h:321
@ FS_PERMODULE_PROFILE
Definition: LLVMBitCodes.h:214
@ FS_PERMODULE_CALLSITE_INFO
Definition: LLVMBitCodes.h:308
@ FS_PERMODULE_ALLOC_INFO
Definition: LLVMBitCodes.h:312
@ FS_TYPE_CHECKED_LOAD_CONST_VCALL
Definition: LLVMBitCodes.h:255
PossiblyNonNegInstOptionalFlags
Flags for serializing PossiblyNonNegInst's SubclassOptionalData contents.
Definition: LLVMBitCodes.h:537
IdentificationCodes
Identification block contains a string that describes the producer details, and an epoch that defines...
Definition: LLVMBitCodes.h:70
@ IDENTIFICATION_CODE_EPOCH
Definition: LLVMBitCodes.h:72
@ IDENTIFICATION_CODE_STRING
Definition: LLVMBitCodes.h:71
@ CST_CODE_CE_INBOUNDS_GEP
Definition: LLVMBitCodes.h:413
@ CST_CODE_INLINEASM_OLD3
Definition: LLVMBitCodes.h:422
@ CST_CODE_BLOCKADDRESS
Definition: LLVMBitCodes.h:414
@ CST_CODE_NO_CFI_VALUE
Definition: LLVMBitCodes.h:425
@ CST_CODE_CE_SHUFVEC_EX
Definition: LLVMBitCodes.h:412
@ CST_CODE_CE_EXTRACTELT
Definition: LLVMBitCodes.h:406
@ CST_CODE_CE_GEP_OLD
Definition: LLVMBitCodes.h:404
@ CST_CODE_INLINEASM_OLD
Definition: LLVMBitCodes.h:410
@ CST_CODE_CE_GEP_WITH_INRANGE_INDEX_OLD
Definition: LLVMBitCodes.h:418
@ CST_CODE_CE_SHUFFLEVEC
Definition: LLVMBitCodes.h:408
@ CST_CODE_WIDE_INTEGER
Definition: LLVMBitCodes.h:397
@ CST_CODE_DSO_LOCAL_EQUIVALENT
Definition: LLVMBitCodes.h:421
@ CST_CODE_AGGREGATE
Definition: LLVMBitCodes.h:399
@ CST_CODE_CE_SELECT
Definition: LLVMBitCodes.h:405
@ CST_CODE_CE_INSERTELT
Definition: LLVMBitCodes.h:407
@ CST_CODE_INLINEASM_OLD2
Definition: LLVMBitCodes.h:416
@ CST_CODE_CE_GEP_WITH_INRANGE
Definition: LLVMBitCodes.h:430
@ CST_CODE_INLINEASM
Definition: LLVMBitCodes.h:426
GetElementPtrOptionalFlags
GetElementPtrOptionalFlags - Flags for serializing GEPOperator's SubclassOptionalData contents.
Definition: LLVMBitCodes.h:552
CallMarkersFlags
Markers and flags for call instruction.
Definition: LLVMBitCodes.h:574
@ CALL_EXPLICIT_TYPE
Definition: LLVMBitCodes.h:578
@ VST_CODE_COMBINED_ENTRY
Definition: LLVMBitCodes.h:196
PossiblyExactOperatorOptionalFlags
PossiblyExactOperatorOptionalFlags - Flags for serializing PossiblyExactOperator's SubclassOptionalDa...
Definition: LLVMBitCodes.h:541
ComdatSelectionKindCodes
Definition: LLVMBitCodes.h:793
@ COMDAT_SELECTION_KIND_LARGEST
Definition: LLVMBitCodes.h:796
@ COMDAT_SELECTION_KIND_ANY
Definition: LLVMBitCodes.h:794
@ COMDAT_SELECTION_KIND_SAME_SIZE
Definition: LLVMBitCodes.h:798
@ COMDAT_SELECTION_KIND_EXACT_MATCH
Definition: LLVMBitCodes.h:795
@ COMDAT_SELECTION_KIND_NO_DUPLICATES
Definition: LLVMBitCodes.h:797
@ ATTR_KIND_STACK_PROTECT
Definition: LLVMBitCodes.h:715
@ ATTR_KIND_NO_UNWIND
Definition: LLVMBitCodes.h:707
@ ATTR_KIND_STACK_PROTECT_STRONG
Definition: LLVMBitCodes.h:717
@ ATTR_KIND_SANITIZE_MEMORY
Definition: LLVMBitCodes.h:721
@ ATTR_KIND_SAFESTACK
Definition: LLVMBitCodes.h:733
@ ATTR_KIND_OPTIMIZE_FOR_SIZE
Definition: LLVMBitCodes.h:708
@ ATTR_KIND_SWIFT_ERROR
Definition: LLVMBitCodes.h:736
@ ATTR_KIND_INACCESSIBLEMEM_ONLY
Definition: LLVMBitCodes.h:738
@ ATTR_KIND_STRUCT_RET
Definition: LLVMBitCodes.h:718
@ ATTR_KIND_MIN_SIZE
Definition: LLVMBitCodes.h:695
@ ATTR_KIND_NO_CALLBACK
Definition: LLVMBitCodes.h:760
@ ATTR_KIND_NO_CAPTURE
Definition: LLVMBitCodes.h:700
@ ATTR_KIND_FNRETTHUNK_EXTERN
Definition: LLVMBitCodes.h:773
@ ATTR_KIND_NO_DIVERGENCE_SOURCE
Definition: LLVMBitCodes.h:789
@ ATTR_KIND_SANITIZE_ADDRESS
Definition: LLVMBitCodes.h:719
@ ATTR_KIND_NO_IMPLICIT_FLOAT
Definition: LLVMBitCodes.h:702
@ ATTR_KIND_NO_BUILTIN
Definition: LLVMBitCodes.h:699
@ ATTR_KIND_NO_RECURSE
Definition: LLVMBitCodes.h:737
@ ATTR_KIND_DEAD_ON_UNWIND
Definition: LLVMBitCodes.h:780
@ ATTR_KIND_CONVERGENT
Definition: LLVMBitCodes.h:732
@ ATTR_KIND_RETURNED
Definition: LLVMBitCodes.h:711
@ ATTR_KIND_STACK_ALIGNMENT
Definition: LLVMBitCodes.h:714
@ ATTR_KIND_SWIFT_SELF
Definition: LLVMBitCodes.h:735
@ ATTR_KIND_INACCESSIBLEMEM_OR_ARGMEMONLY
Definition: LLVMBitCodes.h:739
@ ATTR_KIND_ALLOC_SIZE
Definition: LLVMBitCodes.h:740
@ ATTR_KIND_STACK_PROTECT_REQ
Definition: LLVMBitCodes.h:716
@ ATTR_KIND_INLINE_HINT
Definition: LLVMBitCodes.h:693
@ ATTR_KIND_NON_NULL
Definition: LLVMBitCodes.h:728
@ ATTR_KIND_NULL_POINTER_IS_VALID
Definition: LLVMBitCodes.h:756
@ ATTR_KIND_SANITIZE_HWADDRESS
Definition: LLVMBitCodes.h:744
@ ATTR_KIND_NO_RETURN
Definition: LLVMBitCodes.h:706
@ ATTR_KIND_MUSTPROGRESS
Definition: LLVMBitCodes.h:759
@ ATTR_KIND_RETURNS_TWICE
Definition: LLVMBitCodes.h:712
@ ATTR_KIND_SHADOWCALLSTACK
Definition: LLVMBitCodes.h:747
@ ATTR_KIND_OPT_FOR_FUZZING
Definition: LLVMBitCodes.h:746
@ ATTR_KIND_WRITABLE
Definition: LLVMBitCodes.h:778
@ ATTR_KIND_SANITIZE_NUMERICAL_STABILITY
Definition: LLVMBitCodes.h:782
@ ATTR_KIND_INITIALIZES
Definition: LLVMBitCodes.h:783
@ ATTR_KIND_ARGMEMONLY
Definition: LLVMBitCodes.h:734
@ ATTR_KIND_ALLOCATED_POINTER
Definition: LLVMBitCodes.h:770
@ ATTR_KIND_DISABLE_SANITIZER_INSTRUMENTATION
Definition: LLVMBitCodes.h:767
@ ATTR_KIND_SKIP_PROFILE
Definition: LLVMBitCodes.h:774
@ ATTR_KIND_ELEMENTTYPE
Definition: LLVMBitCodes.h:766
@ ATTR_KIND_CORO_ELIDE_SAFE
Definition: LLVMBitCodes.h:787
@ ATTR_KIND_ALLOC_KIND
Definition: LLVMBitCodes.h:771
@ ATTR_KIND_NO_MERGE
Definition: LLVMBitCodes.h:755
@ ATTR_KIND_STRICT_FP
Definition: LLVMBitCodes.h:743
@ ATTR_KIND_NO_DUPLICATE
Definition: LLVMBitCodes.h:701
@ ATTR_KIND_ALLOC_ALIGN
Definition: LLVMBitCodes.h:769
@ ATTR_KIND_NON_LAZY_BIND
Definition: LLVMBitCodes.h:704
@ ATTR_KIND_DEREFERENCEABLE
Definition: LLVMBitCodes.h:730
@ ATTR_KIND_READ_NONE
Definition: LLVMBitCodes.h:709
@ ATTR_KIND_UW_TABLE
Definition: LLVMBitCodes.h:722
@ ATTR_KIND_OPTIMIZE_NONE
Definition: LLVMBitCodes.h:726
@ ATTR_KIND_WRITEONLY
Definition: LLVMBitCodes.h:741
@ ATTR_KIND_HYBRID_PATCHABLE
Definition: LLVMBitCodes.h:784
@ ATTR_KIND_NO_RED_ZONE
Definition: LLVMBitCodes.h:705
@ ATTR_KIND_NOCF_CHECK
Definition: LLVMBitCodes.h:745
@ ATTR_KIND_NO_PROFILE
Definition: LLVMBitCodes.h:762
@ ATTR_KIND_DEREFERENCEABLE_OR_NULL
Definition: LLVMBitCodes.h:731
@ ATTR_KIND_SANITIZE_REALTIME
Definition: LLVMBitCodes.h:785
@ ATTR_KIND_IN_ALLOCA
Definition: LLVMBitCodes.h:727
@ ATTR_KIND_READ_ONLY
Definition: LLVMBitCodes.h:710
@ ATTR_KIND_ALIGNMENT
Definition: LLVMBitCodes.h:690
@ ATTR_KIND_SPECULATIVE_LOAD_HARDENING
Definition: LLVMBitCodes.h:748
@ ATTR_KIND_ALWAYS_INLINE
Definition: LLVMBitCodes.h:691
@ ATTR_KIND_NOFPCLASS
Definition: LLVMBitCodes.h:776
@ ATTR_KIND_WILLRETURN
Definition: LLVMBitCodes.h:750
@ ATTR_KIND_SANITIZE_TYPE
Definition: LLVMBitCodes.h:790
@ ATTR_KIND_PRESPLIT_COROUTINE
Definition: LLVMBitCodes.h:772
@ ATTR_KIND_NO_ALIAS
Definition: LLVMBitCodes.h:698
@ ATTR_KIND_VSCALE_RANGE
Definition: LLVMBitCodes.h:763
@ ATTR_KIND_NO_SANITIZE_COVERAGE
Definition: LLVMBitCodes.h:765
@ ATTR_KIND_JUMP_TABLE
Definition: LLVMBitCodes.h:729
@ ATTR_KIND_SPECULATABLE
Definition: LLVMBitCodes.h:742
@ ATTR_KIND_NO_INLINE
Definition: LLVMBitCodes.h:703
@ ATTR_KIND_SANITIZE_REALTIME_BLOCKING
Definition: LLVMBitCodes.h:786
@ ATTR_KIND_NO_SANITIZE_BOUNDS
Definition: LLVMBitCodes.h:768
@ ATTR_KIND_SANITIZE_MEMTAG
Definition: LLVMBitCodes.h:753
@ ATTR_KIND_CORO_ONLY_DESTROY_WHEN_COMPLETE
Definition: LLVMBitCodes.h:779
@ ATTR_KIND_SANITIZE_THREAD
Definition: LLVMBitCodes.h:720
@ ATTR_KIND_OPTIMIZE_FOR_DEBUGGING
Definition: LLVMBitCodes.h:777
@ ATTR_KIND_PREALLOCATED
Definition: LLVMBitCodes.h:754
@ ATTR_KIND_SWIFT_ASYNC
Definition: LLVMBitCodes.h:764
OverflowingBinaryOperatorOptionalFlags
OverflowingBinaryOperatorOptionalFlags - Flags for serializing OverflowingBinaryOperator's SubclassOp...
Definition: LLVMBitCodes.h:510
@ OBO_NO_SIGNED_WRAP
Definition: LLVMBitCodes.h:512
@ OBO_NO_UNSIGNED_WRAP
Definition: LLVMBitCodes.h:511
TruncInstOptionalFlags
TruncInstOptionalFlags - Flags for serializing TruncInstOptionalFlags's SubclassOptionalData contents...
Definition: LLVMBitCodes.h:517
@ TIO_NO_UNSIGNED_WRAP
Definition: LLVMBitCodes.h:518
@ TIO_NO_SIGNED_WRAP
Definition: LLVMBitCodes.h:519
UnaryOpcodes
UnaryOpcodes - These are values used in the bitcode files to encode which unop a CST_CODE_CE_UNOP or ...
Definition: LLVMBitCodes.h:459
@ USELIST_CODE_DEFAULT
Definition: LLVMBitCodes.h:684
@ SYNC_SCOPE_NAMES_BLOCK_ID
Definition: LLVMBitCodes.h:65
@ PARAMATTR_BLOCK_ID
Definition: LLVMBitCodes.h:33
@ TYPE_BLOCK_ID_NEW
Definition: LLVMBitCodes.h:48
@ CONSTANTS_BLOCK_ID
Definition: LLVMBitCodes.h:36
@ PARAMATTR_GROUP_BLOCK_ID
Definition: LLVMBitCodes.h:34
@ METADATA_KIND_BLOCK_ID
Definition: LLVMBitCodes.h:57
@ IDENTIFICATION_BLOCK_ID
Definition: LLVMBitCodes.h:42
@ GLOBALVAL_SUMMARY_BLOCK_ID
Definition: LLVMBitCodes.h:53
@ METADATA_ATTACHMENT_ID
Definition: LLVMBitCodes.h:46
@ METADATA_BLOCK_ID
Definition: LLVMBitCodes.h:45
@ FUNCTION_BLOCK_ID
Definition: LLVMBitCodes.h:37
@ FULL_LTO_GLOBALVAL_SUMMARY_BLOCK_ID
Definition: LLVMBitCodes.h:61
@ MODULE_STRTAB_BLOCK_ID
Definition: LLVMBitCodes.h:52
@ VALUE_SYMTAB_BLOCK_ID
Definition: LLVMBitCodes.h:44
@ OPERAND_BUNDLE_TAGS_BLOCK_ID
Definition: LLVMBitCodes.h:55
@ USELIST_BLOCK_ID
Definition: LLVMBitCodes.h:50
MetadataOperandBundleValueMarker
Mark to distinguish metadata from value in an operator bundle.
Definition: LLVMBitCodes.h:548
CastOpcodes
CastOpcodes - These are values used in the bitcode files to encode which cast a CST_CODE_CE_CAST or a...
Definition: LLVMBitCodes.h:439
@ CAST_ADDRSPACECAST
Definition: LLVMBitCodes.h:452
@ FIRST_APPLICATION_BLOCKID
Definition: BitCodeEnums.h:72
ModuleCodes
MODULE blocks have a number of optional fields and subblocks.
Definition: LLVMBitCodes.h:84
@ MODULE_CODE_FUNCTION
Definition: LLVMBitCodes.h:100
@ MODULE_CODE_VERSION
Definition: LLVMBitCodes.h:85
@ MODULE_CODE_SOURCE_FILENAME
Definition: LLVMBitCodes.h:116
@ MODULE_CODE_SECTIONNAME
Definition: LLVMBitCodes.h:89
@ MODULE_CODE_METADATA_VALUES_UNUSED
Definition: LLVMBitCodes.h:113
@ MODULE_CODE_TRIPLE
Definition: LLVMBitCodes.h:86
@ MODULE_CODE_DATALAYOUT
Definition: LLVMBitCodes.h:87
@ MODULE_CODE_GLOBALVAR
Definition: LLVMBitCodes.h:96
@ MODULE_CODE_ALIAS_OLD
Definition: LLVMBitCodes.h:103
@ MODULE_CODE_VSTOFFSET
Definition: LLVMBitCodes.h:108
@ MODULE_CODE_GCNAME
Definition: LLVMBitCodes.h:105
@ MODULE_CODE_DEPLIB
Definition: LLVMBitCodes.h:92
@ MODULE_CODE_COMDAT
Definition: LLVMBitCodes.h:106
@ FUNC_CODE_INST_ATOMICRMW_OLD
Definition: LLVMBitCodes.h:636
@ FUNC_CODE_INST_CATCHRET
Definition: LLVMBitCodes.h:654
@ FUNC_CODE_INST_LANDINGPAD
Definition: LLVMBitCodes.h:652
@ FUNC_CODE_INST_EXTRACTVAL
Definition: LLVMBitCodes.h:617
@ FUNC_CODE_INST_CATCHPAD
Definition: LLVMBitCodes.h:655
@ FUNC_CODE_INST_RESUME
Definition: LLVMBitCodes.h:639
@ FUNC_CODE_INST_CMP2
Definition: LLVMBitCodes.h:621
@ FUNC_CODE_INST_FENCE
Definition: LLVMBitCodes.h:632
@ FUNC_CODE_INST_CALLBR
Definition: LLVMBitCodes.h:663
@ FUNC_CODE_INST_CATCHSWITCH
Definition: LLVMBitCodes.h:657
@ FUNC_CODE_INST_INBOUNDS_GEP_OLD
Definition: LLVMBitCodes.h:624
@ FUNC_CODE_INST_VSELECT
Definition: LLVMBitCodes.h:623
@ FUNC_CODE_INST_GEP_OLD
Definition: LLVMBitCodes.h:590
@ FUNC_CODE_INST_GEP
Definition: LLVMBitCodes.h:646
@ FUNC_CODE_INST_STOREATOMIC_OLD
Definition: LLVMBitCodes.h:644
@ FUNC_CODE_INST_CLEANUPRET
Definition: LLVMBitCodes.h:653
@ FUNC_CODE_INST_LANDINGPAD_OLD
Definition: LLVMBitCodes.h:640
@ FUNC_CODE_DEBUG_RECORD_VALUE
Definition: LLVMBitCodes.h:671
@ FUNC_CODE_INST_LOADATOMIC
Definition: LLVMBitCodes.h:642
@ FUNC_CODE_DEBUG_RECORD_ASSIGN
Definition: LLVMBitCodes.h:675
@ FUNC_CODE_INST_LOAD
Definition: LLVMBitCodes.h:608
@ FUNC_CODE_INST_STOREATOMIC
Definition: LLVMBitCodes.h:648
@ FUNC_CODE_INST_ATOMICRMW
Definition: LLVMBitCodes.h:666
@ FUNC_CODE_INST_BINOP
Definition: LLVMBitCodes.h:588
@ FUNC_CODE_INST_STORE
Definition: LLVMBitCodes.h:647
@ FUNC_CODE_DEBUG_LOC_AGAIN
Definition: LLVMBitCodes.h:627
@ FUNC_CODE_INST_EXTRACTELT
Definition: LLVMBitCodes.h:592
@ FUNC_CODE_INST_INDIRECTBR
Definition: LLVMBitCodes.h:625
@ FUNC_CODE_INST_INVOKE
Definition: LLVMBitCodes.h:600
@ FUNC_CODE_DEBUG_RECORD_VALUE_SIMPLE
Definition: LLVMBitCodes.h:678
@ FUNC_CODE_INST_INSERTVAL
Definition: LLVMBitCodes.h:618
@ FUNC_CODE_DECLAREBLOCKS
Definition: LLVMBitCodes.h:586
@ FUNC_CODE_DEBUG_RECORD_LABEL
Definition: LLVMBitCodes.h:680
@ FUNC_CODE_INST_SWITCH
Definition: LLVMBitCodes.h:599
@ FUNC_CODE_INST_PHI
Definition: LLVMBitCodes.h:604
@ FUNC_CODE_INST_RET
Definition: LLVMBitCodes.h:597
@ FUNC_CODE_INST_CALL
Definition: LLVMBitCodes.h:629
@ FUNC_CODE_INST_ALLOCA
Definition: LLVMBitCodes.h:607
@ FUNC_CODE_INST_INSERTELT
Definition: LLVMBitCodes.h:593
@ FUNC_CODE_INST_SELECT
Definition: LLVMBitCodes.h:591
@ FUNC_CODE_BLOCKADDR_USERS
Definition: LLVMBitCodes.h:669
@ FUNC_CODE_INST_CLEANUPPAD
Definition: LLVMBitCodes.h:656
@ FUNC_CODE_INST_SHUFFLEVEC
Definition: LLVMBitCodes.h:594
@ FUNC_CODE_INST_UNOP
Definition: LLVMBitCodes.h:662
@ FUNC_CODE_INST_STORE_OLD
Definition: LLVMBitCodes.h:615
@ FUNC_CODE_INST_VAARG
Definition: LLVMBitCodes.h:611
@ FUNC_CODE_INST_FREEZE
Definition: LLVMBitCodes.h:665
@ FUNC_CODE_INST_CMPXCHG
Definition: LLVMBitCodes.h:649
@ FUNC_CODE_INST_UNREACHABLE
Definition: LLVMBitCodes.h:602
@ FUNC_CODE_INST_CAST
Definition: LLVMBitCodes.h:589
@ FUNC_CODE_INST_CMPXCHG_OLD
Definition: LLVMBitCodes.h:633
@ FUNC_CODE_DEBUG_LOC
Definition: LLVMBitCodes.h:631
@ FUNC_CODE_DEBUG_RECORD_DECLARE
Definition: LLVMBitCodes.h:673
@ FUNC_CODE_OPERAND_BUNDLE
Definition: LLVMBitCodes.h:661
@ FUNC_CODE_INST_CMP
Definition: LLVMBitCodes.h:595
ICmpOptionalFlags
ICmpOptionalFlags - Flags for serializing ICmpOptionalFlags's SubclassOptionalData contents.
Definition: LLVMBitCodes.h:560
PossiblyDisjointInstOptionalFlags
PossiblyDisjointInstOptionalFlags - Flags for serializing PossiblyDisjointInst's SubclassOptionalData...
Definition: LLVMBitCodes.h:545
FastMathMap
FastMath Flags This is a fixed layout derived from the bitcode emitted by LLVM 5.0 intended to decoup...
Definition: LLVMBitCodes.h:525
@ OPERAND_BUNDLE_TAG
Definition: LLVMBitCodes.h:183
AttributeCodes
PARAMATTR blocks have code for defining a parameter attribute set.
Definition: LLVMBitCodes.h:126
@ PARAMATTR_CODE_ENTRY_OLD
Definition: LLVMBitCodes.h:128
@ PARAMATTR_GRP_CODE_ENTRY
Definition: LLVMBitCodes.h:131
@ PARAMATTR_CODE_ENTRY
Definition: LLVMBitCodes.h:130
BinaryOpcodes
BinaryOpcodes - These are values used in the bitcode files to encode which binop a CST_CODE_CE_BINOP ...
Definition: LLVMBitCodes.h:467
AtomicOrderingCodes
Encoded AtomicOrdering values.
Definition: LLVMBitCodes.h:563
@ ORDERING_NOTATOMIC
Definition: LLVMBitCodes.h:564
@ ORDERING_UNORDERED
Definition: LLVMBitCodes.h:565
@ ORDERING_MONOTONIC
Definition: LLVMBitCodes.h:566
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18