clang  3.8.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::MSAsmStmt Class Reference

This represents a Microsoft inline-assembly statement extension. More...

#include <Stmt.h>

Inheritance diagram for clang::MSAsmStmt:
[legend]
Collaboration diagram for clang::MSAsmStmt:
[legend]

Public Member Functions

 MSAsmStmt (const ASTContext &C, SourceLocation asmloc, SourceLocation lbraceloc, bool issimple, bool isvolatile, ArrayRef< Token > asmtoks, unsigned numoutputs, unsigned numinputs, ArrayRef< StringRef > constraints, ArrayRef< Expr * > exprs, StringRef asmstr, ArrayRef< StringRef > clobbers, SourceLocation endloc)
 
 MSAsmStmt (EmptyShell Empty)
 Build an empty MS-style inline-assembly statement. More...
 
SourceLocation getLBraceLoc () const
 
void setLBraceLoc (SourceLocation L)
 
SourceLocation getEndLoc () const
 
void setEndLoc (SourceLocation L)
 
bool hasBraces () const
 
unsigned getNumAsmToks ()
 
TokengetAsmToks ()
 
StringRef getAsmString () const
 
std::string generateAsmString (const ASTContext &C) const
 Assemble final IR asm string. More...
 
StringRef getOutputConstraint (unsigned i) const
 
ExprgetOutputExpr (unsigned i)
 
const ExprgetOutputExpr (unsigned i) const
 
StringRef getInputConstraint (unsigned i) const
 
ExprgetInputExpr (unsigned i)
 
void setInputExpr (unsigned i, Expr *E)
 
const ExprgetInputExpr (unsigned i) const
 
ArrayRef< StringRef > getAllConstraints () const
 
ArrayRef< StringRef > getClobbers () const
 
ArrayRef< Expr * > getAllExprs () const
 
StringRef getClobber (unsigned i) const
 
SourceLocation getLocStart () const LLVM_READONLY
 
SourceLocation getLocEnd () const LLVM_READONLY
 
child_range children ()
 
- Public Member Functions inherited from clang::AsmStmt
 AsmStmt (StmtClass SC, EmptyShell Empty)
 Build an empty inline-assembly statement. More...
 
SourceLocation getAsmLoc () const
 
void setAsmLoc (SourceLocation L)
 
bool isSimple () const
 
void setSimple (bool V)
 
bool isVolatile () const
 
void setVolatile (bool V)
 
SourceLocation getLocStart () const LLVM_READONLY
 
SourceLocation getLocEnd () const LLVM_READONLY
 
std::string generateAsmString (const ASTContext &C) const
 Assemble final IR asm string. More...
 
unsigned getNumOutputs () const
 
StringRef getOutputConstraint (unsigned i) const
 getOutputConstraint - Return the constraint string for the specified output operand. More...
 
bool isOutputPlusConstraint (unsigned i) const
 isOutputPlusConstraint - Return true if the specified output constraint is a "+" constraint (which is both an input and an output) or false if it is an "=" constraint (just an output). More...
 
const ExprgetOutputExpr (unsigned i) const
 
unsigned getNumPlusOperands () const
 getNumPlusOperands - Return the number of output operands that have a "+" constraint. More...
 
unsigned getNumInputs () const
 
StringRef getInputConstraint (unsigned i) const
 getInputConstraint - Return the specified input constraint. More...
 
const ExprgetInputExpr (unsigned i) const
 
unsigned getNumClobbers () const
 
StringRef getClobber (unsigned i) const
 
inputs_iterator begin_inputs ()
 
inputs_iterator end_inputs ()
 
inputs_range inputs ()
 
const_inputs_iterator begin_inputs () const
 
const_inputs_iterator end_inputs () const
 
inputs_const_range inputs () const
 
outputs_iterator begin_outputs ()
 
outputs_iterator end_outputs ()
 
outputs_range outputs ()
 
const_outputs_iterator begin_outputs () const
 
const_outputs_iterator end_outputs () const
 
outputs_const_range outputs () const
 
child_range children ()
 

Static Public Member Functions

static bool classof (const Stmt *T)
 
- Static Public Member Functions inherited from clang::AsmStmt
static bool classof (const Stmt *T)
 

Friends

class ASTStmtReader
 

Additional Inherited Members

- Public Types inherited from clang::AsmStmt
typedef ExprIterator inputs_iterator
 
typedef ConstExprIterator const_inputs_iterator
 
typedef llvm::iterator_range
< inputs_iterator
inputs_range
 
typedef llvm::iterator_range
< const_inputs_iterator
inputs_const_range
 
typedef ExprIterator outputs_iterator
 
typedef ConstExprIterator const_outputs_iterator
 
typedef llvm::iterator_range
< outputs_iterator
outputs_range
 
typedef llvm::iterator_range
< const_outputs_iterator
outputs_const_range
 
- Protected Member Functions inherited from clang::AsmStmt
 AsmStmt (StmtClass SC, SourceLocation asmloc, bool issimple, bool isvolatile, unsigned numoutputs, unsigned numinputs, unsigned numclobbers)
 
- Protected Attributes inherited from clang::AsmStmt
SourceLocation AsmLoc
 
bool IsSimple
 True if the assembly statement does not have any input or output operands. More...
 
bool IsVolatile
 If true, treat this inline assembly as having side effects. More...
 
unsigned NumOutputs
 
unsigned NumInputs
 
unsigned NumClobbers
 
Stmt ** Exprs
 

Detailed Description

This represents a Microsoft inline-assembly statement extension.

Definition at line 1722 of file Stmt.h.

Constructor & Destructor Documentation

MSAsmStmt::MSAsmStmt ( const ASTContext C,
SourceLocation  asmloc,
SourceLocation  lbraceloc,
bool  issimple,
bool  isvolatile,
ArrayRef< Token asmtoks,
unsigned  numoutputs,
unsigned  numinputs,
ArrayRef< StringRef >  constraints,
ArrayRef< Expr * >  exprs,
StringRef  asmstr,
ArrayRef< StringRef >  clobbers,
SourceLocation  endloc 
)

Definition at line 708 of file Stmt.cpp.

clang::MSAsmStmt::MSAsmStmt ( EmptyShell  Empty)
inlineexplicit

Build an empty MS-style inline-assembly statement.

Definition at line 1743 of file Stmt.h.

Member Function Documentation

child_range clang::MSAsmStmt::children ( )
inline

Definition at line 1817 of file Stmt.h.

static bool clang::MSAsmStmt::classof ( const Stmt T)
inlinestatic

Definition at line 1813 of file Stmt.h.

std::string MSAsmStmt::generateAsmString ( const ASTContext C) const

Assemble final IR asm string.

Assemble final IR asm string (MS-style).

Definition at line 664 of file Stmt.cpp.

ArrayRef<StringRef> clang::MSAsmStmt::getAllConstraints ( ) const
inline

Definition at line 1791 of file Stmt.h.

ArrayRef<Expr*> clang::MSAsmStmt::getAllExprs ( ) const
inline

Definition at line 1797 of file Stmt.h.

StringRef clang::MSAsmStmt::getAsmString ( ) const
inline

Definition at line 1757 of file Stmt.h.

Token* clang::MSAsmStmt::getAsmToks ( )
inline

Definition at line 1754 of file Stmt.h.

StringRef clang::MSAsmStmt::getClobber ( unsigned  i) const
inline

Definition at line 1802 of file Stmt.h.

ArrayRef<StringRef> clang::MSAsmStmt::getClobbers ( ) const
inline

Definition at line 1794 of file Stmt.h.

SourceLocation clang::MSAsmStmt::getEndLoc ( ) const
inline

Definition at line 1748 of file Stmt.h.

StringRef clang::MSAsmStmt::getInputConstraint ( unsigned  i) const
inline

Definition at line 1777 of file Stmt.h.

Expr * MSAsmStmt::getInputExpr ( unsigned  i)

Definition at line 673 of file Stmt.cpp.

References clang::AsmStmt::NumOutputs.

const Expr* clang::MSAsmStmt::getInputExpr ( unsigned  i) const
inline

Definition at line 1785 of file Stmt.h.

SourceLocation clang::MSAsmStmt::getLBraceLoc ( ) const
inline

Definition at line 1746 of file Stmt.h.

SourceLocation clang::MSAsmStmt::getLocEnd ( ) const
inline

Definition at line 1811 of file Stmt.h.

SourceLocation clang::MSAsmStmt::getLocStart ( ) const
inline

Definition at line 1810 of file Stmt.h.

unsigned clang::MSAsmStmt::getNumAsmToks ( )
inline

Definition at line 1753 of file Stmt.h.

StringRef clang::MSAsmStmt::getOutputConstraint ( unsigned  i) const
inline

Definition at line 1764 of file Stmt.h.

Expr * MSAsmStmt::getOutputExpr ( unsigned  i)

Definition at line 669 of file Stmt.cpp.

const Expr* clang::MSAsmStmt::getOutputExpr ( unsigned  i) const
inline

Definition at line 1771 of file Stmt.h.

bool clang::MSAsmStmt::hasBraces ( ) const
inline

Definition at line 1751 of file Stmt.h.

void clang::MSAsmStmt::setEndLoc ( SourceLocation  L)
inline

Definition at line 1749 of file Stmt.h.

void MSAsmStmt::setInputExpr ( unsigned  i,
Expr E 
)

Definition at line 676 of file Stmt.cpp.

References E, and clang::AsmStmt::NumOutputs.

void clang::MSAsmStmt::setLBraceLoc ( SourceLocation  L)
inline

Definition at line 1747 of file Stmt.h.

Friends And Related Function Documentation

friend class ASTStmtReader
friend

Definition at line 1732 of file Stmt.h.


The documentation for this class was generated from the following files: