llvm-6502/lib
Daniel Dunbar 20927f26fc llvm-mc/AsmMatcher: Move to a slightly more sane matching design.
- Still not very sane, but a least its not 60k lines on X86. :)

 - In terms of correctness, currently some things are hard wired for X86, and we
   still don't properly resolve ambiguities (this is ignoring the instructions
   we don't even match due to funny .td stuff or other corner cases).

The high level changes:
 1. Represent tokens which are significant for matching explicitly as separate
    operands. This uniformly handles not only the instruction mnemonic, but
    also 'signficiant' syntax like the '*' in "call * ...".

 2. Separate the matching of operands to an instruction from the construction of
    the MCInst. In theory this can be done during matching, but since the number
    of variations is small I think it makes sense to decompose the problems.

 3. Improved a few of the mechanisms to at least successfully flatten / tokenize
    the assembly strings for PowerPC and ARM.

 4. The comment at the top of AsmMatcherEmitter.cpp explains the approach I'm
    moving towards for handling ambiguous instructions. The high-bit is to infer
    a partial ordering of the operand classes (and force the user to specify one
    if we can't) and use that to resolve ambiguities.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78378 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-07 08:26:05 +00:00
..
Analysis Remove unused function. 2009-08-07 03:52:07 +00:00
Archive Factor some of the constants+context related code out into a separate header, to make LLVMContextImpl.h 2009-08-04 22:41:48 +00:00
AsmParser Privatize the StructType table, which unfortunately involves routing contexts through a number of APIs. 2009-08-05 23:16:16 +00:00
Bitcode Privatize the StructType table, which unfortunately involves routing contexts through a number of APIs. 2009-08-05 23:16:16 +00:00
CodeGen Another coalescer bug. When a dead copy is eliminated, transfer the kill to a def of the exact register rather than a super-register. 2009-08-07 07:14:14 +00:00
CompilerDriver Delete the temp dir even when '--temp-dir' is specified. 2009-07-11 19:27:07 +00:00
Debugger Privatize the StructType table, which unfortunately involves routing contexts through a number of APIs. 2009-08-05 23:16:16 +00:00
ExecutionEngine Fix a bunch of namespace pollution. 2009-08-07 01:32:21 +00:00
Linker Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are 2009-07-31 20:28:14 +00:00
MC Change SectionKind to be a property that is true of a *section*, it 2009-08-01 21:11:14 +00:00
Support Fix FindExecutable to use sys::Path::GetMainExecutable instead of 2009-08-05 20:21:17 +00:00
System Fix a bunch of namespace pollution. 2009-08-07 01:32:21 +00:00
Target llvm-mc/AsmMatcher: Move to a slightly more sane matching design. 2009-08-07 08:26:05 +00:00
Transforms Fix a bunch of namespace pollution. 2009-08-07 01:32:21 +00:00
VMCore Fix a bunch of namespace pollution. 2009-08-07 01:32:21 +00:00
Makefile LLVMC doesn't need ENABLE_PIC to build now. 2009-07-04 03:54:54 +00:00