aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-07-20 22:02:59 +0000
committerDavid Greene <greened@obbligato.org>2009-07-20 22:02:59 +0000
commit76081c4ef7ac6f085253a4af3af740333b6dfc5b (patch)
treee24f032f85a1533045a2c2df3c5e11dfc6f93d0f /include/llvm
parent87faa1fc67d0cf4729cad6e8dc63cca0ee8fd51f (diff)
downloadexternal_llvm-76081c4ef7ac6f085253a4af3af740333b6dfc5b.zip
external_llvm-76081c4ef7ac6f085253a4af3af740333b6dfc5b.tar.gz
external_llvm-76081c4ef7ac6f085253a4af3af740333b6dfc5b.tar.bz2
Re-apply 75490, 75806 and 76177 with fixes and tests. Efficiency comes
next. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 6cdb7cc..a89b906 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -222,6 +222,14 @@ namespace llvm {
/// assembler.
const char *CommentString; // Defaults to "#"
+ /// FirstOperandColumn - The output column where the first operand
+ /// should be printed
+ unsigned FirstOperandColumn; // Defaults to 0 (ignored)
+
+ /// MaxOperandLength - The maximum length of any printed asm
+ /// operand
+ unsigned MaxOperandLength; // Defaults to 0 (ignored)
+
/// GlobalPrefix - If this is set to a non-empty string, it is prepended
/// onto all global symbols. This is often used for "_" or ".".
const char *GlobalPrefix; // Defaults to ""
@@ -691,6 +699,9 @@ namespace llvm {
const char *getCommentString() const {
return CommentString;
}
+ unsigned getOperandColumn(int operand) const {
+ return FirstOperandColumn + (MaxOperandLength+1)*(operand-1);
+ }
const char *getGlobalPrefix() const {
return GlobalPrefix;
}