• This project
    • Loading...
  • Sign in

2020-2-capstone-design2 / 2015104175

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • 2015104175
  • llvm-project
  • llvm
  • test
  • Transforms
  • Inline
  • externally_available.ll
  • 박우진's avatar
    change code · a35557a7
    a35557a7
    박우진 authored 2020-12-16 22:17:29 +0900
externally_available.ll 386 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
; RUN: opt < %s -inline -constprop -S | FileCheck %s

define available_externally i32 @test_function() {
; CHECK-NOT: @test_function
entry:
  ret i32 4
}


define i32 @result() {
; CHECK-LABEL: define i32 @result()
entry:
  %A = call i32 @test_function()
; CHECK-NOT: call
; CHECK-NOT: @test_function

  %B = add i32 %A, 1
  ret i32 %B
; CHECK: ret i32 5
}

; CHECK-NOT: @test_function