diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-01 07:17:45 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-01 07:17:45 +0000 |
commit | 86a5a368f82ed3898689f602f1978778a6e4a369 (patch) | |
tree | ad3052ec5af22bf83865673f8baf048cb48a4646 /include | |
parent | 87a6428bf5ee9a85eded501653b5cb1137251091 (diff) | |
download | external_llvm-86a5a368f82ed3898689f602f1978778a6e4a369.zip external_llvm-86a5a368f82ed3898689f602f1978778a6e4a369.tar.gz external_llvm-86a5a368f82ed3898689f602f1978778a6e4a369.tar.bz2 |
For PR1297:
Add an "iAny" ValueType as a place holder for an integer type of any
bit width. This is used for intrinsics overloading on integer type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ValueTypes.h | 5 | ||||
-rw-r--r-- | include/llvm/CodeGen/ValueTypes.td | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index f35f460..cbf37a6 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -66,6 +66,11 @@ namespace MVT { // MVT = Machine Value Types LAST_VALUETYPE = 25, // This always remains at the end of the list. + // iAny - An integer value of any bit width. This is used for intrinsics + // that have overloadings based on integer bit widths. This is only for + // tblgen's consumption! + iAny = 254, + // iPTR - An int value the size of the pointer of the current // target. This should only be used internal to tblgen! iPTR = 255 diff --git a/include/llvm/CodeGen/ValueTypes.td b/include/llvm/CodeGen/ValueTypes.td index 8c47583..0541785 100644 --- a/include/llvm/CodeGen/ValueTypes.td +++ b/include/llvm/CodeGen/ValueTypes.td @@ -46,6 +46,8 @@ def v2f32 : ValueType<64, 22>; // 2 x f32 vector value def v4f32 : ValueType<128, 23>; // 4 x f32 vector value def v2f64 : ValueType<128, 24>; // 2 x f64 vector value +// Pseudo valuetype to represent "integer of any bit width" +def iAny : ValueType<0 , 254>; // integer value of any bit width // Pseudo valuetype mapped to the current pointer size. def iPTR : ValueType<0 , 255>; |