[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 3 18:12:21 PST 2006
Changes in directory llvm/include/llvm/Target:
TargetLowering.h updated: 1.46 -> 1.47
---
Log message:
Add some methods for inline asm support.
---
Diffs of the changes: (+16 -3)
TargetLowering.h | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.46 llvm/include/llvm/Target/TargetLowering.h:1.47
--- llvm/include/llvm/Target/TargetLowering.h:1.46 Fri Feb 3 16:24:05 2006
+++ llvm/include/llvm/Target/TargetLowering.h Fri Feb 3 20:12:09 2006
@@ -298,7 +298,7 @@
/// New, such that callers of SetBitsAreZero may call CombineTo on them if
/// desired.
bool DemandedBitsAreZero(const SDOperand &Op, uint64_t Mask, SDOperand &Old,
- SDOperand &New, SelectionDAG &DAG);
+ SDOperand &New, SelectionDAG &DAG) const;
//===--------------------------------------------------------------------===//
// TargetLowering Configuration Methods - These methods should be invoked by
@@ -442,13 +442,26 @@
// Inline Asm Support hooks
//
+ enum ConstraintType {
+ C_RegisterClass, // Constraint represents one or more registers.
+ C_Other, // Something else.
+ C_Unknown // Unsupported constraint.
+ // INTEGER, ADDRESS, MEMORY?
+ };
+
+ /// getConstraintType - Given a constraint letter, return the type of
+ /// constraint it is for this target.
+ ConstraintType getConstraintType(char ConstraintLetter) const;
+
/// getRegForInlineAsmConstraint - Given a constraint letter or register
/// name (e.g. "r" or "edx"), return a list of registers that can be used to
- /// satisfy the constraint. If the constraint isn't supported, or isn't a
- /// register constraint, return an empty list.
+ /// satisfy the constraint. This should only be used for physregs and
+ /// C_RegisterClass constraints.
virtual std::vector<unsigned>
getRegForInlineAsmConstraint(const std::string &Constraint) const;
+ virtual bool isOperandValidForConstraint(SDOperand Op, char ConstraintLetter);
+
//===--------------------------------------------------------------------===//
// Scheduler hooks
//
More information about the llvm-commits
mailing list