LLVM API Documentation
#include <InlineAsm.h>
Definition at line 32 of file InlineAsm.h.
typedef std::vector<std::string> llvm::InlineAsm::ConstraintCodeVector |
Definition at line 98 of file InlineAsm.h.
typedef std::vector<ConstraintInfo> llvm::InlineAsm::ConstraintInfoVector |
Definition at line 114 of file InlineAsm.h.
typedef std::vector<SubConstraintInfo> llvm::InlineAsm::SubConstraintInfoVector |
Definition at line 113 of file InlineAsm.h.
Definition at line 34 of file InlineAsm.h.
Definition at line 92 of file InlineAsm.h.
static bool llvm::InlineAsm::classof | ( | const Value * | V | ) | [inline, static] |
Definition at line 185 of file InlineAsm.h.
References llvm::Value::getValueID(), and llvm::Value::InlineAsmVal.
InlineAsm * InlineAsm::get | ( | FunctionType * | Ty, |
StringRef | AsmString, | ||
StringRef | Constraints, | ||
bool | hasSideEffects, | ||
bool | isAlignStack = false , |
||
AsmDialect | asmDialect = AD_ATT |
||
) | [static] |
InlineAsm::get - Return the specified uniqued inline asm string.
Definition at line 28 of file InlineAsm.cpp.
References llvm::Type::getContext(), llvm::ConstantUniqueMap< ConstantClass >::getOrCreate(), llvm::PointerType::getUnqual(), llvm::LLVMContextImpl::InlineAsms, and llvm::LLVMContext::pImpl.
Referenced by inlineAsmOut(), LLVMConstInlineAsm(), and llvm::MapValue().
const std::string& llvm::InlineAsm::getAsmString | ( | ) | const [inline] |
Definition at line 82 of file InlineAsm.h.
Referenced by llvm::ARMTargetLowering::ExpandInlineAsm(), and llvm::InlineAsmKeyType::operator==().
const std::string& llvm::InlineAsm::getConstraintString | ( | ) | const [inline] |
Definition at line 83 of file InlineAsm.h.
Referenced by llvm::ARMTargetLowering::ExpandInlineAsm(), and llvm::InlineAsmKeyType::operator==().
AsmDialect llvm::InlineAsm::getDialect | ( | ) | const [inline] |
Definition at line 70 of file InlineAsm.h.
Referenced by llvm::InlineAsmKeyType::operator==().
static unsigned llvm::InlineAsm::getFlagWord | ( | unsigned | Kind, |
unsigned | NumOps | ||
) | [inline, static] |
Definition at line 226 of file InlineAsm.h.
References Kind_Mem, and Kind_RegUse.
Referenced by llvm::SelectionDAGISel::SelectInlineAsmMemoryOperands().
static unsigned llvm::InlineAsm::getFlagWordForMatchingOp | ( | unsigned | InputFlag, |
unsigned | MatchedOperandNo | ||
) | [inline, static] |
getFlagWordForMatchingOp - Augment an existing flag word returned by getFlagWord with information indicating that this input operand is tied to a previous output operand.
Definition at line 235 of file InlineAsm.h.
References Flag_MatchingOperand.
static unsigned llvm::InlineAsm::getFlagWordForRegClass | ( | unsigned | InputFlag, |
unsigned | RC | ||
) | [inline, static] |
getFlagWordForRegClass - Augment an existing flag word returned by getFlagWord with the required register class for the following register operands. A tied use operand cannot have a register class, use the register class from the def operand instead.
Definition at line 247 of file InlineAsm.h.
FunctionType * InlineAsm::getFunctionType | ( | ) | const |
getFunctionType - InlineAsm's are always pointers to functions.
Definition at line 55 of file InlineAsm.cpp.
References llvm::SequentialType::getElementType(), and getType().
static unsigned llvm::InlineAsm::getKind | ( | unsigned | Flags | ) | [inline, static] |
Definition at line 255 of file InlineAsm.h.
Referenced by llvm::MachineInstr::getRegClassConstraint(), isClobberKind(), isImmKind(), isMemKind(), isRegDefEarlyClobberKind(), isRegDefKind(), llvm::HexagonTargetLowering::LowerINLINEASM(), and llvm::MachineInstr::print().
static unsigned llvm::InlineAsm::getNumOperandRegisters | ( | unsigned | Flag | ) | [inline, static] |
getNumOperandRegisters - Extract the number of registers field from the inline asm operand flag.
Definition at line 271 of file InlineAsm.h.
Referenced by EmitGCCInlineAsmStr(), EmitMSInlineAsmStr(), llvm::MachineInstr::findInlineAsmFlagIdx(), llvm::MachineInstr::findTiedOperandIdx(), llvm::HexagonTargetLowering::LowerINLINEASM(), llvm::MachineInstr::print(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::MipsAsmPrinter::PrintAsmOperand(), and llvm::SelectionDAGISel::SelectInlineAsmMemoryOperands().
PointerType* llvm::InlineAsm::getType | ( | ) | const [inline] |
getType - InlineAsm's are always pointers.
Reimplemented from llvm::Value.
Definition at line 74 of file InlineAsm.h.
Referenced by getFunctionType().
static bool llvm::InlineAsm::hasRegClassConstraint | ( | unsigned | Flag, |
unsigned & | RC | ||
) | [inline, static] |
hasRegClassConstraint - Returns true if the flag contains a register class constraint. Sets RC to the register class ID.
Definition at line 286 of file InlineAsm.h.
References Flag_MatchingOperand.
Referenced by llvm::MachineInstr::getRegClassConstraint(), llvm::MachineInstr::print(), and llvm::ARMAsmPrinter::PrintAsmOperand().
bool llvm::InlineAsm::hasSideEffects | ( | ) | const [inline] |
Definition at line 68 of file InlineAsm.h.
Referenced by llvm::InlineAsmKeyType::operator==().
bool llvm::InlineAsm::isAlignStack | ( | ) | const [inline] |
Definition at line 69 of file InlineAsm.h.
Referenced by llvm::InlineAsmKeyType::operator==().
static bool llvm::InlineAsm::isClobberKind | ( | unsigned | Flag | ) | [inline, static] |
Definition at line 265 of file InlineAsm.h.
References getKind(), and Kind_Clobber.
static bool llvm::InlineAsm::isImmKind | ( | unsigned | Flag | ) | [inline, static] |
Definition at line 260 of file InlineAsm.h.
static bool llvm::InlineAsm::isMemKind | ( | unsigned | Flag | ) | [inline, static] |
Definition at line 261 of file InlineAsm.h.
References getKind(), and Kind_Mem.
Referenced by EmitGCCInlineAsmStr(), EmitMSInlineAsmStr(), and llvm::SelectionDAGISel::SelectInlineAsmMemoryOperands().
static bool llvm::InlineAsm::isRegDefEarlyClobberKind | ( | unsigned | Flag | ) | [inline, static] |
Definition at line 262 of file InlineAsm.h.
References getKind(), and Kind_RegDefEarlyClobber.
static bool llvm::InlineAsm::isRegDefKind | ( | unsigned | Flag | ) | [inline, static] |
Definition at line 259 of file InlineAsm.h.
References getKind(), and Kind_RegDef.
static bool llvm::InlineAsm::isUseOperandTiedToDef | ( | unsigned | Flag, |
unsigned & | Idx | ||
) | [inline, static] |
isUseOperandTiedToDef - Return true if the flag of the inline asm operand indicates it is an use operand that's matched to a def operand.
Definition at line 277 of file InlineAsm.h.
References Flag_MatchingOperand.
Referenced by llvm::MachineInstr::findTiedOperandIdx(), llvm::MachineInstr::print(), and llvm::ARMAsmPrinter::PrintAsmOperand().
InlineAsm::ConstraintInfoVector InlineAsm::ParseConstraints | ( | StringRef | ConstraintString | ) | [static] |
ParseConstraints - Split up the constraint string into the specific constraints and their prefixes. If this returns an empty vector, and if the constraint string itself isn't empty, there was an error parsing.
Definition at line 207 of file InlineAsm.cpp.
References llvm::StringRef::begin(), llvm::StringRef::end(), I, and llvm::InlineAsm::ConstraintInfo::Parse().
Referenced by llvm::TargetLowering::ParseConstraints().
ConstraintInfoVector llvm::InlineAsm::ParseConstraints | ( | ) | const [inline] |
ParseConstraints - Parse the constraints of this inlineasm object, returning them the same way that ParseConstraints(str) does.
Definition at line 180 of file InlineAsm.h.
Referenced by Verify().
bool InlineAsm::Verify | ( | FunctionType * | Ty, |
StringRef | ConstStr | ||
) | [static] |
Verify - This static method can be used by the parser to check to see if the specified constraint string is legal for the type. This returns true if legal, false if not.
Verify - Verify that the specified constraint string is reasonable for the specified function type, and otherwise validate the constraint string.
Definition at line 240 of file InlineAsm.cpp.
References llvm::dyn_cast(), llvm::StringRef::empty(), llvm::StructType::getNumElements(), llvm::FunctionType::getNumParams(), llvm::FunctionType::getReturnType(), isClobber, isInput, isOutput, llvm::Type::isStructTy(), llvm::FunctionType::isVarArg(), llvm::Type::isVoidTy(), and ParseConstraints().
friend class ConstantUniqueMap< InlineAsm > [friend] |
Definition at line 41 of file InlineAsm.h.
friend struct InlineAsmKeyType [friend] |
Definition at line 40 of file InlineAsm.h.