diff options
Diffstat (limited to 'llvm/lib/AsmParser/ParserInternals.h')
-rw-r--r-- | llvm/lib/AsmParser/ParserInternals.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/llvm/lib/AsmParser/ParserInternals.h b/llvm/lib/AsmParser/ParserInternals.h index 604057c9ba0..79e367fe1fe 100644 --- a/llvm/lib/AsmParser/ParserInternals.h +++ b/llvm/lib/AsmParser/ParserInternals.h @@ -201,56 +201,4 @@ struct ValID { } // End llvm namespace -// This structure is used to keep track of obsolete opcodes. The lexer will -// retain the ability to parse obsolete opcode mnemonics. In this case it will -// set "obsolete" to true and the opcode will be the replacement opcode. For -// example if "rem" is encountered then opcode will be set to "urem" and the -// "obsolete" flag will be true. If the opcode is not obsolete then "obsolete" -// will be false. -template <class Enum> -struct OpcodeInfo { - Enum opcode; - bool obsolete; -}; -typedef OpcodeInfo<llvm::Instruction::BinaryOps> BinaryOpInfo; -typedef OpcodeInfo<llvm::Instruction::TermOps> TermOpInfo; -typedef OpcodeInfo<llvm::Instruction::MemoryOps> MemOpInfo; -typedef OpcodeInfo<llvm::Instruction::CastOps> CastOpInfo; -typedef OpcodeInfo<llvm::Instruction::OtherOps> OtherOpInfo; - -/// This enumeration is used to indicate if a type is signed, signless or -/// unsigned. It is used for backwards compatibility with assembly code that -/// pre-dates the signless types conversion. -enum Signedness { - isSigned, - isUnsigned, - isSignless -}; - -/// This type is used to keep track of the signedness of the obsolete -/// integer types. Instead of creating an llvm::Type directly, the Lexer will -/// create instances of TypeInfo which retains the signedness indication so -/// it can be used by the parser for upgrade decisions. -/// For example if "uint" is encountered then the "first" field will be set -/// to "int32" and the "second" field will be set to "isUnsigned". If the -/// type is not obsolete then "second" will be set to "isSignless". -struct TypeInfo { - llvm::PATypeHolder* type; - Signedness signedness; -}; - -/// This type is used to keep track of the signedness of values. Instead -/// of creating llvm::Value directly, the parser will create ValueInfo which -/// associates a Value* with a Signedness indication. -struct ValueInfo { - llvm::Value* val; - Signedness signedness; -}; - -/// This type is used to keep track of the signedness of constants. -struct ConstInfo { - llvm::Constant *cnst; - Signedness signedness; -}; - #endif |