LLVM API Documentation
This contains information for each constraint that we are lowering. More...
#include <TargetLowering.h>


Public Member Functions | |
| bool | isMatchingInputConstraint () const |
| unsigned | getMatchedOperand () const |
| AsmOperandInfo (const AsmOperandInfo &info) | |
| Copy constructor for copying from an AsmOperandInfo. More... | |
| AsmOperandInfo (const InlineAsm::ConstraintInfo &info) | |
| Copy constructor for copying from a ConstraintInfo. More... | |
Public Member Functions inherited from llvm::InlineAsm::ConstraintInfo | |
| bool | hasMatchingInput () const |
| ConstraintInfo () | |
| Default constructor. More... | |
| ConstraintInfo (const ConstraintInfo &other) | |
| Copy constructor. More... | |
| bool | Parse (StringRef Str, ConstraintInfoVector &ConstraintsSoFar) |
| void | selectAlternative (unsigned index) |
Public Attributes | |
| std::string | ConstraintCode |
| TargetLowering::ConstraintType | ConstraintType |
| Value * | CallOperandVal |
| MVT | ConstraintVT |
| The ValueType for the operand value. More... | |
Public Attributes inherited from llvm::InlineAsm::ConstraintInfo | |
| ConstraintPrefix | Type |
| bool | isEarlyClobber |
| signed char | MatchingInput |
| bool | isCommutative |
| bool | isIndirect |
| ConstraintCodeVector | Codes |
| bool | isMultipleAlternative |
| isMultipleAlternative - '|': has multiple-alternative constraints. More... | |
| SubConstraintInfoVector | multipleAlternatives |
| unsigned | currentAlternativeIndex |
| The currently selected alternative constraint index. More... | |
This contains information for each constraint that we are lowering.
Definition at line 2167 of file TargetLowering.h.
|
inline |
Copy constructor for copying from an AsmOperandInfo.
Definition at line 2194 of file TargetLowering.h.
|
inline |
Copy constructor for copying from a ConstraintInfo.
Definition at line 2203 of file TargetLowering.h.
| unsigned TargetLowering::AsmOperandInfo::getMatchedOperand | ( | ) | const |
If this is an input matching constraint, this method returns the output operand it matches.
getMatchedOperand - If this is an input matching constraint, this method returns the output operand it matches.
Definition at line 2117 of file TargetLowering.cpp.
References llvm::LibFunc::atoi.
| bool TargetLowering::AsmOperandInfo::isMatchingInputConstraint | ( | ) | const |
Return true of this is an input operand that is a matching constraint like "4".
isMatchingInputConstraint - Return true of this is an input operand that is a matching constraint like "4".
Definition at line 2110 of file TargetLowering.cpp.
References llvm::LibFunc::isdigit.
| Value* llvm::TargetLowering::AsmOperandInfo::CallOperandVal |
If this is the result output operand or a clobber, this is null, otherwise it is the incoming operand to the CallInst. This gets modified as the asm is processed.
Definition at line 2180 of file TargetLowering.h.
Referenced by llvm::TargetLowering::ComputeConstraintToUse(), llvm::SystemZTargetLowering::getSingleConstraintMatchWeight(), llvm::ARMTargetLowering::getSingleConstraintMatchWeight(), llvm::PPCTargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::TargetLowering::getSingleConstraintMatchWeight(), and llvm::TargetLowering::ParseConstraints().
| std::string llvm::TargetLowering::AsmOperandInfo::ConstraintCode |
This contains the actual string for the code, like "m". TargetLowering picks the 'best' code from ConstraintInfo::Codes that most closely matches the operand.
Definition at line 2171 of file TargetLowering.h.
Referenced by ChooseConstraint(), llvm::TargetLowering::ComputeConstraintToUse(), and llvm::TargetLowering::ParseConstraints().
| TargetLowering::ConstraintType llvm::TargetLowering::AsmOperandInfo::ConstraintType |
Information about the constraint code, e.g. Register, RegisterClass, Memory, Other, Unknown.
Definition at line 2175 of file TargetLowering.h.
Referenced by ChooseConstraint(), and llvm::TargetLowering::ComputeConstraintToUse().
| MVT llvm::TargetLowering::AsmOperandInfo::ConstraintVT |
The ValueType for the operand value.
Definition at line 2183 of file TargetLowering.h.
Referenced by llvm::TargetLowering::ComputeConstraintToUse(), and llvm::TargetLowering::ParseConstraints().