Implement smart printing of inline asm strings, handling variants and
authorChris Lattner <sabre@nondot.org>
Wed, 1 Feb 2006 22:41:11 +0000 (22:41 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 1 Feb 2006 22:41:11 +0000 (22:41 +0000)
commit6609913b7d0ad13058d4ffffb17fb8d8078799ef
tree4cafff95fa0d1a5b96478249b35305da7f39593a
parent47cf4eda9faa3c0b063337d0eb4ea83aba8cb329
Implement smart printing of inline asm strings, handling variants and
substituted operands.  For this testcase:

int %test(int %A, int %B) {
  %C = call int asm "xyz $0, $1, $2", "=r,r,r"(int %A, int %B)
  ret int %C
}

we now emit:

_test:
        or r2, r3, r3
        or r3, r4, r4
        xyz r2, r2, r3  ;; look here
        or r3, r2, r2
        blr

... note the substituted operands. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25886 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter.cpp