summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser/macros-argument-parsing.s
Commit message (Collapse)AuthorAgeFilesLines
* MCAsmParser: add some mixed argument testsSaleem Abdulrasool2014-02-171-0/+30
| | | | | | | Add some tests to explicitly validate handling of comma and non-comma separated arguments. llvm-svn: 201500
* MCAsmParser: better handling for named argumentsSaleem Abdulrasool2014-02-171-0/+51
| | | | | | | | | | | | | | | | | | | Until this point only macro definition with named parameters were parsed but the names were ignored. This adds support for using that information for named parameter instantiation. In order to support the full semantics of the keyword arguments, the arguments are no longer lazily initialised since the keyword arguments can be specified out of order and partially if they are defaulted. Prepopulate the arguments with the default value for any defaulted parameters, and then parse the specified arguments. This simplies some of the handling of the arguments in the inner loop since empty arguments simply increment the parameter index and move on. Note that keyword and positional arguments cannot be mixed. llvm-svn: 201499
* MCAsmParser: relax declaration parsingSaleem Abdulrasool2014-02-161-0/+10
The Linux kernel defines empty macros for compatibility with ARM UAL syntax. The comma after the name is optional, and if present can be safely lexed. This improves compatibility with the GNU assembler. llvm-svn: 201474
OpenPOWER on IntegriCloud