mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
This conversion was done with the following bash script:
find test/Transforms -name "*.ll" | \
while read NAME; do
echo "$NAME"
if ! grep -q "^; *RUN: *llc" $NAME; then
TEMP=`mktemp -t temp`
cp $NAME $TEMP
sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \
while read FUNC; do
sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP
done
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186269 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
431 B
LLVM
17 lines
431 B
LLVM
; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
|
|
|
|
; This file makes sure that clang.arc.used is removed even if no other ARC
|
|
; interesting calls are in the module.
|
|
|
|
declare void @clang.arc.use(...) nounwind
|
|
|
|
; Kill calls to @clang.arc.use(...)
|
|
; CHECK-LABEL: define void @test0(
|
|
; CHECK-NOT: clang.arc.use
|
|
; CHECK: }
|
|
define void @test0(i8* %a, i8* %b) {
|
|
call void (...)* @clang.arc.use(i8* %a, i8* %b) nounwind
|
|
ret void
|
|
}
|
|
|