llvm-project/llvm
Shengchen Kan 322ac2e917 [X86][MC][NFC] Reduce the parameters of functions in X86MCCodeEmitter(Part I)
Summary:
The function in X86MCCodeEmitter has too many parameters to make it look
messy, and some parameters are unnecessary. This is the first patch to
reduce their parameters.

The follwing operations are cheap
```
unsigned Opcode = MI.getOpcode();
const MCInstrDesc &Desc = MCII.get(Opcode);
uint64_t TSFlags = Desc.TSFlags;
```
So if we pass a `MCInst`, we don't need to pass `MCInstrDesc`;
if we pass a `MCInstrDesc`, we don't need to pass `TSFlags`.

Reviewers: craig.topper, MaskRay, pengfei

Reviewed By: craig.topper

Subscribers: annita.zhang, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78180
2020-04-16 09:53:45 +08:00
..
benchmarks
bindings
cmake Revert "[lit] Keep original cfg file case around." 2020-04-15 17:19:39 -04:00
docs [docs] Fix an RST error introduced in e823068306. 2020-04-15 14:37:58 -07:00
examples Enable new passmanager plugin support for LTO. 2020-04-14 15:07:07 -07:00
include [MC] Replace MCSection*::getName() with MCSection::getName(). NFC 2020-04-15 18:35:27 -07:00
lib [X86][MC][NFC] Reduce the parameters of functions in X86MCCodeEmitter(Part I) 2020-04-16 09:53:45 +08:00
projects
resources
runtimes
test [Attributor] Unify testing (=updates,prefixes,run configurations,...) 2020-04-15 19:59:51 -05:00
tools Allow disabling of vectorization using internal options 2020-04-14 18:09:10 -07:00
unittests [CallGraphUpdater] Remove nodes from their SCC (old PM) 2020-04-15 18:38:50 -05:00
utils Revert "[lit] Keep original cfg file case around." 2020-04-15 17:19:39 -04:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [Flang] add flang as a new subproject in cmake 2020-04-09 16:13:18 +01:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.