mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Allow more use of iPTR in patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fae2994302
commit
d7c2c86239
@ -36,28 +36,28 @@ MVT::ValueType llvm::getValueType(Record *Rec, const CodeGenTarget *CGT) {
|
||||
std::string llvm::getName(MVT::ValueType T) {
|
||||
switch (T) {
|
||||
case MVT::Other: return "UNKNOWN";
|
||||
case MVT::i1: return "i1";
|
||||
case MVT::i8: return "i8";
|
||||
case MVT::i16: return "i16";
|
||||
case MVT::i32: return "i32";
|
||||
case MVT::i64: return "i64";
|
||||
case MVT::i128: return "i128";
|
||||
case MVT::f32: return "f32";
|
||||
case MVT::f64: return "f64";
|
||||
case MVT::f80: return "f80";
|
||||
case MVT::f128: return "f128";
|
||||
case MVT::Flag: return "Flag";
|
||||
case MVT::isVoid:return "void";
|
||||
case MVT::v8i8: return "v8i8";
|
||||
case MVT::v4i16: return "v4i16";
|
||||
case MVT::v2i32: return "v2i32";
|
||||
case MVT::v16i8: return "v16i8";
|
||||
case MVT::v8i16: return "v8i16";
|
||||
case MVT::v4i32: return "v4i32";
|
||||
case MVT::v2i64: return "v2i64";
|
||||
case MVT::v2f32: return "v2f32";
|
||||
case MVT::v4f32: return "v4f32";
|
||||
case MVT::v2f64: return "v2f64";
|
||||
case MVT::i1: return "MVT::i1";
|
||||
case MVT::i8: return "MVT::i8";
|
||||
case MVT::i16: return "MVT::i16";
|
||||
case MVT::i32: return "MVT::i32";
|
||||
case MVT::i64: return "MVT::i64";
|
||||
case MVT::i128: return "MVT::i128";
|
||||
case MVT::f32: return "MVT::f32";
|
||||
case MVT::f64: return "MVT::f64";
|
||||
case MVT::f80: return "MVT::f80";
|
||||
case MVT::f128: return "MVT::f128";
|
||||
case MVT::Flag: return "MVT::Flag";
|
||||
case MVT::isVoid:return "MVT::void";
|
||||
case MVT::v8i8: return "MVT::v8i8";
|
||||
case MVT::v4i16: return "MVT::v4i16";
|
||||
case MVT::v2i32: return "MVT::v2i32";
|
||||
case MVT::v16i8: return "MVT::v16i8";
|
||||
case MVT::v8i16: return "MVT::v8i16";
|
||||
case MVT::v4i32: return "MVT::v4i32";
|
||||
case MVT::v2i64: return "MVT::v2i64";
|
||||
case MVT::v2f32: return "MVT::v2f32";
|
||||
case MVT::v4f32: return "MVT::v4f32";
|
||||
case MVT::v2f64: return "MVT::v2f64";
|
||||
case MVT::iPTR: return "TLI.getPointerTy()";
|
||||
default: assert(0 && "ILLEGAL VALUE TYPE!"); return "";
|
||||
}
|
||||
|
@ -2830,7 +2830,7 @@ public:
|
||||
if (Pat->getExtTypes() != Other->getExtTypes()) {
|
||||
// Move a type over from 'other' to 'pat'.
|
||||
Pat->setTypes(Other->getExtTypes());
|
||||
emitCheck(Prefix + ".Val->getValueType(0) == MVT::" +
|
||||
emitCheck(Prefix + ".Val->getValueType(0) == " +
|
||||
getName(Pat->getTypeNum(0)));
|
||||
return true;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ void RegisterInfoEmitter::run(std::ostream &OS) {
|
||||
<< " Register Class Value Types...\n const MVT::ValueType " << Name
|
||||
<< "[] = {\n ";
|
||||
for (unsigned i = 0, e = RC.VTs.size(); i != e; ++i)
|
||||
OS << "MVT::" << RC.VTs[i] << ", ";
|
||||
OS << RC.VTs[i] << ", ";
|
||||
OS << "MVT::Other\n };\n\n";
|
||||
}
|
||||
OS << "} // end anonymous namespace\n\n";
|
||||
|
Loading…
Reference in New Issue
Block a user