diff options
author | David Greene <greened@obbligato.org> | 2009-07-20 22:02:59 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-07-20 22:02:59 +0000 |
commit | 47974bf9b48d5c965f63adf7f0edd68b5b813ed1 (patch) | |
tree | e24f032f85a1533045a2c2df3c5e11dfc6f93d0f /include | |
parent | 344019151c8f462e23c4e6f84573a605a420a43c (diff) | |
download | external_llvm-47974bf9b48d5c965f63adf7f0edd68b5b813ed1.zip external_llvm-47974bf9b48d5c965f63adf7f0edd68b5b813ed1.tar.gz external_llvm-47974bf9b48d5c965f63adf7f0edd68b5b813ed1.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')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 11 |
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; } |