llvm-6502/lib
Duncan Sands f413cdfb0b When simplifying a call to a bitcast function, tighten up
the conditions for performing the transform when only the
function declaration is available: no longer allow turning
i32 into i64 for example.  Only allow changing between
pointer types, and between pointer types and integers of
the same size.  For return values ptr -> intptr was already
allowed; I added ptr -> ptr and intptr -> ptr while there.
As shown by a recent objc testcase, changing the way
parameters/return values are passed can be fatal when calling
code written in assembler that directly manipulates call
arguments and return values unless the transform has no
impact on the way they are passed at the codegen level.
While it is possible to imagine an ABI that treats integers
of pointer size differently to pointers, I don't think LLVM
supports any so the transform should now be safe while still
being useful.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51834 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-01 07:38:42 +00:00
..
Analysis Fix a typo in a comment. 2008-05-30 00:08:18 +00:00
Archive Create archives with the same permissions are ar. 2008-05-24 05:42:29 +00:00
AsmParser IR, bitcode reader, bitcode writer, and asmparser changes to 2008-05-31 00:58:22 +00:00
Bitcode Improved bitcode support for insertvalue/extractvalue. 2008-05-31 19:11:15 +00:00
CodeGen Remove an unused variable. 2008-05-31 01:44:25 +00:00
Debugger Make these variables static. 2008-04-23 23:15:23 +00:00
ExecutionEngine Add #includes to make some dependencies explicit. 2008-05-23 20:40:06 +00:00
Linker Factor code to copy global value attributes like 2008-05-26 19:58:59 +00:00
Support Give a proper error message when a command line option is defined more than 2008-05-30 13:26:11 +00:00
System Unbreak build. 2008-05-29 22:02:08 +00:00
Target Fixed flag issue that was generating infinite loop while in list scheduling. 2008-06-01 03:49:39 +00:00
Transforms When simplifying a call to a bitcast function, tighten up 2008-06-01 07:38:42 +00:00
VMCore AsmWriter support for insertvalue/extractvalue. These instructions can 2008-05-31 19:12:39 +00:00
Makefile