llvm-6502/include/llvm/Target
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
..
Mangler.h Revert r107205 and r107207. 2010-06-29 22:34:52 +00:00
SubtargetFeature.h Merge System into Support. 2010-11-29 18:16:10 +00:00
Target.td Implement support for custom target specific asm parsing of operands. 2011-02-07 19:38:32 +00:00
TargetAsmBackend.h Remove the MCObjectFormat class. 2010-12-18 05:37:28 +00:00
TargetAsmInfo.h Rename TargetFrameInfo into TargetFrameLowering. Also, put couple of FIXMEs and fixes here and there. 2011-01-10 12:39:04 +00:00
TargetAsmLexer.h Moved InstallLexer() from the X86-specific AsmLexer 2010-01-31 02:28:18 +00:00
TargetAsmParser.h Introduce virtual ParseRegister method in TargetAsmParser. 2011-01-27 17:14:22 +00:00
TargetCallingConv.h Inside the calling convention logic LocVT is always a simple 2010-11-03 11:35:31 +00:00
TargetCallingConv.td Fix a couple of typos. 2010-08-27 21:38:11 +00:00
TargetData.h fix typo 2011-01-15 06:27:35 +00:00
TargetELFWriterInfo.h Jim Asked us to move DataLayout on ARM back to the most specialized classes. Do 2010-10-03 18:59:45 +00:00
TargetFrameLowering.h Rename TargetFrameInfo into TargetFrameLowering. Also, put couple of FIXMEs and fixes here and there. 2011-01-10 12:39:04 +00:00
TargetInstrDesc.h Merge System into Support. 2010-11-29 18:16:10 +00:00
TargetInstrInfo.h Convert -enable-sched-cycles and -enable-sched-hazard to -disable 2011-01-21 05:51:33 +00:00
TargetInstrItineraries.h Various bits of framework needed for precise machine-level selection 2010-12-24 05:03:26 +00:00
TargetIntrinsicInfo.h Reintroduce support for overloading target intrinsics 2009-11-05 03:19:08 +00:00
TargetJITInfo.h Merge System into Support. 2010-11-29 18:16:10 +00:00
TargetLowering.h Given a pair of floating point load and store, if there are no other uses of 2011-02-02 01:06:55 +00:00
TargetLoweringObjectFile.h Delay the creation of eh_frame so that the user can change the defaults. 2011-01-23 05:43:40 +00:00
TargetMachine.h Add support for the --noexecstack option. 2011-01-23 17:55:27 +00:00
TargetOpcodes.h Rename DBG_LABEL PROLOG_LABEL, because it's only used during prolog emission and 2010-07-16 22:20:36 +00:00
TargetOptions.h Grammar. 2010-07-29 18:11:28 +00:00
TargetRegisterInfo.h Fix comment typo. 2011-02-02 00:46:09 +00:00
TargetRegistry.h Add support for the --noexecstack option. 2011-01-23 17:55:27 +00:00
TargetSchedule.td Comments about operand cycles and pipeline forwarding pathes. 2010-09-30 22:01:50 +00:00
TargetSelect.h Fix LLVM target initialization to deal with sociopathic outside projects 2010-08-30 18:34:48 +00:00
TargetSelectionDAG.td [AVX] Add INSERT_SUBVECTOR and support it on x86. This provides a 2011-01-26 19:13:22 +00:00
TargetSelectionDAGInfo.h reimplement memcpy/memmove/memset lowering to use MachinePointerInfo 2010-09-21 05:40:29 +00:00
TargetSubtarget.h Allow target to specify regclass for which antideps will only be broken along the critical path. 2009-11-13 19:52:48 +00:00