mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
9c97bf91c0
A TableGen backend can define how certain classes can be expanded into ordered sets of defs, typically by evaluating a specific field in the record. The SetTheory class can then evaluate DAG expressions that refer to these named sets. A number of standard set and list operations are predefined, and the backend can add more specialized operators if needed. The -print-sets backend is used by SetTheory.td to provide examples. This is intended to simplify how register classes are defined: def GR32_NOSP : RegisterClass<"X86", [i32], 32, (sub GR32, ESP)>; llvm-svn: 132621
58 lines
1.3 KiB
CMake
58 lines
1.3 KiB
CMake
set(LLVM_REQUIRES_EH 1)
|
|
set(LLVM_REQUIRES_RTTI 1)
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR})
|
|
|
|
add_llvm_utility(tblgen
|
|
ARMDecoderEmitter.cpp
|
|
AsmMatcherEmitter.cpp
|
|
AsmWriterEmitter.cpp
|
|
AsmWriterInst.cpp
|
|
CallingConvEmitter.cpp
|
|
ClangASTNodesEmitter.cpp
|
|
ClangAttrEmitter.cpp
|
|
ClangDiagnosticsEmitter.cpp
|
|
ClangSACheckersEmitter.cpp
|
|
CodeEmitterGen.cpp
|
|
CodeGenDAGPatterns.cpp
|
|
CodeGenInstruction.cpp
|
|
CodeGenTarget.cpp
|
|
DAGISelEmitter.cpp
|
|
DAGISelMatcherEmitter.cpp
|
|
DAGISelMatcherGen.cpp
|
|
DAGISelMatcherOpt.cpp
|
|
DAGISelMatcher.cpp
|
|
DisassemblerEmitter.cpp
|
|
EDEmitter.cpp
|
|
FastISelEmitter.cpp
|
|
FixedLenDecoderEmitter.cpp
|
|
InstrEnumEmitter.cpp
|
|
InstrInfoEmitter.cpp
|
|
IntrinsicEmitter.cpp
|
|
LLVMCConfigurationEmitter.cpp
|
|
NeonEmitter.cpp
|
|
OptParserEmitter.cpp
|
|
Record.cpp
|
|
RegisterInfoEmitter.cpp
|
|
SetTheory.cpp
|
|
StringMatcher.cpp
|
|
SubtargetEmitter.cpp
|
|
TGLexer.cpp
|
|
TGParser.cpp
|
|
TGValueTypes.cpp
|
|
TableGen.cpp
|
|
TableGenBackend.cpp
|
|
X86DisassemblerTables.cpp
|
|
X86RecognizableInstr.cpp
|
|
)
|
|
|
|
target_link_libraries(tblgen LLVMSupport)
|
|
if( MINGW )
|
|
target_link_libraries(tblgen imagehlp psapi)
|
|
endif( MINGW )
|
|
if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
|
|
target_link_libraries(tblgen pthread)
|
|
endif()
|
|
|
|
install(TARGETS tblgen RUNTIME DESTINATION bin)
|