From 59fc42debd571bbafc52c20bc418fdc3f4d00188 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 11 Aug 2009 20:59:47 +0000 Subject: llvm-mc/AsmParser: Allow target to specific a comment delimiter, which will be used to strip hard coded comments out of .td assembly strings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78716 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/Target.td | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/llvm/Target/Target.td b/include/llvm/Target/Target.td index dcbf5f2..d4a1850 100644 --- a/include/llvm/Target/Target.td +++ b/include/llvm/Target/Target.td @@ -484,6 +484,17 @@ class AsmParser { // used to support targets that need to parser multiple formats for the // assembly language. int Variant = 0; + + // CommentDelimiter - If given, the delimiter string used to recognize + // comments which are hard coded in the .td assembler strings for individual + // instructions. + string CommentDelimiter = ""; + + // RegisterPrefix - If given, the token prefix which indicates a register + // token. This is used by the matcher to automatically recognize hard coded + // register tokens as constrained registers, instead of tokens, for the + // purposes of matching. + string RegisterPrefix = ""; } def DefaultAsmParser : AsmParser; -- cgit v1.1