aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorShengchen Kan <shengchen.kan@intel.com>2020-04-17 11:17:38 +0800
committerShengchen Kan <shengchen.kan@intel.com>2020-04-17 13:32:19 +0800
commit3017580c7961397f96e9481abf82bbf874bb2633 (patch)
tree741f93e8248518176f1c7207f803f7462e0e05fe /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent4bd186c0ff76063de9de5507e1e512f7ab4372f1 (diff)
downloadllvm-3017580c7961397f96e9481abf82bbf874bb2633.zip
llvm-3017580c7961397f96e9481abf82bbf874bb2633.tar.gz
llvm-3017580c7961397f96e9481abf82bbf874bb2633.tar.bz2
[X86][MC][NFC] Reduce the parameters of functions in X86MCCodeEmitter(Part II)
Summary: We determine the REX prefix used by instruction in `determineREXPrefix`, and this value is used in `emitMemModRMByte' and used as the return value of `emitOpcodePrefix`. Before this patch, REX was passed as reference to `emitPrefixImpl`, it is strange and not necessary, e.g, we have to write ``` bool Rex = false; emitPrefixImpl(CurOp, CurByte, Rex, MI, STI, OS); ``` in `emitPrefix` even if `Rex` will not be used. So we let HasREX be the return value of `emitPrefixImpl`. The HasREX is passed from `emitREXPrefix` to `emitOpcodePrefix` and then to `emitPrefixImpl`. This makes sense since REX is a kind of opcode prefix and of course is a prefix. Reviewers: craig.topper, pengfei Reviewed By: craig.topper Subscribers: annita.zhang, craig.topper, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78276
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions