projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
The transform that tries to turn calls to bitcast functions into
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
getelementptr_cast.ll
1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2
; RUN: notcast {} {getelementptr.*}
3
4
%G = external global [3 x sbyte]
5
6
implementation
7
8
ubyte *%foo(uint %Idx) {
9
%tmp = getelementptr ubyte* cast ([3 x sbyte]* %G to ubyte*), uint %Idx
10
ret ubyte* %tmp
11
}