[llvm] Add IntrWillReturn to intrinsics (PR #101562)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 10:07:46 PDT 2024


================
@@ -0,0 +1,1646 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S < %s -passes=dce  | FileCheck %s
+
+
+; BPF
+
+declare i64 @llvm.bpf.load.half(ptr, i64)
+declare i64 @llvm.bpf.load.word(ptr, i64)
+declare i64 @llvm.bpf.load.byte(ptr, i64)
----------------
arsenm wrote:

Split this into separate files for separate targets. there's been a long term desire to not have intrinsics included if the target isn't built, but this works today 

https://github.com/llvm/llvm-project/pull/101562


More information about the llvm-commits mailing list