Thread LLVMContext through MVT and related parts of SDISel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson
2009-07-09 17:57:24 +00:00
parent 80c8c31782
commit d1474d09cb
25 changed files with 131 additions and 101 deletions

View File

@@ -23,6 +23,7 @@
namespace llvm {
class Type;
class LLVMContext;
struct MVT { // MVT = Machine Value Type
public:
@@ -487,7 +488,7 @@ namespace llvm {
/// getTypeForMVT - This method returns an LLVM type corresponding to the
/// specified MVT. For integer types, this returns an unsigned type. Note
/// that this will abort for types that cannot be represented.
const Type *getTypeForMVT() const;
const Type *getTypeForMVT(LLVMContext &Context) const;
/// getMVT - Return the value type corresponding to the specified type.
/// This returns all pointers as iPTR. If HandleUnknown is true, unknown