summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/ValueTypes.h
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 15:19:11 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2012-12-19 15:19:11 +0000
commitc698d3a2a40f0909d16cbe857685f0f22cb9ae43 (patch)
tree01ff056b23a49dfd626a2f24d1a65813ae906463 /include/llvm/CodeGen/ValueTypes.h
parentcd7ee1ced017d7a957113df9d6cf855ecbc3797e (diff)
downloadllvm-c698d3a2a40f0909d16cbe857685f0f22cb9ae43.tar.gz
llvm-c698d3a2a40f0909d16cbe857685f0f22cb9ae43.tar.bz2
llvm-c698d3a2a40f0909d16cbe857685f0f22cb9ae43.tar.xz
Change AsmOperandInfo::ConstraintVT to MVT, instead of EVT.
Accordingly, add MVT::getVT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ValueTypes.h')
-rw-r--r--include/llvm/CodeGen/ValueTypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ValueTypes.h b/include/llvm/CodeGen/ValueTypes.h
index b9f429537c..931a47ee02 100644
--- a/include/llvm/CodeGen/ValueTypes.h
+++ b/include/llvm/CodeGen/ValueTypes.h
@@ -499,6 +499,12 @@ namespace llvm {
}
return (MVT::SimpleValueType)(MVT::INVALID_SIMPLE_VALUE_TYPE);
}
+
+ /// Return the value type corresponding to the specified type. This returns
+ /// all pointers as iPTR. If HandleUnknown is true, unknown types are
+ /// returned as Other, otherwise they are invalid.
+ static MVT getVT(Type *Ty, bool HandleUnknown = false);
+
};