]> granicus.if.org Git - llvm/commit
AArch64InstPrinter: rewrite of printSysAlias
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 27 Feb 2017 14:45:34 +0000 (14:45 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 27 Feb 2017 14:45:34 +0000 (14:45 +0000)
commitc0dc1a30a6981c816d72149c59eea1edac9c3d1c
tree3887fef6a459cb0cec97c3802c5155d2d6095ae6
parent4042b8120e55e78bf1cd61415859a77d09544452
AArch64InstPrinter: rewrite of printSysAlias

This is a cleanup/rewrite of the printSysAlias function. This was not using the
tablegen instruction descriptions, but was "manually" decoding the
instructions. This has been replaced with calls to lookup_XYZ_ByEncoding
tablegen calls.

This revealed several problems. First, instruction IVAU had the wrong encoding.
This was cancelled out by the parser that incorrectly matched the wrong
encoding. Second, instruction CVAP was missing from the SystemOperands tablegen
descriptions, so this has been added. And third, the required target features
were not captured in the tablegen descriptions, so support for this has also
been added.

Differential Revision: https://reviews.llvm.org/D30329

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296343 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64SystemOperands.td
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
lib/Target/AArch64/Utils/AArch64BaseInfo.h