[PATCH] D143336: [MC][AsmParser] Add `MCTargetAsmParser::isStartOfInstruction` hook

Sergei Barannikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 5 02:52:20 PST 2023


barannikov88 created this revision.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
barannikov88 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This allows targets to indicate which tokens are valid at the start of
instructions. This is especially useful for targets with non-standard
assembly language syntax, e.g. BPF and Hexagon.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143336

Files:
  llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
  llvm/lib/MC/MCParser/AsmParser.cpp
  llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
  llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
  llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143336.494887.patch
Type: text/x-patch
Size: 8485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230205/8cfcf8db/attachment.bin>


More information about the llvm-commits mailing list