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)
commitc91b5e197bb41ccb2f9f78b6176e61c848df9e15
tree24c78089aaa4fe82c41a362412e19f53e049a57a
parent7ee74a663a3b4d4ee6b55d23362f347ed1d390c2
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177667 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
test/MC/Mips/mips_directives.s