[llvm] [emacs] Add noext as an attribute in llvm-mode.el (PR #121444)
Jonas Paulsson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 1 16:06:04 PST 2025
https://github.com/JonPsson1 created https://github.com/llvm/llvm-project/pull/121444
The NoExt attribute was introduced with 1412022, to exist alongside with signext and zeroext.
Add "noext" as an attribute to llvm-mode.el to get the proper highlighting of the keyword.
(For test case using this attribute, see for example llvm/test/CodeGen/SystemZ/args-14.ll)
@goldsteinn @lukel97
>From 17436aa46d73a9b8be83340d58dff05509520720 Mon Sep 17 00:00:00 2001
From: Jonas Paulsson <paulson1 at linux.ibm.com>
Date: Wed, 1 Jan 2025 17:59:18 -0600
Subject: [PATCH] Add noext as an attribute in llvm-mode.el
---
llvm/utils/emacs/llvm-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/emacs/llvm-mode.el b/llvm/utils/emacs/llvm-mode.el
index dab37833ff63a9..660d0718f098c4 100644
--- a/llvm/utils/emacs/llvm-mode.el
+++ b/llvm/utils/emacs/llvm-mode.el
@@ -32,7 +32,7 @@
`(,(regexp-opt
'("alwaysinline" "argmemonly" "allocsize" "builtin" "cold" "convergent" "dereferenceable" "dereferenceable_or_null" "hot" "immarg" "inaccessiblememonly"
"inaccessiblemem_or_argmemonly" "inalloca" "inlinehint" "jumptable" "minsize" "mustprogress" "naked" "nobuiltin" "nonnull" "nocapture"
- "nocallback" "nocf_check" "noduplicate" "nofree" "noimplicitfloat" "noinline" "nomerge" "nonlazybind" "noprofile" "noredzone" "noreturn"
+ "nocallback" "nocf_check" "noduplicate" "noext" "nofree" "noimplicitfloat" "noinline" "nomerge" "nonlazybind" "noprofile" "noredzone" "noreturn"
"norecurse" "nosync" "noundef" "nounwind" "nosanitize_bounds" "nosanitize_coverage" "null_pointer_is_valid" "optdebug" "optforfuzzing" "optnone" "optsize" "preallocated" "readnone" "readonly" "returned" "returns_twice"
"shadowcallstack" "signext" "speculatable" "speculative_load_hardening" "ssp" "sspreq" "sspstrong" "safestack" "sanitize_address" "sanitize_hwaddress" "sanitize_memtag"
"sanitize_thread" "sanitize_memory" "strictfp" "swifterror" "uwtable" "vscale_range" "willreturn" "writeonly" "zeroext") 'symbols) . font-lock-constant-face)
More information about the llvm-commits
mailing list