Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing keywords in LLVM lexer #1502

Closed
guiferviz opened this issue Apr 15, 2020 · 0 comments · Fixed by #1505
Closed

Missing keywords in LLVM lexer #1502

guiferviz opened this issue Apr 15, 2020 · 0 comments · Fixed by #1505
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@guiferviz
Copy link

Name of the lexer
LLVM Lexer.

Code sample
I'm using Rouge from Jekyll.
A sample of the code that produces the bug:

source_filename = "main.ura"

Screenshot_2020-04-15_13-13-42

More info about source_filename in the LLVM LangRef.

Additional information

Apart from that keyword, which is the only failure I've found so far, I read the Pygments LLVM lexer and I observed that it contains a lot more keywords.
I computed the difference between the Rouge keywords + instructions + types and the Pygments ones and I get 162 words that are not present in Rouge but present in Pygments:

['acq_rel', 'acquire', 'afn', 'aliasee', 'alignLog2', 'allOnes', 'amdgpu_cs', 'amdgpu_es', 'amdgpu_gs', 'amdgpu_hs', 'amdgpu_kernel', 'amdgpu_ls', 'amdgpu_ps', 'amdgpu_vs', 'any', 'anyregcc', 'args', 'atomic', 'atomicrmw', 'avr_intrcc', 'avr_signalcc', 'bit', 'bitMask', 'blockaddress', 'branchFunnel', 'byArg', 'byte', 'byteArray', 'callee', 'caller', 'calls', 'catchpad', 'catchret', 'catchswitch', 'cleanuppad', 'cleanupret', 'cmpxchg', 'comdat', 'contract', 'critical', 'cxx_fast_tlscc', 'deplibs', 'dereferenceable', 'dereferenceable_or_null', 'distinct', 'dsoLocal', 'dso_local', 'dso_preemptable', 'exactmatch', 'externally_initialized', 'fence', 'filter', 'flags', 'from', 'funcFlags', 'function', 'ghccc', 'guid', 'gv', 'hash', 'hhvm_ccc', 'hhvmcc', 'hot', 'hotness', 'ifunc', 'immarg', 'inalloca', 'indir', 'indirectbr', 'info', 'initialexec', 'inline', 'inlineBits', 'inrange', 'insts', 'intel_ocl_bicc', 'inteldialect', 'kind', 'largest', 'linkage', 'live', 'local_unnamed_addr', 'localdynamic',
'localexec', 'max', 'min', 'monotonic', 'msp430_intrcc', 'musttail', 'name', 'nand', 'noRecurse', 'noduplicates', 'none', 'nonnull', 'notEligibleToImport', 'notail', 'offset', 'path', 'prefix', 'preserve_allcc', 'preserve_mostcc', 'prologue', 'readNone', 'readOnly', 'reassoc', 'refs', 'relbf', 'release', 'resByArg', 'returnDoesNotAlias', 'returned', 'samesize', 'seq_cst', 'single', 'singleImpl', 'singleImplName', 'sizeM1', 'sizeM1BitWidth', 'source_filename', 'spir_func', 'spir_kernel', 'summaries', 'summary', 'swiftcc', 'swifterror', 'swiftself', 'syncscope', 'token', 'typeCheckedLoadConstVCalls', 'typeCheckedLoadVCalls', 'typeIdInfo', 'typeTestAssumeConstVCalls', 'typeTestAssumeVCalls', 'typeTestRes', 'typeTests', 'typeid', 'umax', 'umin', 'uniformRetVal', 'uniqueRetVal', 'unknown', 'unordered', 'unsat', 'uselistorder', 'uselistorder_bb', 'vFuncId', 'variable', 'virtualConstProp',
'webkit_jscc', 'willreturn', 'win64cc', 'within', 'wpdRes', 'wpdResolutions', 'x86_64_sysvcc', 'x86_intrcc', 'x86_mmx', 'x86_regcallcc', 'x86_thiscallcc', 'x86_vectorcallcc', 'xchg']
@guiferviz guiferviz added the bugfix-request A request for a bugfix to be developed. label Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant