summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-03-02 06:06:18 +0000
committerCraig Topper <craig.topper@gmail.com>2016-03-02 06:06:18 +0000
commita267431fa646fb77c1b6d045b2e70513cecadd2d (patch)
tree08907d705091500b2f8b9a50fe87a28c9b505d2b /clang/lib/Frontend/FrontendActions.cpp
parentea423e261fb45dfbebb7a1d73570dc60268cc979 (diff)
downloadbcm5719-llvm-a267431fa646fb77c1b6d045b2e70513cecadd2d.tar.gz
bcm5719-llvm-a267431fa646fb77c1b6d045b2e70513cecadd2d.zip
[X86] Be more structured about how we capture the register number when it is encoded in bits 7:4 of the immediate.
For some instructions the register is not the last operand and the immediate handling had to detect this and hardcode the index to find it. It also required CurOp to be pointing at the last operand handled in the Form switch whereas for any instruction it would be pointing at the next operand. Now we just capture the value in the Form switch when we know exactly where it is and the CurOp pointer can behave normally. llvm-svn: 262462
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud