[llvm-commits] CVS: llvm/include/llvm/Intrinsics.h

Reid Spencer reid at x10sys.com
Mon Jan 16 13:12:53 PST 2006



Changes in directory llvm/include/llvm:

Intrinsics.h updated: 1.35 -> 1.36
---
Log message:

For PR411: http://llvm.cs.uiuc.edu/PR411 :
This patch is an incremental step towards supporting a flat symbol table.
It de-overloads the intrinsic functions by providing type-specific intrinsics
and arranging for automatically upgrading from the old overloaded name to
the new non-overloaded name. Specifically:
  llvm.isunordered -> llvm.isunordered.f32, llvm.isunordered.f64
  llvm.sqrt -> llvm.sqrt.f32, llvm.sqrt.f64
  llvm.ctpop -> llvm.ctpop.i8, llvm.ctpop.i16, llvm.ctpop.i32, llvm.ctpop.i64
  llvm.ctlz -> llvm.ctlz.i8, llvm.ctlz.i16, llvm.ctlz.i32, llvm.ctlz.i64
  llvm.cttz -> llvm.cttz.i8, llvm.cttz.i16, llvm.cttz.i32, llvm.cttz.i64
New code should not use the overloaded intrinsic names. Warnings will be 
emitted if they are used.


---
Diffs of the changes:  (+16 -5)

 Intrinsics.h |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)


Index: llvm/include/llvm/Intrinsics.h
diff -u llvm/include/llvm/Intrinsics.h:1.35 llvm/include/llvm/Intrinsics.h:1.36
--- llvm/include/llvm/Intrinsics.h:1.35	Fri Jan 13 19:25:24 2006
+++ llvm/include/llvm/Intrinsics.h	Mon Jan 16 15:12:35 2006
@@ -62,16 +62,27 @@
     memcpy,         // Copy non-overlapping memory blocks
     memmove,        // Copy potentially overlapping memory blocks
     memset,         // Fill memory with a byte value
-    isunordered,    // Return true if either argument is a NaN
-    sqrt,           // Square root
+    isunordered_f32,// Return true if either float argument is a NaN
+    isunordered_f64,// Return true if either double argument is a NaN
+    sqrt_f32,       // Square root of float
+    sqrt_f64,       // Square root of double
 
     // Bit manipulation instrinsics.
     bswap_i16,      // Byteswap 16 bits
     bswap_i32,      // Byteswap 32 bits
     bswap_i64,      // Byteswap 64 bits
-    ctpop,          // Count population
-    ctlz,           // Count leading zeros
-    cttz,           // Count trailing zeros
+    ctpop_i8,       // Count population of sbyte
+    ctpop_i16,      // Count population of short
+    ctpop_i32,      // Count population of int
+    ctpop_i64,      // Count population of long
+    ctlz_i8,        // Count leading zeros of sbyte
+    ctlz_i16,       // Count leading zeros of short
+    ctlz_i32,       // Count leading zeros of int
+    ctlz_i64,       // Count leading zeros of long
+    cttz_i8,        // Count trailing zeros of sbyte
+    cttz_i16,       // Count trailing zeros of short
+    cttz_i32,       // Count trailing zeros of int
+    cttz_i64,       // Count trailing zeros of long
     
     // Input/Output intrinsics.
     readport,






More information about the llvm-commits mailing list