llvm-6502/lib
Reid Spencer 58b563ce43 * Correct the function prototypes for some of the functions to match the
actual spec (int -> uint)
* Add the ability to get/cache the strlen function prototype.
* Make sure generated values are appropriately named for debugging purposes
* Add the SPrintFOptimiation for 4 casts of sprintf optimization:
    sprintf(str,cstr) -> llvm.memcpy(str,cstr) (if cstr has no %)
    sprintf(str,"")   -> store sbyte 0, str
    sprintf(str,"%s",src) -> llvm.memcpy(str,src) (if src is constant)
    sprintf(str,"%c",chr) -> store chr, str   ; store sbyte 0, str+1

The sprintf optimization didn't fire as much as I had hoped:

  2 MultiSource/Applications/SPASS
  5 MultiSource/Benchmarks/McCat/18-imp
 22 MultiSource/Benchmarks/Prolangs-C/TimberWolfMC
  1 MultiSource/Benchmarks/Prolangs-C/assembler
  6 MultiSource/Benchmarks/Prolangs-C/unix-smail
  2 MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21679 91177308-0d34-0410-b5e6-96231b3b80d8
2005-05-04 03:20:21 +00:00
..
Analysis Add llvm.sqrt intrinsic, patch contributed by Morten Ofstad 2005-04-30 03:44:07 +00:00
Archive
AsmParser Remove support for 1.0 style varargs 2005-05-02 19:07:27 +00:00
Bytecode Convert tabs to spaces 2005-04-22 04:01:18 +00:00
CodeGen Implement count leading zeros (ctlz), count trailing zeros (cttz), and count 2005-05-03 17:19:30 +00:00
Debugger
ExecutionEngine Convert tabs to spaces 2005-04-22 04:08:30 +00:00
Linker
Support * Order #includes as per style guide 2005-04-22 19:13:22 +00:00
System Silence gcc-4.0.0 warnings. 2005-04-22 17:56:01 +00:00
Target Implement count leading zeros (ctlz), count trailing zeros (cttz), and count 2005-05-03 17:19:30 +00:00
Transforms * Correct the function prototypes for some of the functions to match the 2005-05-04 03:20:21 +00:00
VMCore Implement count leading zeros (ctlz), count trailing zeros (cttz), and count 2005-05-03 17:19:30 +00:00
Makefile