mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
TableGen'erated MC lowering for simple pseudo-instructions.
This allows the (many) pseudo-instructions we have that map onto a single real instruction to have their expansion during MC lowering handled automatically instead of the current cumbersome manual expansion required. These sorts of pseudos are common when an instruction is used in situations that require different MachineInstr flags (isTerminator, isBranch, et. al.) than the generic instruction description has. For example, using a move to the PC to implement a branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -373,6 +373,14 @@ class Instruction {
|
||||
///@}
|
||||
}
|
||||
|
||||
/// PseudoInstExpansion - Expansion information for a pseudo-instruction.
|
||||
/// Which instruction it expands to and how the operands map from the
|
||||
/// pseudo.
|
||||
class PseudoInstExpansion<dag Result> {
|
||||
dag ResultInst = Result; // The instruction to generate.
|
||||
bit isPseudo = 1;
|
||||
}
|
||||
|
||||
/// Predicates - These are extra conditionals which are turned into instruction
|
||||
/// selector matching code. Currently each predicate is just a string.
|
||||
class Predicate<string cond> {
|
||||
|
Reference in New Issue
Block a user