Skip to content

Commit

Permalink
Add new keywords to LLVM IR mode (#6262)
Browse files Browse the repository at this point in the history
Add new keywords to LLVM IR, taken from the list:
https://llvm.org/docs/LangRef.html#parameter-attributes
  • Loading branch information
marcauberer committed Apr 1, 2024
1 parent c2fa676 commit 5a352d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions static/modes/llvm-ir-mode.ts
Expand Up @@ -45,6 +45,7 @@ export function definition(): monaco.languages.IMonarchLanguage {
'label',
'opaque',
'token',
'ptr',
],
// llvmStatement
statements: [
Expand Down Expand Up @@ -157,6 +158,8 @@ export function definition(): monaco.languages.IMonarchLanguage {
'alias',
'align',
'alignstack',
'allocalign',
'allocptr',
'alwaysinline',
'appending',
'argmemonly',
Expand All @@ -168,6 +171,7 @@ export function definition(): monaco.languages.IMonarchLanguage {
'available_externally',
'blockaddress',
'builtin',
'byref',
'byval',
'c',
'catch',
Expand All @@ -180,16 +184,19 @@ export function definition(): monaco.languages.IMonarchLanguage {
'common',
'constant',
'datalayout',
'dead_on_unwind',
'declare',
'default',
'define',
'deplibs',
'dereferenceable',
'dereferenceable_or_null',
'distinct',
'dllexport',
'dllimport',
'dso_local',
'dso_preemptable',
'elementtype',
'except',
'external',
'externally_initialized',
Expand All @@ -202,6 +209,8 @@ export function definition(): monaco.languages.IMonarchLanguage {
'hhvmcc',
'hhvm_ccc',
'hidden',
'immarg',
'inalloca',
'initialexec',
'inlinehint',
'inreg',
Expand All @@ -223,17 +232,21 @@ export function definition(): monaco.languages.IMonarchLanguage {
'noalias',
'nobuiltin',
'nocapture',
'nofree',
'nofpclass',
'noimplicitfloat',
'noinline',
'nonlazybind',
'nonnull',
'norecurse',
'noredzone',
'noreturn',
'noundef',
'nounwind',
'optnone',
'optsize',
'personality',
'preallocated',
'private',
'protected',
'ptx_device',
Expand All @@ -260,7 +273,10 @@ export function definition(): monaco.languages.IMonarchLanguage {
'sspreq',
'sspstrong',
'strictfp',
'swiftasync',
'swiftcc',
'swifterror',
'swiftself',
'tail',
'target',
'thread_local',
Expand All @@ -275,6 +291,7 @@ export function definition(): monaco.languages.IMonarchLanguage {
'weak',
'weak_odr',
'within',
'writable',
'writeonly',
'x86_64_sysvcc',
'win64cc',
Expand Down

0 comments on commit 5a352d6

Please sign in to comment.