brintos

brintos / llvm-project-archived public Read only

0
0
Text · 458 B · 0ffa337 Raw
23 lines · plain
1; RUN: llvm-extract -func foo -S %s | FileCheck %s2 3; llvm-extract should not copy ifuncs into the new module, so make sure they4; are turned into declarations.5 6; CHECK: define void @foo() {7; CHECK: call void @ifunc()8define void @foo() {9  call void @ifunc()10  ret void11}12 13define void @ifunc_impl() {14  ret void15}16 17; CHECK: declare void @ifunc()18@ifunc = ifunc void (), ptr @ifunc_resolver19 20define internal ptr @ifunc_resolver() {21  ret ptr @ifunc_impl22}23