Go to file
Hal Finkel 2756dc17a6 Add an OutPatFrag TableGen class
Unfortunately, it is currently impossible to use a PatFrag as part of an output
pattern (the part of the pattern that has instructions in it) in TableGen.
Looking at the current implementation, this was clearly intended to work (there
is already code in place to expand patterns in the output DAG), but is
currently broken by the baked-in type-checking assumption and the order in which
the pattern fragments are processed (output pattern fragments need to be
processed after the instruction definitions are processed).

Fixing this is fairly simple, but requires some way of differentiating output
patterns from the existing input patterns. The simplest way to handle this
seems to be to create a subclass of PatFrag, and so that's what I've done here.

As a simple example, this allows us to write:

def crnot : OutPatFrag<(ops node:$in),
                       (CRNOR $in, $in)>;

def       : Pat<(not i1:$in),
                (crnot $in)>;

which captures the core use case: handling of repeated subexpressions inside
of complicated output patterns.

This will be used by an upcoming commit to the PowerPC backend.

llvm-svn: 202450
2014-02-28 00:26:56 +00:00
clang "&&&" != "&&" 2014-02-27 23:59:14 +00:00
clang-tools-extra Made the ClangTidyTest helper class independent of the testing framework. 2014-02-27 14:28:02 +00:00
compiler-rt [ASan] Make sure IOC_DIRMASK is undefined before redefining it. 2014-02-27 16:46:06 +00:00
debuginfo-tests Relax testcase: Newer versions of LLDB don't necessarily print the "{". 2014-02-27 17:51:50 +00:00
libclc Fix build since r202052 2014-02-24 21:31:56 +00:00
libcxx More LWG issues. Mark #2182, #2323 and #2213 as complete. Add a test for #2339, and mark that as complete. No actual changes to the libc++ code; all of these were already in place. 2014-02-27 16:13:36 +00:00
libcxxabi Demangle Dc to decltype(auto) as per the Itanium C++ ABI spec. 2014-02-17 21:56:01 +00:00
lld [Hexagon] Rename the header file. 2014-02-27 06:28:49 +00:00
lldb Enable TestCallThatRestarts test on Linux. 2014-02-28 00:20:10 +00:00
llvm Add an OutPatFrag TableGen class 2014-02-28 00:26:56 +00:00
openmp Restore string match behavior following changes in r202018 2014-02-25 22:04:37 +00:00
polly Update for llvm api change. 2014-02-25 19:17:57 +00:00