You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
parent
5cd5df71cc
commit
8e12397d70
24
external/llvm/test/Transforms/FunctionAttrs/optnone.ll
vendored
Normal file
24
external/llvm/test/Transforms/FunctionAttrs/optnone.ll
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
; RUN: opt < %s -functionattrs -S | FileCheck %s
|
||||
|
||||
@x = global i32 0
|
||||
|
||||
define void @test_opt(i8* %p) {
|
||||
; CHECK-LABEL: @test_opt
|
||||
; CHECK: (i8* nocapture readnone %p) #0 {
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @test_optnone(i8* %p) noinline optnone {
|
||||
; CHECK-LABEL: @test_optnone
|
||||
; CHECK: (i8* %p) #1 {
|
||||
ret void
|
||||
}
|
||||
|
||||
declare i8 @strlen(i8*) noinline optnone
|
||||
; CHECK-LABEL: @strlen
|
||||
; CHECK: (i8*) #1
|
||||
|
||||
; CHECK-LABEL: attributes #0
|
||||
; CHECK: = { norecurse readnone }
|
||||
; CHECK-LABEL: attributes #1
|
||||
; CHECK: = { noinline optnone }
|
Reference in New Issue
Block a user