2010-01-14 21:20:55 +00:00
|
|
|
//===-- llvm/MC/MCParsedAsmOperand.h - Asm Parser Operand -------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_MC_MCASMOPERAND_H
|
|
|
|
#define LLVM_MC_MCASMOPERAND_H
|
|
|
|
|
|
|
|
namespace llvm {
|
2010-01-15 00:41:53 +00:00
|
|
|
class SMLoc;
|
2010-08-11 06:37:04 +00:00
|
|
|
class raw_ostream;
|
2010-01-14 21:20:55 +00:00
|
|
|
|
|
|
|
/// MCParsedAsmOperand - This abstract class represents a source-level assembly
|
|
|
|
/// instruction operand. It should be subclassed by target-specific code. This
|
|
|
|
/// base class is used by target-independent clients and is the interface
|
|
|
|
/// between parsing an asm instruction and recognizing it.
|
|
|
|
class MCParsedAsmOperand {
|
|
|
|
public:
|
2010-01-14 21:32:45 +00:00
|
|
|
MCParsedAsmOperand() {}
|
|
|
|
virtual ~MCParsedAsmOperand() {}
|
2010-01-14 22:29:57 +00:00
|
|
|
|
|
|
|
/// getStartLoc - Get the location of the first token of this operand.
|
2010-08-11 06:37:04 +00:00
|
|
|
virtual SMLoc getStartLoc() const = 0;
|
2010-01-14 22:29:57 +00:00
|
|
|
/// getEndLoc - Get the location of the last token of this operand.
|
2010-08-11 06:37:04 +00:00
|
|
|
virtual SMLoc getEndLoc() const = 0;
|
|
|
|
|
|
|
|
/// dump - Print a debug representation of the operand to the given stream.
|
|
|
|
virtual void dump(raw_ostream &OS) const = 0;
|
2010-01-14 21:20:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace llvm.
|
|
|
|
|
|
|
|
#endif
|