llvm/utils
Hal Finkel c72cf87285 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202450 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28 00:26:56 +00:00
..
bugpoint
buildit Darwin builds: handle different possible form for SDKROOT. 2014-02-18 11:20:44 +00:00
count Install three utils, "FileCheck", "count", and "not", for now to appease llvmlab dragonegg builder. 2013-12-20 06:25:37 +00:00
crosstool
emacs Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
FileCheck [CMake] LLVMSupport should be responsible to provide system_libs. 2014-02-10 10:52:19 +00:00
FileUpdate Replace the F_Binary flag with a F_Text one. 2014-02-24 18:20:12 +00:00
fpcmp Don't use PathV1.h in FileUtilities.h. 2013-06-13 20:41:00 +00:00
git
git-svn
jedit
kate Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
KillTheDoctor
lint
lit lit: Provide source locations in cfg files with older Python versions 2014-01-11 14:34:18 +00:00
llvm-build llvmbuild: Exclude disabled targets from LLVMExports.cmake. 2014-02-16 12:14:24 +00:00
llvm-lit Add the lld root to llvm-lit, so llvm-lit can be used 2014-01-14 22:52:24 +00:00
Misc Patch that forces MergeFunctions pass for clang. 2013-09-24 20:06:31 +00:00
not [CMake] LLVMSupport should be responsible to provide system_libs. 2014-02-10 10:52:19 +00:00
PerfectShuffle
release Remove superfluous label. 2013-12-03 07:34:19 +00:00
TableGen Add an OutPatFrag TableGen class 2014-02-28 00:26:56 +00:00
Target/ARM
testgen
textmate
unittest [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
valgrind
vim Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
yaml-bench YAMLBench.cpp: Use llvm_move instead of std::move also here. 2013-10-18 23:25:39 +00:00
check-each-file
clang-parse-diagnostics-file
codegen-diff
countloc.sh
DSAclean.py
DSAextract.py
findmisopt
findoptdiff
findsym.pl
GenLibDeps.pl
GetRepositoryPath Fix the build for git repositories with multiple remotes. 2013-09-16 09:25:49 +00:00
GetSourceVersion
getsrcs.sh
lldbDataFormatters.py
llvm-compilers-check
llvm-native-gcc
llvm-native-gxx
llvm.grm
llvm.natvis Improve existing visualizers by: 2014-02-07 22:57:20 +00:00
LLVMBuild.txt
llvmdo
llvmgrep
Makefile
makellvm
sort_includes.py
test_debuginfo.pl test_debuginfo.pl: Make failures easier to debug by printing the debugger 2014-02-20 19:55:44 +00:00
UpdateCMakeLists.pl
wciia.py Fix known typos 2014-01-24 17:20:08 +00:00