llvm-6502/include/llvm
Bruno Cardoso Lopes e7a54520b3 Implement support for custom target specific asm parsing of operands.
Motivation: Improve the parsing of not usual (different from registers or
immediates) operand forms.

This commit implements only the generic support. The ARM specific modifications
will come next.

A table like the one below is autogenerated for every instruction
containing a 'ParserMethod' in its AsmOperandClass

static const OperandMatchEntry OperandMatchTable[20] = {
 /* Mnemonic, Operand List Mask, Operand Class, Features */
 { "cdp", 29 /* 0, 2, 3, 4 */, MCK_Coproc, Feature_IsThumb|Feature_HasV6 },
 { "cdp", 58 /* 1, 3, 4, 5 */, MCK_Coproc, Feature_IsARM },

A matcher function very similar (but lot more naive) to
MatchInstructionImpl scans the table. After the mnemonic match, the
features are checked and if the "to be parsed" operand index is
present in the mask, there's a real match. Then, a switch like the one
below dispatch the parsing to the custom method provided in
'ParseMethod':

 case MCK_Coproc:
   return TryParseCoprocessorOperandName(Operands);




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125030 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-07 19:38:32 +00:00
..
ADT Remove NoVendor and NoOS, added in commit 123990, from Triple. While it 2011-02-02 10:08:38 +00:00
Analysis Rewrite how the indirect call bonus is handled. This now works by: 2011-02-05 00:49:15 +00:00
Assembly
Bitcode enhance vmcore to know that udiv's can be exact, and add a trivial 2011-02-06 21:44:57 +00:00
CodeGen Merge .debug_loc entries whenever possible to reduce debug_loc size. 2011-02-04 22:57:18 +00:00
CompilerDriver
Config Windows/DynamicLibrary.inc: Split explicit symbols into explicit_symbols.inc. 2011-02-05 15:11:53 +00:00
ExecutionEngine
MC Remove trailing whitespace 2011-02-03 23:17:44 +00:00
Object Edit a comment for consistency. 2011-02-03 23:17:40 +00:00
Support Add an m_Div pattern for matching either a udiv or an sdiv and use it 2011-02-07 09:36:32 +00:00
Target Implement support for custom target specific asm parsing of operands. 2011-02-07 19:38:32 +00:00
Transforms Re-apply r124518 with fix. Watch out for invalidated iterator. 2011-01-29 04:46:23 +00:00
AbstractTypeUser.h
Argument.h
Attributes.h
AutoUpgrade.h
BasicBlock.h
CallGraphSCCPass.h
CallingConv.h
CMakeLists.txt
Constant.h
Constants.h implement .ll and .bc support for nsw/nuw on shl and exact on lshr/ashr. 2011-02-07 16:40:21 +00:00
DerivedTypes.h
Function.h
GlobalAlias.h
GlobalValue.h
GlobalVariable.h
GVMaterializer.h
InitializePasses.h Implementation of path profiling. 2011-01-29 01:09:53 +00:00
InlineAsm.h
InstrTypes.h Add IRBuilder methods for creating an exact udiv, like for exact sdiv. 2011-02-07 09:21:52 +00:00
Instruction.def
Instruction.h
Instructions.h Make SwitchInst::removeCase() more efficient. 2011-02-01 09:22:34 +00:00
IntrinsicInst.h Teach LazyValueInfo that allocas aren't NULL. Over all of llvm-test, this saves 2011-01-15 09:16:12 +00:00
Intrinsics.h
Intrinsics.td
IntrinsicsAlpha.td
IntrinsicsARM.td
IntrinsicsCellSPU.td
IntrinsicsPowerPC.td
IntrinsicsX86.td
IntrinsicsXCore.td Add XCore intrinsics for resource instructions. 2011-02-03 13:14:25 +00:00
LinkAllPasses.h Implementation of path profiling. 2011-01-29 01:09:53 +00:00
LinkAllVMCore.h
Linker.h
LLVMContext.h
Metadata.h
Module.h
OperandTraits.h OperandTraits<>::Layout isn't used for anything. Remove it. 2011-01-14 18:41:56 +00:00
Operator.h implement .ll and .bc support for nsw/nuw on shl and exact on lshr/ashr. 2011-02-07 16:40:21 +00:00
Pass.h
PassAnalysisSupport.h
PassManager.h
PassManagers.h
PassRegistry.h
PassSupport.h
SymbolTableListTraits.h
Type.h
TypeSymbolTable.h
Use.h Add missing include for ptrdiff_t. Patch by Joerg Sonnenberger! 2011-01-28 03:52:25 +00:00
User.h Simplify User::operator delete(). 2011-01-26 21:56:10 +00:00
Value.h Fix reassociate to clear optional flags, such as nsw. 2011-02-02 02:02:34 +00:00
ValueSymbolTable.h