diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-15 06:00:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-15 06:00:16 +0000 |
commit | 2cacec55f947c716b058a39038889550d7e39b3c (patch) | |
tree | dc66a0d042a020fd18baa16e52fe5e205ef0e073 /utils/TableGen/CodeGenTarget.h | |
parent | 6894b07996757134b7036753fcad85f354a0f5bd (diff) |
Completely rewrite tblgen's type inference mechanism,
changing the primary datastructure from being a
"std::vector<unsigned char>" to being a new TypeSet class
that actually has (gasp) invariants!
This changes more things than I remember, but one major
innovation here is that it enforces that named input
values agree in type with their output values.
This also eliminates code that transparently assumes (in
some cases) that SDNodeXForm input/output types are the
same, because this is wrong in many case.
This also eliminates a bug which caused a lot of ambiguous
patterns to go undetected, where a register class would
sometimes pick the first possible type, causing an
ambiguous pattern to get arbitrary results.
With all the recent target changes, this causes no
functionality change!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index 07bc54d28d..1df74af362 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -167,7 +167,7 @@ public: /// getRegisterVTs - Find the union of all possible SimpleValueTypes for the /// specified physical register. - std::vector<unsigned char> getRegisterVTs(Record *R) const; + std::vector<MVT::SimpleValueType> getRegisterVTs(Record *R) const; const std::vector<MVT::SimpleValueType> &getLegalValueTypes() const { if (LegalValueTypes.empty()) ReadLegalValueTypes(); |