From e1562c82ca9a3be3582d4c80ac6fa298e8137990 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 27 Mar 2006 22:48:00 +0000 Subject: [PATCH] add a new iPTR ValueType for tblgen use git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27187 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/ValueTypes.h | 6 +++++- include/llvm/CodeGen/ValueTypes.td | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h index ff1bfc26d2e..d22fc52b6ac 100644 --- a/include/llvm/CodeGen/ValueTypes.h +++ b/include/llvm/CodeGen/ValueTypes.h @@ -63,7 +63,11 @@ namespace MVT { // MVT = Machine Value Types FIRST_VECTOR_VALUETYPE = v8i8, LAST_VECTOR_VALUETYPE = v2f64, - LAST_VALUETYPE = 24 // This always remains at the end of the list. + LAST_VALUETYPE = 24, // This always remains at the end of the list. + + // iPTR - An int value the size of the pointer of the current + // target. This should only be used internal to tblgen! + iPTR = 255 }; /// MVT::isInteger - Return true if this is a simple integer, or a packed diff --git a/include/llvm/CodeGen/ValueTypes.td b/include/llvm/CodeGen/ValueTypes.td index bd221559f37..4e384adc2cf 100644 --- a/include/llvm/CodeGen/ValueTypes.td +++ b/include/llvm/CodeGen/ValueTypes.td @@ -43,3 +43,7 @@ def v2i64 : ValueType<128, 20>; // 2 x i64 vector value def v2f32 : ValueType<64, 21>; // 2 x f32 vector value def v4f32 : ValueType<128, 22>; // 4 x f32 vector value def v2f64 : ValueType<128, 23>; // 2 x f64 vector value + + +// Pseudo valuetype mapped to the current pointer size. +def iPTR : ValueType<0 , 255>;