]> granicus.if.org Git - llvm/commit
[gicombiner] Hoist pure C++ combine into the tablegen definition
authorDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 16 Oct 2019 23:53:35 +0000 (23:53 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 16 Oct 2019 23:53:35 +0000 (23:53 +0000)
commit2ab944293c16727c99fde8f1690ee87209c745ca
treed4e708bc54b31b79a894080f116969afd7a49b59
parenta6de5ed4b64250364de5434ce48f3b095fd4147a
[gicombiner] Hoist pure C++ combine into the tablegen definition

Summary:
This is just moving the existing C++ code around and will be NFC w.r.t
AArch64. Renamed 'CombineBr' to something more descriptive
('ElideByByInvertingCond') at the same time.

The remaining combines in AArch64PreLegalizeCombiner require features that
aren't implemented at this point and will be hoisted as they are added.

Depends on D68424

Reviewers: bogner, volkan

Subscribers: kristof.beyls, hiraditya, Petar.Avramovic, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375057 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/CombinerHelper.h
include/llvm/TableGen/Error.h
include/llvm/Target/GlobalISel/Combine.td
lib/CodeGen/GlobalISel/CombinerHelper.cpp
lib/TableGen/Error.cpp
lib/Target/AArch64/AArch64Combine.td
lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
utils/TableGen/GICombinerEmitter.cpp