LLVM API Documentation
#include <InlineAsm.h>


Public Types | |
| enum | ConstraintPrefix { isInput, isOutput, isClobber } |
Public Member Functions | |
| bool | hasSideEffects () const |
| const PointerType * | getType () const |
| const FunctionType * | getFunctionType () const |
| const std::string & | getAsmString () const |
| const std::string & | getConstraintString () const |
| std::vector< ConstraintInfo > | ParseConstraints () const |
Static Public Member Functions | |
| static InlineAsm * | get (const FunctionType *Ty, const std::string &AsmString, const std::string &Constraints, bool hasSideEffects) |
| static bool | Verify (const FunctionType *Ty, const std::string &Constraints) |
| static std::vector < ConstraintInfo > | ParseConstraints (const std::string &ConstraintString) |
| static bool | classof (const InlineAsm *) |
| static bool | classof (const Value *V) |
Classes | |
| struct | ConstraintInfo |
Definition at line 28 of file InlineAsm.h.
| InlineAsm * InlineAsm::get | ( | const FunctionType * | Ty, | |
| const std::string & | AsmString, | |||
| const std::string & | Constraints, | |||
| bool | hasSideEffects | |||
| ) | [static] |
InlineAsm::get - Return the the specified uniqued inline asm string.
Definition at line 29 of file InlineAsm.cpp.
| bool llvm::InlineAsm::hasSideEffects | ( | ) | const [inline] |
Definition at line 45 of file InlineAsm.h.
| const PointerType* llvm::InlineAsm::getType | ( | ) | const [inline] |
getType - InlineAsm's are always pointers.
Reimplemented from llvm::Value.
Definition at line 49 of file InlineAsm.h.
References llvm::Intrinsic::getType().
Referenced by getFunctionType().
| const FunctionType * InlineAsm::getFunctionType | ( | ) | const |
getFunctionType - InlineAsm's are always pointers to functions.
Definition at line 46 of file InlineAsm.cpp.
References llvm::SequentialType::getElementType(), and getType().
| const std::string& llvm::InlineAsm::getAsmString | ( | ) | const [inline] |
Definition at line 57 of file InlineAsm.h.
Referenced by compare(), and llvm::X86TargetAsmInfo< BaseTAI >::ExpandInlineAsm().
| const std::string& llvm::InlineAsm::getConstraintString | ( | ) | const [inline] |
| bool InlineAsm::Verify | ( | const FunctionType * | Ty, | |
| const std::string & | 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 182 of file InlineAsm.cpp.
References llvm::dyn_cast(), llvm::StructType::getNumElements(), llvm::FunctionType::getNumParams(), llvm::FunctionType::getReturnType(), isClobber, isInput, isOutput, llvm::FunctionType::isVarArg(), ParseConstraints(), and llvm::Type::VoidTy.
| std::vector< InlineAsm::ConstraintInfo > InlineAsm::ParseConstraints | ( | const std::string & | 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 148 of file InlineAsm.cpp.
References E, I, and llvm::InlineAsm::ConstraintInfo::Parse().
Referenced by llvm::X86TargetAsmInfo< BaseTAI >::ExpandInlineAsm(), and IsOperandAMemoryOperand().
| std::vector<ConstraintInfo> 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 122 of file InlineAsm.h.
Referenced by Verify().
| static bool llvm::InlineAsm::classof | ( | const InlineAsm * | ) | [inline, static] |
Definition at line 127 of file InlineAsm.h.
| static bool llvm::InlineAsm::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::Value.
Definition at line 128 of file InlineAsm.h.
References llvm::Value::getValueID(), and llvm::Value::InlineAsmVal.
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.