]> granicus.if.org Git - llvm/commit
[gicombiner] Add a CodeExpander to handle C++ fragments with variable expansion
authorDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 3 Oct 2019 19:13:39 +0000 (19:13 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 3 Oct 2019 19:13:39 +0000 (19:13 +0000)
commitec358cd538687a1e13f766c976a67e93443543e3
tree4f8c609723d54b67d4e0adc981c6761eef48e5ca
parent0fe42534131a63e6938c7922dbf93eac506bd70e
[gicombiner] Add a CodeExpander to handle C++ fragments with variable expansion

Summary:
This will handle expansion of C++ fragments in the declarative combiner
including custom predicates, and escapes into C++ to aid the migration
effort.

Fixed the -DLLVM_LINK_LLVM_DYLIB=ON using DISABLE_LLVM_LINK_LLVM_DYLIB when
creating the library. Apparently it automatically links to libLLVM.dylib
and we don't want that from tablegen.

Reviewers: bogner, volkan

Subscribers: mgorny, llvm-commits

Tags: #llvm

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

llvm-svn: 373551

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373651 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/CMakeLists.txt
unittests/TableGen/CMakeLists.txt [new file with mode: 0644]
unittests/TableGen/CodeExpanderTest.cpp [new file with mode: 0644]
utils/TableGen/CMakeLists.txt
utils/TableGen/GICombinerEmitter.cpp
utils/TableGen/GlobalISel/CMakeLists.txt [new file with mode: 0644]
utils/TableGen/GlobalISel/CodeExpander.cpp [new file with mode: 0644]
utils/TableGen/GlobalISel/CodeExpander.h [new file with mode: 0644]
utils/TableGen/GlobalISel/CodeExpansions.h [new file with mode: 0644]