This patch enables the Mips .set directive to define aliases
authorJack Carter <jack.carter@imgtec.com>
Thu, 21 Mar 2013 21:44:16 +0000 (21:44 +0000)
committerJack Carter <jack.carter@imgtec.com>
Thu, 21 Mar 2013 21:44:16 +0000 (21:44 +0000)
commitd76b2376f2cd7bee50e93fc4a095e45cd330fa57
tree11dcd289a565d1dfca01a62acd1ae8c8963661d9
parent756810fe361be9604fd3fee2b7cff55a30c92010
This patch enables the Mips .set directive to define aliases

The .set directive in the Mips the assembler can be
used to set the value of a symbol to an expression.
This changes the symbol's value and type to conform
to the expression's.

Syntax: .set symbol, expression

This patch implements the parsing of the above syntax
and enables the parser to use defined symbols when
parsing operands.

Contributor: Vladimir Medic
llvm-svn: 177667
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/test/MC/Mips/mips_directives.s