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
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
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
TargetData.h fix typo 2011-01-15 06:27:35 +00:00
TargetELFWriterInfo.h
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
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
TargetOptions.h
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
TargetSelect.h
TargetSelectionDAG.td [AVX] Add INSERT_SUBVECTOR and support it on x86. This provides a 2011-01-26 19:13:22 +00:00
TargetSelectionDAGInfo.h
TargetSubtarget.h