[PATCH] D90177: [BitCode] decode nossp fn attr
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 11:03:48 PDT 2020
nickdesaulniers created this revision.
nickdesaulniers added reviewers: srhines, void, pirama.
Herald added subscribers: llvm-commits, jdoerfert, hiraditya.
Herald added a project: LLVM.
nickdesaulniers requested review of this revision.
I missed this in https://reviews.llvm.org/D87956.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90177
Files:
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/attributes.ll
Index: llvm/test/Bitcode/attributes.ll
===================================================================
--- llvm/test/Bitcode/attributes.ll
+++ llvm/test/Bitcode/attributes.ll
@@ -404,6 +404,12 @@
ret void
}
+; CHECK; define void @f69() #42
+define void @f69() nossp
+{
+ ret void
+}
+
; CHECK: attributes #0 = { noreturn }
; CHECK: attributes #1 = { nounwind }
; CHECK: attributes #2 = { readnone }
@@ -446,4 +452,5 @@
; CHECK: attributes #39 = { sanitize_memtag }
; CHECK: attributes #40 = { null_pointer_is_valid }
; CHECK: attributes #41 = { mustprogress }
+; CHECK: attributes #42 = { nossp }
; CHECK: attributes #[[NOBUILTIN]] = { nobuiltin }
Index: llvm/lib/Bitcode/Reader/BitcodeReader.cpp
===================================================================
--- llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -1537,6 +1537,8 @@
return Attribute::ByRef;
case bitc::ATTR_KIND_MUSTPROGRESS:
return Attribute::MustProgress;
+ case bitc::ATTR_KIND_NO_STACK_PROTECT:
+ return Attribute::NoStackProtect;
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90177.300743.patch
Type: text/x-patch
Size: 1093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201026/9c481776/attachment.bin>
More information about the llvm-commits
mailing list