[llvm-commits] [RFC/Patch 1/2 ] ppc64-elf-linux-abi Add instruction tokens for tblgen
Will Schmidt
will_schmidt at vnet.ibm.com
Fri Sep 14 13:37:05 PDT 2012
subj: ppc64-elf-linux-abi Add instruction tokens for tblgen.
As part of getting AsmParser working for PPC64-Elf-Linux ABI, This is a
first-pass that resolves some of the errors generated when trying to do
"llvm-tblgen -gen-asm-matcher" operations against PPC.td and friends.
This change should not affect the current behavior of the build, and
should be safe to commit this patch if it looks OK as a first pass, and
if someone would be so kind to do so.
- add tokens to PPCInstrInfo.td and PPCInstr64Bit.td to resolve
"Instruction 'foo' has no tokens" errors. At this time, the added
tokens are "#comment" style rather than the eventual "mnemonic ", thus
more activity will follow once the rest of the asmparser bits get
straightened out.
- Add operands for a few of those tokens to resolve "Instruction 'foo'
has operand 'bar' that doesn't appear in asm string" errors.
- add 'isCodeGenOnly = 1' indicator where indicated to resolve
"matchable with operand modifier '${cond:cc}' not supported by asm
matcher. Mark isCodeGenOnly!" errors.
The makefile and other asmparser bits that would enable the tblgen
activity will be shared under a [RFC] patch as a reply to this one.
Thanks,
-Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_instruction_tokens_for_tblgen.patch
Type: text/x-patch
Size: 16032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120914/7f9872d9/attachment.bin>
More information about the llvm-commits
mailing list