[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetAsmInfo.cpp X86TargetAsmInfo.h
Bill Wendling
isanbard at gmail.com
Mon Jan 15 19:42:30 PST 2007
Changes in directory llvm/lib/Target/X86:
X86TargetAsmInfo.cpp updated: 1.25 -> 1.26
X86TargetAsmInfo.h updated: 1.3 -> 1.4
---
Log message:
Fix for PR1095: http://llvm.org/PR1095 :
LLVM would miscompile ASM dialects when compiling for PPC. Added dialects for
the X86 and PPC backends. It defaults to "0", the first variant of a compound
inline asm expression.
---
Diffs of the changes: (+8 -1)
X86TargetAsmInfo.cpp | 7 +++++++
X86TargetAsmInfo.h | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86TargetAsmInfo.cpp
diff -u llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.25 llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.26
--- llvm/lib/Target/X86/X86TargetAsmInfo.cpp:1.25 Sun Jan 14 20:27:26 2007
+++ llvm/lib/Target/X86/X86TargetAsmInfo.cpp Mon Jan 15 21:42:04 2007
@@ -21,6 +21,12 @@
#include "llvm/ADT/StringExtras.h"
using namespace llvm;
+// ASM variant to use.
+enum {
+ X86_ATT = 0,
+ X86_INTEL = 1
+};
+
static const char* x86_asm_table[] = {"{si}", "S",
"{di}", "D",
"{ax}", "a",
@@ -38,6 +44,7 @@
// FIXME - Should be simplified.
AsmTransCBE = x86_asm_table;
+ AssemblerDialect = X86_ATT;
switch (Subtarget->TargetType) {
case X86Subtarget::isDarwin:
Index: llvm/lib/Target/X86/X86TargetAsmInfo.h
diff -u llvm/lib/Target/X86/X86TargetAsmInfo.h:1.3 llvm/lib/Target/X86/X86TargetAsmInfo.h:1.4
--- llvm/lib/Target/X86/X86TargetAsmInfo.h:1.3 Tue Nov 28 19:14:06 2006
+++ llvm/lib/Target/X86/X86TargetAsmInfo.h Mon Jan 15 21:42:04 2007
@@ -17,7 +17,7 @@
#include "llvm/Target/TargetAsmInfo.h"
namespace llvm {
-
+
// Forward declaration.
class X86TargetMachine;
More information about the llvm-commits
mailing list