mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
add plumbing for handling multiple result nodes
in some more places. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -713,10 +713,11 @@ SDNodeInfo::SDNodeInfo(Record *R) : Def(R) {
|
||||
/// getKnownType - If the type constraints on this node imply a fixed type
|
||||
/// (e.g. all stores return void, etc), then return it as an
|
||||
/// MVT::SimpleValueType. Otherwise, return EEVT::Other.
|
||||
MVT::SimpleValueType SDNodeInfo::getKnownType() const {
|
||||
MVT::SimpleValueType SDNodeInfo::getKnownType(unsigned ResNo) const {
|
||||
unsigned NumResults = getNumResults();
|
||||
assert(NumResults <= 1 &&
|
||||
"We only work with nodes with zero or one result so far!");
|
||||
assert(ResNo == 0 && "Only handles single result nodes so far");
|
||||
|
||||
for (unsigned i = 0, e = TypeConstraints.size(); i != e; ++i) {
|
||||
// Make sure that this applies to the correct node result.
|
||||
|
||||
Reference in New Issue
Block a user