396 'byteArray', 'byval', 'c', 'call', 'callee', 'caller', 'calls', 'catch', |
396 'byteArray', 'byval', 'c', 'call', 'callee', 'caller', 'calls', 'catch', |
397 'catchpad', 'catchret', 'catchswitch', 'cc', 'ccc', 'cleanup', 'cleanuppad', |
397 'catchpad', 'catchret', 'catchswitch', 'cc', 'ccc', 'cleanup', 'cleanuppad', |
398 'cleanupret', 'cmpxchg', 'cold', 'coldcc', 'comdat', 'common', 'constant', |
398 'cleanupret', 'cmpxchg', 'cold', 'coldcc', 'comdat', 'common', 'constant', |
399 'contract', 'convergent', 'critical', 'cxx_fast_tlscc', 'datalayout', 'declare', |
399 'contract', 'convergent', 'critical', 'cxx_fast_tlscc', 'datalayout', 'declare', |
400 'default', 'define', 'deplibs', 'dereferenceable', 'dereferenceable_or_null', |
400 'default', 'define', 'deplibs', 'dereferenceable', 'dereferenceable_or_null', |
401 'distinct', 'dllexport', 'dllimport', 'double', 'dso_local', 'dso_preemptable', |
401 'distinct', 'dllexport', 'dllimport', 'dso_local', 'dso_preemptable', |
402 'dsoLocal', 'eq', 'exact', 'exactmatch', 'extern_weak', 'external', |
402 'dsoLocal', 'eq', 'exact', 'exactmatch', 'extern_weak', 'external', |
403 'externally_initialized', 'extractelement', 'extractvalue', 'fadd', 'false', |
403 'externally_initialized', 'extractelement', 'extractvalue', 'fadd', 'false', |
404 'fast', 'fastcc', 'fcmp', 'fdiv', 'fence', 'filter', 'flags', 'float', 'fmul', |
404 'fast', 'fastcc', 'fcmp', 'fdiv', 'fence', 'filter', 'flags', 'fmul', |
405 'fp128', 'fpext', 'fptosi', 'fptoui', 'fptrunc', 'frem', 'from', 'fsub', |
405 'fpext', 'fptosi', 'fptoui', 'fptrunc', 'freeze', 'frem', 'from', 'fsub', |
406 'funcFlags', 'function', 'gc', 'getelementptr', 'ghccc', 'global', 'guid', 'gv', |
406 'funcFlags', 'function', 'gc', 'getelementptr', 'ghccc', 'global', 'guid', 'gv', |
407 'half', 'hash', 'hhvm_ccc', 'hhvmcc', 'hidden', 'hot', 'hotness', 'icmp', |
407 'hash', 'hhvm_ccc', 'hhvmcc', 'hidden', 'hot', 'hotness', 'icmp', |
408 'ifunc', 'inaccessiblemem_or_argmemonly', 'inaccessiblememonly', 'inalloca', |
408 'ifunc', 'inaccessiblemem_or_argmemonly', 'inaccessiblememonly', 'inalloca', |
409 'inbounds', 'indir', 'indirectbr', 'info', 'initialexec', 'inline', |
409 'inbounds', 'indir', 'indirectbr', 'info', 'initialexec', 'inline', |
410 'inlineBits', 'inlinehint', 'inrange', 'inreg', 'insertelement', 'insertvalue', |
410 'inlineBits', 'inlinehint', 'inrange', 'inreg', 'insertelement', 'insertvalue', |
411 'insts', 'intel_ocl_bicc', 'inteldialect', 'internal', 'inttoptr', 'invoke', |
411 'insts', 'intel_ocl_bicc', 'inteldialect', 'internal', 'inttoptr', 'invoke', |
412 'jumptable', 'kind', 'label', 'landingpad', 'largest', 'linkage', 'linkonce', |
412 'jumptable', 'kind', 'landingpad', 'largest', 'linkage', 'linkonce', |
413 'linkonce_odr', 'live', 'load', 'local_unnamed_addr', 'localdynamic', |
413 'linkonce_odr', 'live', 'load', 'local_unnamed_addr', 'localdynamic', |
414 'localexec', 'lshr', 'max', 'metadata', 'min', 'minsize', 'module', 'monotonic', |
414 'localexec', 'lshr', 'max', 'metadata', 'min', 'minsize', 'module', 'monotonic', |
415 'msp430_intrcc', 'mul', 'musttail', 'naked', 'name', 'nand', 'ne', 'nest', |
415 'msp430_intrcc', 'mul', 'musttail', 'naked', 'name', 'nand', 'ne', 'nest', |
416 'ninf', 'nnan', 'noalias', 'nobuiltin', 'nocapture', 'nocf_check', |
416 'ninf', 'nnan', 'noalias', 'nobuiltin', 'nocapture', 'nocf_check', |
417 'noduplicate', 'noduplicates', 'noimplicitfloat', 'noinline', 'none', |
417 'noduplicate', 'noduplicates', 'noimplicitfloat', 'noinline', 'none', |
418 'nonlazybind', 'nonnull', 'norecurse', 'noRecurse', 'noredzone', 'noreturn', |
418 'nonlazybind', 'nonnull', 'norecurse', 'noRecurse', 'noredzone', 'noreturn', |
419 'notail', 'notEligibleToImport', 'nounwind', 'nsw', 'nsz', 'null', 'nuw', 'oeq', |
419 'notail', 'notEligibleToImport', 'nounwind', 'nsw', 'nsz', 'null', 'nuw', 'oeq', |
420 'offset', 'oge', 'ogt', 'ole', 'olt', 'one', 'opaque', 'optforfuzzing', |
420 'offset', 'oge', 'ogt', 'ole', 'olt', 'one', 'opaque', 'optforfuzzing', |
421 'optnone', 'optsize', 'or', 'ord', 'path', 'personality', 'phi', 'ppc_fp128', |
421 'optnone', 'optsize', 'or', 'ord', 'path', 'personality', 'phi', 'poison', |
422 'prefix', 'preserve_allcc', 'preserve_mostcc', 'private', 'prologue', |
422 'prefix', 'preserve_allcc', 'preserve_mostcc', 'private', 'prologue', |
423 'protected', 'ptrtoint', 'ptx_device', 'ptx_kernel', 'readnone', 'readNone', |
423 'protected', 'ptrtoint', 'ptx_device', 'ptx_kernel', 'readnone', 'readNone', |
424 'readonly', 'readOnly', 'reassoc', 'refs', 'relbf', 'release', 'resByArg', |
424 'readonly', 'readOnly', 'reassoc', 'refs', 'relbf', 'release', 'resByArg', |
425 'resume', 'ret', 'returnDoesNotAlias', 'returned', 'returns_twice', 'safestack', |
425 'resume', 'ret', 'returnDoesNotAlias', 'returned', 'returns_twice', 'safestack', |
426 'samesize', 'sanitize_address', 'sanitize_hwaddress', 'sanitize_memory', |
426 'samesize', 'sanitize_address', 'sanitize_hwaddress', 'sanitize_memory', |
436 'udiv', 'ueq', 'uge', 'ugt', 'uitofp', 'ule', 'ult', 'umax', 'umin', 'undef', |
436 'udiv', 'ueq', 'uge', 'ugt', 'uitofp', 'ule', 'ult', 'umax', 'umin', 'undef', |
437 'une', 'uniformRetVal', 'uniqueRetVal', 'unknown', 'unnamed_addr', 'uno', |
437 'une', 'uniformRetVal', 'uniqueRetVal', 'unknown', 'unnamed_addr', 'uno', |
438 'unordered', 'unreachable', 'unsat', 'unwind', 'urem', 'uselistorder', |
438 'unordered', 'unreachable', 'unsat', 'unwind', 'urem', 'uselistorder', |
439 'uselistorder_bb', 'uwtable', 'va_arg', 'variable', 'vFuncId', |
439 'uselistorder_bb', 'uwtable', 'va_arg', 'variable', 'vFuncId', |
440 'virtualConstProp', 'void', 'volatile', 'weak', 'weak_odr', 'webkit_jscc', |
440 'virtualConstProp', 'void', 'volatile', 'weak', 'weak_odr', 'webkit_jscc', |
441 'win64cc', 'within', 'wpdRes', 'wpdResolutions', 'writeonly', 'x', |
441 'win64cc', 'within', 'wpdRes', 'wpdResolutions', 'writeonly', |
442 'x86_64_sysvcc', 'x86_fastcallcc', 'x86_fp80', 'x86_intrcc', 'x86_mmx', |
442 'x86_64_sysvcc', 'x86_fastcallcc', 'x86_intrcc', 'x86_mmx', |
443 'x86_regcallcc', 'x86_stdcallcc', 'x86_thiscallcc', 'x86_vectorcallcc', 'xchg', |
443 'x86_regcallcc', 'x86_stdcallcc', 'x86_thiscallcc', 'x86_vectorcallcc', 'xchg', |
444 'xor', 'zeroext', 'zeroinitializer', 'zext', 'immarg', 'willreturn'), |
444 'xor', 'zeroext', 'zeroinitializer', 'zext', 'immarg', 'willreturn'), |
445 suffix=r'\b'), Keyword), |
445 suffix=r'\b'), Keyword), |
446 |
446 |
447 # Types |
447 # Types |
448 (words(('void', 'half', 'float', 'double', 'x86_fp80', 'fp128', |
448 (words(('void', 'half', 'bfloat', 'float', 'double', 'fp128', |
449 'ppc_fp128', 'label', 'metadata', 'token')), Keyword.Type), |
449 'x86_fp80', 'ppc_fp128', 'label', 'metadata', 'token')), |
|
450 Keyword.Type), |
450 |
451 |
451 # Integer types |
452 # Integer types |
452 (r'i[1-9]\d*', Keyword) |
453 (r'i[1-9]\d*', Keyword.Type) |
453 ] |
454 ] |
454 } |
455 } |
455 |
456 |
456 |
457 |
457 class LlvmMirBodyLexer(RegexLexer): |
458 class LlvmMirBodyLexer(RegexLexer): |