aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-11 20:59:47 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-11 20:59:47 +0000
commit59fc42debd571bbafc52c20bc418fdc3f4d00188 (patch)
tree185c53d1fab5944078b6ad9ed67f13f93f780f62 /include
parenta942ad3d995fe153b2b905b3d57e285a57240514 (diff)
downloadexternal_llvm-59fc42debd571bbafc52c20bc418fdc3f4d00188.zip
external_llvm-59fc42debd571bbafc52c20bc418fdc3f4d00188.tar.gz
external_llvm-59fc42debd571bbafc52c20bc418fdc3f4d00188.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/Target.td11
1 files changed, 11 insertions, 0 deletions
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;