summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-07-03 18:07:30 +0000
committerCraig Topper <craig.topper@intel.com>2018-07-03 18:07:30 +0000
commitadc51ae4255044fe3ba50768013d7f47b2102c79 (patch)
treea6b8f0db51750a662816a2a9f658e3c1e1cd548e /llvm/lib/Target/TargetMachine.cpp
parentbc598f0d61b54324639eb029374493cf6cd55c6f (diff)
downloadbcm5719-llvm-adc51ae4255044fe3ba50768013d7f47b2102c79.tar.gz
bcm5719-llvm-adc51ae4255044fe3ba50768013d7f47b2102c79.zip
[X86][AsmParser] Rework the in/out (%dx) hack one more time.
This patch adds a new token type specifically for (%dx). We will now always create this token when we parse (%dx). After all operands have been parsed, if the mnemonic is in/out we'll morph this token to a regular register token. Otherwise we keep it as the special DX token which won't match any instructions. This removes the need for passing Mnemonic through the parsing functions. It also seems closer to gas where when its used on the wrong instruction it just gets diagnosed as an invalid operand rather than a bad memory address. llvm-svn: 336218
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud