mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Add the SubRegIndex TableGen class.
This is the beginning of purely symbolic subregister indices, but we need a bit of jiggling before the explicit numeric indices can be completely removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104492 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1057,6 +1057,11 @@ static EEVT::TypeSet getImplicitType(Record *R, unsigned ResNo,
|
||||
const CodeGenTarget &T = TP.getDAGPatterns().getTargetInfo();
|
||||
return EEVT::TypeSet(T.getRegisterVTs(R));
|
||||
}
|
||||
|
||||
if (R->isSubClassOf("SubRegIndex")) {
|
||||
assert(ResNo == 0 && "SubRegisterIndices only produce one result!");
|
||||
return EEVT::TypeSet();
|
||||
}
|
||||
|
||||
if (R->isSubClassOf("ValueType") || R->isSubClassOf("CondCode")) {
|
||||
assert(ResNo == 0 && "This node only has one result!");
|
||||
|
Reference in New Issue
Block a user