Skip to content

Commit

Permalink
[llvm_ir_correct] Expect memory(none) as replacements for readnone
Browse files Browse the repository at this point in the history
The `readnone` function attribute has been replaced with `memory(none)`, at
least in some cases. This patch updates test/llvm_ir_correct/sincos.f90 to
be compatible with both LLVM 15 and LLVM 16. See the Discourse link below
for details:

  https://discourse.llvm.org/t/rfc-unify-memory-effect-attributes/65579
  • Loading branch information
bryanpkc committed Jun 28, 2023
1 parent f1ab81d commit 49fcd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/llvm_ir_correct/sincos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ subroutine testB(r1,r2,r3,r4,r5,r6)
! CHECK: declare float @__ps_sin_1(float) #[[ATTR_ID]]
! CHECK: declare float @__ps_cos_1(float) #[[ATTR_ID]]

! CHECK: attributes #[[ATTR_ID]] = { nounwind readnone willreturn
! CHECK: attributes #[[ATTR_ID]] = { nounwind {{willreturn memory\(none\)|readnone willreturn}}

0 comments on commit 49fcd8d

Please sign in to comment.