File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,20 @@ class Instruction : InstructionEncoding {
697
697
// Scheduling information from TargetSchedule.td.
698
698
list<SchedReadWrite> SchedRW;
699
699
700
- string Constraints = ""; // OperandConstraint, e.g. $src = $dst.
700
+ /// Support for operand constraints. There are currently two kinds:
701
+ /// "$src = $dst"
702
+ /// Ensures that the operands are allocated to the same register.
703
+ ///
704
+ /// "@earlyclobber $rd"
705
+ /// Ensures that LLVM will not use the same register for any inputs (other
706
+ /// than an input tied to this output).
707
+ ///
708
+ /// See also:
709
+ /// - MC/MCInstrDesc.h:OperandConstraint::{TIED_TO, EARLY_CLOBBER}.
710
+ /// - CodeGen/MachineOperand.h:MachineOperand::{TiedTo, IsEarlyClobber}.
711
+ /// - The LLVM IR specification: Section `Output constraints` in the
712
+ /// discussion of inline assembly constraint strings.
713
+ string Constraints = "";
701
714
702
715
/// DisableEncoding - List of operand names (e.g. "$op1,$op2") that should not
703
716
/// be encoded into the output machineinstr.
You can’t perform that action at this time.
0 commit comments