[llvm-commits] CVS: llvm/lib/Support/Compressor.cpp IsInf.cpp IsNAN.cpp
Changes in directory llvm/lib/Support: Compressor.cpp updated: 1.19 -> 1.20 IsInf.cpp updated: 1.7 -> 1.8 IsNAN.cpp updated: 1.4 -> 1.5 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+3 -3) Compressor.cpp |2 +- IsInf.cpp |2 +- IsNAN.cpp |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/lib/Support/Compressor.cpp diff -u llvm/lib/Support/Compressor.cpp:1.19 llvm/lib/Support/Compressor.cpp:1.20 --- llvm/lib/Support/Compressor.cpp:1.19Wed Jul 27 01:12:33 2005 +++ llvm/lib/Support/Compressor.cpp Wed May 24 12:04:04 2006 @@ -23,7 +23,7 @@ enum CompressionTypes { COMP_TYPE_NONE = '0', - COMP_TYPE_BZIP2 = '2', + COMP_TYPE_BZIP2 = '2' }; static int getdata(char*& buffer, size_t &size, Index: llvm/lib/Support/IsInf.cpp diff -u llvm/lib/Support/IsInf.cpp:1.7 llvm/lib/Support/IsInf.cpp:1.8 --- llvm/lib/Support/IsInf.cpp:1.7 Mon May 16 01:45:57 2005 +++ llvm/lib/Support/IsInf.cpp Wed May 24 12:04:04 2006 @@ -42,4 +42,4 @@ int IsInf (float f) { return isinf (f); } int IsInf (double d) { return isinf (d); } -}; // end namespace llvm; +} // end namespace llvm; Index: llvm/lib/Support/IsNAN.cpp diff -u llvm/lib/Support/IsNAN.cpp:1.4 llvm/lib/Support/IsNAN.cpp:1.5 --- llvm/lib/Support/IsNAN.cpp:1.4 Thu Apr 21 17:52:05 2005 +++ llvm/lib/Support/IsNAN.cpp Wed May 24 12:04:04 2006 @@ -31,4 +31,4 @@ int IsNAN (float f) { return isnan (f); } int IsNAN (double d) { return isnan (d); } -}; // end namespace llvm; +} // end namespace llvm; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelLowering.h AlphaRelocations.h
Changes in directory llvm/lib/Target/Alpha: AlphaISelLowering.h updated: 1.15 -> 1.16 AlphaRelocations.h updated: 1.2 -> 1.3 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+2 -2) AlphaISelLowering.h |2 +- AlphaRelocations.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Target/Alpha/AlphaISelLowering.h diff -u llvm/lib/Target/Alpha/AlphaISelLowering.h:1.15 llvm/lib/Target/Alpha/AlphaISelLowering.h:1.16 --- llvm/lib/Target/Alpha/AlphaISelLowering.h:1.15 Thu Mar 9 11:16:45 2006 +++ llvm/lib/Target/Alpha/AlphaISelLowering.h Wed May 24 12:04:04 2006 @@ -42,7 +42,7 @@ CALL, /// DIVCALL - used for special library calls for div and rem - DivCall, + DivCall }; } Index: llvm/lib/Target/Alpha/AlphaRelocations.h diff -u llvm/lib/Target/Alpha/AlphaRelocations.h:1.2 llvm/lib/Target/Alpha/AlphaRelocations.h:1.3 --- llvm/lib/Target/Alpha/AlphaRelocations.h:1.2Thu Jul 28 13:14:47 2005 +++ llvm/lib/Target/Alpha/AlphaRelocations.hWed May 24 12:04:04 2006 @@ -23,7 +23,7 @@ reloc_gprellow, reloc_gprelhigh, reloc_gpdist, - reloc_bsr, + reloc_bsr }; } } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp X86ISelLowering.h X86InstrBuilder.h X86InstrInfo.h X86JITInfo.cpp X86Relocations.h
Changes in directory llvm/lib/Target/X86: X86ISelDAGToDAG.cpp updated: 1.66 -> 1.67 X86ISelLowering.h updated: 1.64 -> 1.65 X86InstrBuilder.h updated: 1.20 -> 1.21 X86InstrInfo.h updated: 1.51 -> 1.52 X86JITInfo.cpp updated: 1.18 -> 1.19 X86Relocations.h updated: 1.2 -> 1.3 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+6 -6) X86ISelDAGToDAG.cpp |2 +- X86ISelLowering.h |2 +- X86InstrBuilder.h |2 +- X86InstrInfo.h |2 +- X86JITInfo.cpp |2 +- X86Relocations.h|2 +- 6 files changed, 6 insertions(+), 6 deletions(-) Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.66 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.67 --- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.66Sun May 21 01:28:50 2006 +++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Wed May 24 12:04:04 2006 @@ -47,7 +47,7 @@ struct X86ISelAddressMode { enum { RegBase, - FrameIndexBase, + FrameIndexBase } BaseType; struct {// This is really a union, discriminated by BaseType! Index: llvm/lib/Target/X86/X86ISelLowering.h diff -u llvm/lib/Target/X86/X86ISelLowering.h:1.64 llvm/lib/Target/X86/X86ISelLowering.h:1.65 --- llvm/lib/Target/X86/X86ISelLowering.h:1.64 Tue May 23 16:06:34 2006 +++ llvm/lib/Target/X86/X86ISelLowering.h Wed May 24 12:04:04 2006 @@ -156,7 +156,7 @@ /// PINSRW - Insert the lower 16-bits of a 32-bit value to a vector, /// corresponds to X86::PINSRW. - PINSRW, + PINSRW }; // X86 specific condition code. These correspond to X86_*_COND in Index: llvm/lib/Target/X86/X86InstrBuilder.h diff -u llvm/lib/Target/X86/X86InstrBuilder.h:1.20 llvm/lib/Target/X86/X86InstrBuilder.h:1.21 --- llvm/lib/Target/X86/X86InstrBuilder.h:1.20 Thu May 4 13:16:01 2006 +++ llvm/lib/Target/X86/X86InstrBuilder.h Wed May 24 12:04:04 2006 @@ -35,7 +35,7 @@ struct X86AddressMode { enum { RegBase, -FrameIndexBase, +FrameIndexBase } BaseType; union { Index: llvm/lib/Target/X86/X86InstrInfo.h diff -u llvm/lib/Target/X86/X86InstrInfo.h:1.51 llvm/lib/Target/X86/X86InstrInfo.h:1.52 --- llvm/lib/Target/X86/X86InstrInfo.h:1.51 Thu May 18 01:27:15 2006 +++ llvm/lib/Target/X86/X86InstrInfo.h Wed May 24 12:04:04 2006 @@ -162,7 +162,7 @@ SpecialFP = 7 << FPTypeShift, OpcodeShift = 16, -OpcodeMask= 0xFF << OpcodeShift, +OpcodeMask= 0xFF << OpcodeShift // Bits 25 -> 31 are unused }; } Index: llvm/lib/Target/X86/X86JITInfo.cpp diff -u llvm/lib/Target/X86/X86JITInfo.cpp:1.18 llvm/lib/Target/X86/X86JITInfo.cpp:1.19 --- llvm/lib/Target/X86/X86JITInfo.cpp:1.18 Tue May 2 14:14:47 2006 +++ llvm/lib/Target/X86/X86JITInfo.cpp Wed May 24 12:04:04 2006 @@ -167,7 +167,7 @@ } void *X86JITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) { - if (Fn != X86CompilationCallback) { + if (Fn != (void*)X86CompilationCallback) { MCE.startFunctionStub(5); MCE.emitByte(0xE9); MCE.emitWordLE((intptr_t)Fn-MCE.getCurrentPCValue()-4); Index: llvm/lib/Target/X86/X86Relocations.h diff -u llvm/lib/Target/X86/X86Relocations.h:1.2 llvm/lib/Target/X86/X86Relocations.h:1.3 --- llvm/lib/Target/X86/X86Relocations.h:1.2Thu Apr 21 18:38:14 2005 +++ llvm/lib/Target/X86/X86Relocations.hWed May 24 12:04:04 2006 @@ -25,7 +25,7 @@ // reloc_absolute_word - Absolute relocation, just add the relocated value // to the value already in memory. - reloc_absolute_word = 1, + reloc_absolute_word = 1 }; } } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Analysis/IPA/Andersens.cpp
Changes in directory llvm/lib/Analysis/IPA: Andersens.cpp updated: 1.27 -> 1.28 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) Andersens.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Analysis/IPA/Andersens.cpp diff -u llvm/lib/Analysis/IPA/Andersens.cpp:1.27 llvm/lib/Analysis/IPA/Andersens.cpp:1.28 --- llvm/lib/Analysis/IPA/Andersens.cpp:1.27Thu Mar 2 19:21:36 2006 +++ llvm/lib/Analysis/IPA/Andersens.cpp Wed May 24 12:04:04 2006 @@ -192,7 +192,7 @@ enum { UniversalSet = 0, NullPtr = 1, - NullObject = 2, + NullObject = 2 }; public: ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h ScheduleDAG.h
Changes in directory llvm/include/llvm/CodeGen: MachineInstr.h updated: 1.181 -> 1.182 ScheduleDAG.h updated: 1.26 -> 1.27 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+2 -2) MachineInstr.h |2 +- ScheduleDAG.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/CodeGen/MachineInstr.h diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.181 llvm/include/llvm/CodeGen/MachineInstr.h:1.182 --- llvm/include/llvm/CodeGen/MachineInstr.h:1.181 Thu May 4 14:36:09 2006 +++ llvm/include/llvm/CodeGen/MachineInstr.hWed May 24 12:04:03 2006 @@ -42,7 +42,7 @@ // Bit fields of the flags variable used for different operand properties enum { DEFFLAG = 0x01, // this is a def of the operand -USEFLAG = 0x02, // this is a use of the operand +USEFLAG = 0x02// this is a use of the operand }; public: Index: llvm/include/llvm/CodeGen/ScheduleDAG.h diff -u llvm/include/llvm/CodeGen/ScheduleDAG.h:1.26 llvm/include/llvm/CodeGen/ScheduleDAG.h:1.27 --- llvm/include/llvm/CodeGen/ScheduleDAG.h:1.26Sat May 13 00:53:16 2006 +++ llvm/include/llvm/CodeGen/ScheduleDAG.h Wed May 24 12:04:03 2006 @@ -41,7 +41,7 @@ enum HazardType { NoHazard, // This instruction can be emitted at this cycle. Hazard,// This instruction can't be emitted at this cycle. - NoopHazard,// This instruction can't be emitted, and needs noops. + NoopHazard // This instruction can't be emitted, and needs noops. }; /// getHazardType - Return the hazard type of emitting this node. There are ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/llvm-nm/llvm-nm.cpp
Changes in directory llvm/tools/llvm-nm: llvm-nm.cpp updated: 1.25 -> 1.26 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) llvm-nm.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/llvm-nm/llvm-nm.cpp diff -u llvm/tools/llvm-nm/llvm-nm.cpp:1.25 llvm/tools/llvm-nm/llvm-nm.cpp:1.26 --- llvm/tools/llvm-nm/llvm-nm.cpp:1.25 Thu Jul 7 13:21:42 2005 +++ llvm/tools/llvm-nm/llvm-nm.cpp Wed May 24 12:04:04 2006 @@ -63,7 +63,7 @@ bool MultipleFiles = false; std::string ToolName; -}; +} char TypeCharForSymbol (GlobalValue &GV) { if (GV.isExternal ()) return 'U'; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp PPCInstrInfo.h PPCJITInfo.cpp PPCRelocations.h
Changes in directory llvm/lib/Target/PowerPC: PPCISelLowering.cpp updated: 1.182 -> 1.183 PPCInstrInfo.h updated: 1.14 -> 1.15 PPCJITInfo.cpp updated: 1.21 -> 1.22 PPCRelocations.h updated: 1.6 -> 1.7 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+5 -5) PPCISelLowering.cpp |2 +- PPCInstrInfo.h |4 ++-- PPCJITInfo.cpp |2 +- PPCRelocations.h|2 +- 4 files changed, 5 insertions(+), 5 deletions(-) Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.182 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.183 --- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.182 Tue May 23 19:15:25 2006 +++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Wed May 24 12:04:04 2006 @@ -1748,7 +1748,7 @@ OP_VSPLTISW3, OP_VSLDOI4, OP_VSLDOI8, -OP_VSLDOI12, +OP_VSLDOI12 }; if (OpNum == OP_COPY) { Index: llvm/lib/Target/PowerPC/PPCInstrInfo.h diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.14 llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.15 --- llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.14 Sun Mar 12 23:15:10 2006 +++ llvm/lib/Target/PowerPC/PPCInstrInfo.h Wed May 24 12:04:04 2006 @@ -44,7 +44,7 @@ /// PPC970_Mask/Shift - This is a bitmask that selects the pipeline type that /// an instruction is issued to. PPC970_Shift = 3, - PPC970_Mask = 0x07 << PPC970_Shift, + PPC970_Mask = 0x07 << PPC970_Shift }; enum PPC970_Unit { /// These are the various PPC970 execution unit pipelines. Each instruction @@ -56,7 +56,7 @@ PPC970_CRU= 4 << PPC970_Shift, // Control Register Unit PPC970_VALU = 5 << PPC970_Shift, // Vector ALU PPC970_VPERM = 6 << PPC970_Shift, // Vector Permute Unit - PPC970_BRU= 7 << PPC970_Shift, // Branch Unit + PPC970_BRU= 7 << PPC970_Shift// Branch Unit }; } Index: llvm/lib/Target/PowerPC/PPCJITInfo.cpp diff -u llvm/lib/Target/PowerPC/PPCJITInfo.cpp:1.21 llvm/lib/Target/PowerPC/PPCJITInfo.cpp:1.22 --- llvm/lib/Target/PowerPC/PPCJITInfo.cpp:1.21 Tue May 2 14:14:47 2006 +++ llvm/lib/Target/PowerPC/PPCJITInfo.cpp Wed May 24 12:04:04 2006 @@ -165,7 +165,7 @@ void *PPCJITInfo::emitFunctionStub(void *Fn, MachineCodeEmitter &MCE) { // If this is just a call to an external function, emit a branch instead of a // call. The code is the same except for one bit of the last instruction. - if (Fn != PPC32CompilationCallback) { + if (Fn != (void*)PPC32CompilationCallback) { MCE.startFunctionStub(4*4); void *Addr = (void*)(intptr_t)MCE.getCurrentPCValue(); MCE.emitWordBE(0); Index: llvm/lib/Target/PowerPC/PPCRelocations.h diff -u llvm/lib/Target/PowerPC/PPCRelocations.h:1.6 llvm/lib/Target/PowerPC/PPCRelocations.h:1.7 --- llvm/lib/Target/PowerPC/PPCRelocations.h:1.6Sun Oct 16 00:39:50 2005 +++ llvm/lib/Target/PowerPC/PPCRelocations.hWed May 24 12:04:04 2006 @@ -50,7 +50,7 @@ // relocated to point to a POINTER to the indicated global. The low-16 // bits of the instruction are rewritten with the low 16-bits of the // address of the pointer. - reloc_absolute_ptr_low, + reloc_absolute_ptr_low }; } } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp TwoAddressInstructionPass.cpp
Changes in directory llvm/lib/CodeGen: LiveIntervalAnalysis.cpp updated: 1.160 -> 1.161 TwoAddressInstructionPass.cpp updated: 1.33 -> 1.34 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+2 -2) LiveIntervalAnalysis.cpp |2 +- TwoAddressInstructionPass.cpp |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.160 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.161 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.160 Fri May 12 01:06:34 2006 +++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Wed May 24 12:04:04 2006 @@ -59,7 +59,7 @@ EnableJoining("join-liveintervals", cl::desc("Join compatible live intervals"), cl::init(true)); -}; +} void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const { Index: llvm/lib/CodeGen/TwoAddressInstructionPass.cpp diff -u llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.33 llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.34 --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1.33 Thu May 4 12:52:23 2006 +++ llvm/lib/CodeGen/TwoAddressInstructionPass.cpp Wed May 24 12:04:04 2006 @@ -60,7 +60,7 @@ RegisterPass X("twoaddressinstruction", "Two-Address instruction pass"); -}; +} const PassInfo *llvm::TwoAddressInstructionPassID = X.getPassInfo(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp
Changes in directory llvm/lib/VMCore: Constants.cpp updated: 1.150 -> 1.151 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) Constants.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/VMCore/Constants.cpp diff -u llvm/lib/VMCore/Constants.cpp:1.150 llvm/lib/VMCore/Constants.cpp:1.151 --- llvm/lib/VMCore/Constants.cpp:1.150 Sat Apr 8 00:09:48 2006 +++ llvm/lib/VMCore/Constants.cpp Wed May 24 12:04:04 2006 @@ -529,7 +529,7 @@ case Type::DoubleTyID: return true; // This is the largest type... } -}; +} //===--===// // Factory Function Implementation ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/Sparc/Sparc.h SparcISelDAGToDAG.cpp SparcInstrInfo.h SparcSubtarget.cpp
Changes in directory llvm/lib/Target/Sparc: Sparc.h updated: 1.11 -> 1.12 SparcISelDAGToDAG.cpp updated: 1.93 -> 1.94 SparcInstrInfo.h updated: 1.8 -> 1.9 SparcSubtarget.cpp updated: 1.5 -> 1.6 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+4 -4) Sparc.h |2 +- SparcISelDAGToDAG.cpp |2 +- SparcInstrInfo.h |2 +- SparcSubtarget.cpp|2 +- 4 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/lib/Target/Sparc/Sparc.h diff -u llvm/lib/Target/Sparc/Sparc.h:1.11 llvm/lib/Target/Sparc/Sparc.h:1.12 --- llvm/lib/Target/Sparc/Sparc.h:1.11 Sat Feb 4 23:50:24 2006 +++ llvm/lib/Target/Sparc/Sparc.h Wed May 24 12:04:04 2006 @@ -75,7 +75,7 @@ FCC_UGE = 12+16, // Unordered or Greater or Equal FCC_LE = 13+16, // Less or Equal FCC_ULE = 14+16, // Unordered or Less or Equal - FCC_O = 15+16, // Ordered + FCC_O = 15+16 // Ordered }; } Index: llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp diff -u llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.93 llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.94 --- llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.93Fri May 12 12:31:21 2006 +++ llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp Wed May 24 12:04:04 2006 @@ -48,7 +48,7 @@ ITOF,// Int to FP within a FP register. CALL,// A call instruction. -RET_FLAG,// Return with a flag operand. +RET_FLAG // Return with a flag operand. }; } Index: llvm/lib/Target/Sparc/SparcInstrInfo.h diff -u llvm/lib/Target/Sparc/SparcInstrInfo.h:1.8 llvm/lib/Target/Sparc/SparcInstrInfo.h:1.9 --- llvm/lib/Target/Sparc/SparcInstrInfo.h:1.8 Sat Feb 4 23:50:24 2006 +++ llvm/lib/Target/Sparc/SparcInstrInfo.h Wed May 24 12:04:04 2006 @@ -29,7 +29,7 @@ Store = (1<<2), DelaySlot = (1<<3) }; -}; +} class SparcInstrInfo : public TargetInstrInfo { const SparcRegisterInfo RI; Index: llvm/lib/Target/Sparc/SparcSubtarget.cpp diff -u llvm/lib/Target/Sparc/SparcSubtarget.cpp:1.5 llvm/lib/Target/Sparc/SparcSubtarget.cpp:1.6 --- llvm/lib/Target/Sparc/SparcSubtarget.cpp:1.5Sat Feb 4 23:50:24 2006 +++ llvm/lib/Target/Sparc/SparcSubtarget.cppWed May 24 12:04:04 2006 @@ -40,4 +40,4 @@ // Unless explicitly enabled, disable the V9 instructions. if (!EnableV9) IsV9 = false; -}; +} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp
Changes in directory llvm/lib/Target: TargetMachine.cpp updated: 1.46 -> 1.47 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+2 -2) TargetMachine.cpp |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Target/TargetMachine.cpp diff -u llvm/lib/Target/TargetMachine.cpp:1.46 llvm/lib/Target/TargetMachine.cpp:1.47 --- llvm/lib/Target/TargetMachine.cpp:1.46 Tue May 23 13:18:46 2006 +++ llvm/lib/Target/TargetMachine.cpp Wed May 24 12:04:04 2006 @@ -28,7 +28,7 @@ bool UnsafeFPMath; bool FiniteOnlyFPMathOption; Reloc::Model RelocationModel; -}; +} namespace { cl::opt PrintCode("print-machineinstrs", cl::desc("Print generated machine code"), @@ -70,7 +70,7 @@ clEnumValN(Reloc::DynamicNoPIC, "dynamic-no-pic", "Relocatable external references, non-relocatable code"), clEnumValEnd)); -}; +} //--- // TargetMachine Class ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/utils/PerfectShuffle/PerfectShuffle.cpp
Changes in directory llvm/utils/PerfectShuffle: PerfectShuffle.cpp updated: 1.7 -> 1.8 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) PerfectShuffle.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/utils/PerfectShuffle/PerfectShuffle.cpp diff -u llvm/utils/PerfectShuffle/PerfectShuffle.cpp:1.7 llvm/utils/PerfectShuffle/PerfectShuffle.cpp:1.8 --- llvm/utils/PerfectShuffle/PerfectShuffle.cpp:1.7Mon Apr 17 19:21:25 2006 +++ llvm/utils/PerfectShuffle/PerfectShuffle.cppWed May 24 12:04:05 2006 @@ -460,7 +460,7 @@ OP_VSPLTISW3, OP_VSLDOI4, OP_VSLDOI8, - OP_VSLDOI12, + OP_VSLDOI12 }; struct vmrghw : public Operator { ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/bugpoint/ListReducer.h
Changes in directory llvm/tools/bugpoint: ListReducer.h updated: 1.15 -> 1.16 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) ListReducer.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/bugpoint/ListReducer.h diff -u llvm/tools/bugpoint/ListReducer.h:1.15 llvm/tools/bugpoint/ListReducer.h:1.16 --- llvm/tools/bugpoint/ListReducer.h:1.15 Sun Jan 8 16:40:10 2006 +++ llvm/tools/bugpoint/ListReducer.h Wed May 24 12:04:04 2006 @@ -27,7 +27,7 @@ enum TestResult { NoFailure, // No failure of the predicate was detected KeepSuffix,// The suffix alone satisfies the predicate -KeepPrefix,// The prefix alone satisfies the predicate +KeepPrefix // The prefix alone satisfies the predicate }; virtual ~ListReducer() {} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/ARM: ARMISelDAGToDAG.cpp updated: 1.4 -> 1.5 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) ARMISelDAGToDAG.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.4 llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.5 --- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.4 Mon May 22 21:48:20 2006 +++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp Wed May 24 12:04:04 2006 @@ -31,7 +31,7 @@ namespace ARMISD { enum { FIRST_NUMBER = ISD::BUILTIN_OP_END+ARM::INSTRUCTION_LIST_END, -RET_FLAG, +RET_FLAG }; } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/llvmc/CompilerDriver.h ConfigLexer.h ConfigLexer.l ConfigLexer.l.cvs
Changes in directory llvm/tools/llvmc: CompilerDriver.h updated: 1.18 -> 1.19 ConfigLexer.h updated: 1.13 -> 1.14 ConfigLexer.l updated: 1.13 -> 1.14 ConfigLexer.l.cvs updated: 1.1 -> 1.2 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+5 -5) CompilerDriver.h |4 ++-- ConfigLexer.h |2 +- ConfigLexer.l |2 +- ConfigLexer.l.cvs |2 +- 4 files changed, 5 insertions(+), 5 deletions(-) Index: llvm/tools/llvmc/CompilerDriver.h diff -u llvm/tools/llvmc/CompilerDriver.h:1.18 llvm/tools/llvmc/CompilerDriver.h:1.19 --- llvm/tools/llvmc/CompilerDriver.h:1.18 Wed May 18 19:52:29 2005 +++ llvm/tools/llvmc/CompilerDriver.h Wed May 24 12:04:05 2006 @@ -65,7 +65,7 @@ PREPROCESSES_FLAG= 0x0002, ///< Does this action preprocess? TRANSLATES_FLAG = 0x0004, ///< Does this action translate? OUTPUT_IS_ASM_FLAG = 0x0008, ///< Action produces .ll files? -FLAGS_MASK = 0x000F, ///< Union of all flags +FLAGS_MASK = 0x000F ///< Union of all flags }; /// This type is the input list to the CompilerDriver. It provides @@ -131,7 +131,7 @@ EMIT_RAW_FLAG= 0x0080, ///< Emit raw, unoptimized bytecode KEEP_TEMPS_FLAG = 0x0100, ///< Don't delete temporary files STRIP_OUTPUT_FLAG= 0x0200, ///< Strip symbols from linked output -DRIVER_FLAGS_MASK= 0x03FF, ///< Union of the above flags +DRIVER_FLAGS_MASK= 0x03FF ///< Union of the above flags }; /// @} Index: llvm/tools/llvmc/ConfigLexer.h diff -u llvm/tools/llvmc/ConfigLexer.h:1.13 llvm/tools/llvmc/ConfigLexer.h:1.14 --- llvm/tools/llvmc/ConfigLexer.h:1.13 Wed May 18 19:52:29 2005 +++ llvm/tools/llvmc/ConfigLexer.h Wed May 24 12:04:05 2006 @@ -102,7 +102,7 @@ TRUETOK, ///< A boolean true value (true/yes/on) VERBOSE_SUBST, ///< The substitution item %verbose% VERSION_TOK, ///< The name "version" (and variants) - WOPTS_SUBST, ///< The %WOpts% substitution + WOPTS_SUBST///< The %WOpts% substitution }; extern ConfigLexerTokens Configlex(); Index: llvm/tools/llvmc/ConfigLexer.l diff -u llvm/tools/llvmc/ConfigLexer.l:1.13 llvm/tools/llvmc/ConfigLexer.l:1.14 --- llvm/tools/llvmc/ConfigLexer.l:1.13 Wed May 18 19:52:29 2005 +++ llvm/tools/llvmc/ConfigLexer.l Wed May 24 12:04:05 2006 @@ -64,7 +64,7 @@ } YY_FATAL_ERROR("Substitition tokens not allowed in names" ); return ERRORTOK; -}; +} inline llvm::ConfigLexerTokens handleValueContext(llvm::ConfigLexerTokens token) { ConfigLexerState.StringVal = yytext; Index: llvm/tools/llvmc/ConfigLexer.l.cvs diff -u llvm/tools/llvmc/ConfigLexer.l.cvs:1.1 llvm/tools/llvmc/ConfigLexer.l.cvs:1.2 --- llvm/tools/llvmc/ConfigLexer.l.cvs:1.1 Mon Feb 13 23:16:35 2006 +++ llvm/tools/llvmc/ConfigLexer.l.cvs Wed May 24 12:04:05 2006 @@ -64,7 +64,7 @@ } YY_FATAL_ERROR("Substitition tokens not allowed in names" ); return ERRORTOK; -}; +} inline llvm::ConfigLexerTokens handleValueContext(llvm::ConfigLexerTokens token) { ConfigLexerState.StringVal = yytext; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/utils/TableGen/RegisterInfoEmitter.cpp
Changes in directory llvm/utils/TableGen: RegisterInfoEmitter.cpp updated: 1.43 -> 1.44 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) RegisterInfoEmitter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/utils/TableGen/RegisterInfoEmitter.cpp diff -u llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.43 llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.44 --- llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.43Wed May 17 19:08:46 2006 +++ llvm/utils/TableGen/RegisterInfoEmitter.cpp Wed May 24 12:04:05 2006 @@ -37,7 +37,7 @@ OS << " enum {\nNoRegister,\n"; for (unsigned i = 0, e = Registers.size(); i != e; ++i) -OS << "" << Registers[i].getName() << ", \t// " << i+1 << "\n"; +OS << "" << Registers[i].getName() << (i != (e-1) ? ", \t// " : " \t// ") << i+1 << "\n"; OS << " };\n"; if (!Namespace.empty()) ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/analyze/GraphPrinters.cpp
Changes in directory llvm/tools/analyze: GraphPrinters.cpp updated: 1.10 -> 1.11 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) GraphPrinters.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/analyze/GraphPrinters.cpp diff -u llvm/tools/analyze/GraphPrinters.cpp:1.10 llvm/tools/analyze/GraphPrinters.cpp:1.11 --- llvm/tools/analyze/GraphPrinters.cpp:1.10 Thu Apr 21 18:59:21 2005 +++ llvm/tools/analyze/GraphPrinters.cppWed May 24 12:04:04 2006 @@ -74,4 +74,4 @@ RegisterAnalysis P2("print-callgraph", "Print Call Graph to 'dot' file"); -}; +} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Changes in directory llvm/lib/CodeGen/SelectionDAG: LegalizeDAG.cpp updated: 1.377 -> 1.378 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) LegalizeDAG.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.377 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.378 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.377 Wed May 17 13:00:08 2006 +++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Wed May 24 12:04:04 2006 @@ -65,7 +65,7 @@ enum LegalizeAction { Legal, // The target natively supports this operation. Promote,// This operation should be executed in a larger type. -Expand, // Try to expand this to other ops, otherwise use a libcall. +Expand // Try to expand this to other ops, otherwise use a libcall. }; /// ValueTypeActions - This is a bitvector that contains two bits for each ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/llvm-ar/llvm-ar.cpp
Changes in directory llvm/tools/llvm-ar: llvm-ar.cpp updated: 1.30 -> 1.31 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) llvm-ar.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/llvm-ar/llvm-ar.cpp diff -u llvm/tools/llvm-ar/llvm-ar.cpp:1.30 llvm/tools/llvm-ar/llvm-ar.cpp:1.31 --- llvm/tools/llvm-ar/llvm-ar.cpp:1.30 Wed Dec 28 00:56:09 2005 +++ llvm/tools/llvm-ar/llvm-ar.cpp Wed May 24 12:04:04 2006 @@ -80,7 +80,7 @@ QuickAppend, ///< Quickly append to end of archive ReplaceOrInsert, ///< Replace or Insert members DisplayTable, ///< Display the table of contents - Extract, ///< Extract files back to file system + Extract ///< Extract files back to file system }; // Modifiers to follow operation to vary behavior ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp RSProfiling.h
Changes in directory llvm/lib/Transforms/Instrumentation: RSProfiling.cpp updated: 1.4 -> 1.5 RSProfiling.h updated: 1.2 -> 1.3 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+2 -2) RSProfiling.cpp |2 +- RSProfiling.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.4 llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.5 --- llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.4 Mon Nov 28 12:10:59 2005 +++ llvm/lib/Transforms/Instrumentation/RSProfiling.cpp Wed May 24 12:04:04 2006 @@ -162,7 +162,7 @@ RegisterOpt X("insert-rs-profiling-framework", "Insert random sampling instrumentation framework"); -}; +} //Local utilities static void ReplacePhiPred(BasicBlock* btarget, Index: llvm/lib/Transforms/Instrumentation/RSProfiling.h diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.2 llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.3 --- llvm/lib/Transforms/Instrumentation/RSProfiling.h:1.2 Mon Nov 28 12:00:38 2005 +++ llvm/lib/Transforms/Instrumentation/RSProfiling.h Wed May 24 12:04:04 2006 @@ -26,4 +26,4 @@ void IncrementCounterInBlock(BasicBlock *BB, unsigned CounterNum, GlobalValue *CounterArray); }; -}; +} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Changes in directory llvm/lib/Analysis/DataStructure: DataStructure.cpp updated: 1.245 -> 1.246 --- Log message: Patches to make the LLVM sources more -pedantic clean. Patch provided by Anton Korobeynikov! This is a step towards closing PR786: http://llvm.cs.uiuc.edu/PR786 . --- Diffs of the changes: (+1 -1) DataStructure.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.245 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.246 --- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.245 Wed Apr 19 10:34:34 2006 +++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Wed May 24 12:04:03 2006 @@ -43,7 +43,7 @@ DSAFieldLimit("dsa-field-limit", cl::Hidden, cl::desc("Number of fields to track before collapsing a node"), cl::init(256)); -}; +} #if 0 #define TIME_REGION(VARNAME, DESC) \ ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Transforms/Utils/Local.cpp
Changes in directory llvm/lib/Transforms/Utils: Local.cpp updated: 1.55 -> 1.56 --- Log message: Patch for a new instcombine xform, patch contributed by Nick Lewycky! This implements Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll --- Diffs of the changes: (+4 -2) Local.cpp |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) Index: llvm/lib/Transforms/Utils/Local.cpp diff -u llvm/lib/Transforms/Utils/Local.cpp:1.55 llvm/lib/Transforms/Utils/Local.cpp:1.56 --- llvm/lib/Transforms/Utils/Local.cpp:1.55Fri Apr 7 20:19:12 2006 +++ llvm/lib/Transforms/Utils/Local.cpp Wed May 24 12:34:30 2006 @@ -273,7 +273,8 @@ } } else if (ConstantInt *CI = dyn_cast(I.getOperand())) { if (const ArrayType *ATy = dyn_cast(*I)) { -if ((uint64_t)CI->getRawValue() >= ATy->getNumElements()) return 0; +if ((uint64_t)CI->getRawValue() >= ATy->getNumElements()) + C = UndefValue::get(ATy->getElementType()); if (ConstantArray *CA = dyn_cast(C)) C = CA->getOperand((unsigned)CI->getRawValue()); else if (isa(C)) @@ -283,7 +284,8 @@ else return 0; } else if (const PackedType *PTy = dyn_cast(*I)) { -if ((uint64_t)CI->getRawValue() >= PTy->getNumElements()) return 0; +if ((uint64_t)CI->getRawValue() >= PTy->getNumElements()) + C = UndefValue::get(PTy->getElementType()); if (ConstantPacked *CP = dyn_cast(C)) C = CP->getOperand((unsigned)CI->getRawValue()); else if (isa(C)) ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/utils/TableGen/SubtargetEmitter.cpp
Changes in directory llvm/utils/TableGen: SubtargetEmitter.cpp updated: 1.18 -> 1.19 --- Log message: Don't make zero-sized static arrays --- Diffs of the changes: (+1 -1) SubtargetEmitter.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/utils/TableGen/SubtargetEmitter.cpp diff -u llvm/utils/TableGen/SubtargetEmitter.cpp:1.18 llvm/utils/TableGen/SubtargetEmitter.cpp:1.19 --- llvm/utils/TableGen/SubtargetEmitter.cpp:1.18 Thu Mar 2 20:04:07 2006 +++ llvm/utils/TableGen/SubtargetEmitter.cppWed May 24 12:31:02 2006 @@ -377,7 +377,7 @@ } OS << "\n"; -OS << "static llvm::InstrItinerary NoItineraries[] = {};\n"; +OS << "static llvm::InstrItinerary NoItineraries[] = { {0, 0} };\n"; } // ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll
Changes in directory llvm/test/Regression/Transforms/InstCombine: 2006-05-10-InvalidIndexUndef.ll added (r1.1) --- Log message: Testcase for a new instcombine xform, patch contributed by Nick Lewycky! --- Diffs of the changes: (+8 -0) 2006-05-10-InvalidIndexUndef.ll |8 1 files changed, 8 insertions(+) Index: llvm/test/Regression/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll:1.1 *** /dev/null Wed May 24 12:34:12 2006 --- llvm/test/Regression/Transforms/InstCombine/2006-05-10-InvalidIndexUndef.ll Wed May 24 12:34:02 2006 *** *** 0 --- 1,8 + ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep undef + + %str = constant [4 x ubyte] c"str\00" + + ubyte %main() { + %A = load ubyte* getelementptr ([4 x ubyte]* %str, long 0, long 5) + ret ubyte %A + } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/Makefile.rules
Changes in directory llvm: Makefile.rules updated: 1.370 -> 1.371 --- Log message: Don't use -fomit-frame-pointer on darwin, it breaks stacktrace collection. --- Diffs of the changes: (+3 -0) Makefile.rules |3 +++ 1 files changed, 3 insertions(+) Index: llvm/Makefile.rules diff -u llvm/Makefile.rules:1.370 llvm/Makefile.rules:1.371 --- llvm/Makefile.rules:1.370 Wed May 17 17:55:35 2006 +++ llvm/Makefile.rules Wed May 24 13:34:08 2006 @@ -208,8 +208,11 @@ BuildMode := Release # Don't use -fomit-frame-pointer on FreeBSD ifneq ($(OS),FreeBSD) +# Don't use -fomit-frame-pointer on Darwin, it breaks backtraces. +ifneq ($(OS),Darwin) OmitFramePointer := -fomit-frame-pointer endif +endif CXX.Flags := -O3 -finline-functions -felide-constructors $(OmitFramePointer) C.Flags := -O3 $(OmitFramePointer) LD.Flags := -O3 ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp
Changes in directory llvm/lib/Target: TargetMachine.cpp updated: 1.47 -> 1.48 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Remove a spurious ; --- Diffs of the changes: (+1 -1) TargetMachine.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/TargetMachine.cpp diff -u llvm/lib/Target/TargetMachine.cpp:1.47 llvm/lib/Target/TargetMachine.cpp:1.48 --- llvm/lib/Target/TargetMachine.cpp:1.47 Wed May 24 12:04:04 2006 +++ llvm/lib/Target/TargetMachine.cpp Wed May 24 14:05:21 2006 @@ -100,4 +100,4 @@ /// the code generator is not allowed to assume that FP arithmetic arguments /// and results are never NaNs or +-Infs. bool FiniteOnlyFPMath() { return UnsafeFPMath || FiniteOnlyFPMathOption; } -}; +} ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Changes in directory llvm/lib/Target/CBackend: Writer.cpp updated: 1.261 -> 1.262 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+1 -1) Writer.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.261 llvm/lib/Target/CBackend/Writer.cpp:1.262 --- llvm/lib/Target/CBackend/Writer.cpp:1.261 Tue May 23 18:39:48 2006 +++ llvm/lib/Target/CBackend/Writer.cpp Wed May 24 14:21:12 2006 @@ -685,7 +685,7 @@ char Buffer[100]; uint64_t ll = DoubleToBits(FPC->getValue()); -sprintf(Buffer, "0x%llx", (unsigned long long)ll); +sprintf(Buffer, "0x%llx", uint64_t(ll)); std::string Num(&Buffer[0], &Buffer[6]); unsigned long Val = strtoul(Num.c_str(), 0, 16); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
Changes in directory llvm/lib/ExecutionEngine/Interpreter: ExternalFunctions.cpp updated: 1.85 -> 1.86 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+1 -1) ExternalFunctions.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp diff -u llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.85 llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.86 --- llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp:1.85 Thu Apr 21 23:06:38 2005 +++ llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp Wed May 24 14:21:12 2006 @@ -313,7 +313,7 @@ if (HowLong >= 1) { if (HowLong == 1 && TheInterpreter->getModule().getPointerSize()==Module::Pointer64 && - sizeof(long) < sizeof(long long)) { + sizeof(long) < sizeof(int64_t)) { // Make sure we use %lld with a 64 bit argument because we might be // compiling LLI on a 32 bit compiler. unsigned Size = strlen(FmtBuf); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h
Changes in directory llvm/include/llvm/ADT: StringExtras.h updated: 1.27 -> 1.28 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+3 -3) StringExtras.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/include/llvm/ADT/StringExtras.h diff -u llvm/include/llvm/ADT/StringExtras.h:1.27 llvm/include/llvm/ADT/StringExtras.h:1.28 --- llvm/include/llvm/ADT/StringExtras.h:1.27 Thu Jan 26 14:36:29 2006 +++ llvm/include/llvm/ADT/StringExtras.hWed May 24 14:21:13 2006 @@ -39,7 +39,7 @@ return std::string(BufPtr); } -static inline std::string utostr(unsigned long long X, bool isNeg = false) { +static inline std::string utostr(uint64_t X, bool isNeg = false) { char Buffer[40]; char *BufPtr = Buffer+39; @@ -56,7 +56,7 @@ } static inline std::string utostr(unsigned long X, bool isNeg = false) { - return utostr(static_cast(X), isNeg); + return utostr(static_cast(X), isNeg); } static inline std::string utostr(unsigned X, bool isNeg = false) { @@ -76,7 +76,7 @@ return std::string(BufPtr); } -static inline std::string itostr(long long X) { +static inline std::string itostr(int64_t X) { if (X < 0) return utostr(static_cast(-X), true); else ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Constants.h Type.h
Changes in directory llvm/include/llvm: Constants.h updated: 1.79 -> 1.80 Type.h updated: 1.84 -> 1.85 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+2 -2) Constants.h |2 +- Type.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Constants.h diff -u llvm/include/llvm/Constants.h:1.79 llvm/include/llvm/Constants.h:1.80 --- llvm/include/llvm/Constants.h:1.79 Fri Apr 7 20:15:18 2006 +++ llvm/include/llvm/Constants.h Wed May 24 14:21:13 2006 @@ -58,7 +58,7 @@ /// type. inline uint64_t getZExtValue() const { unsigned Size = getType()->getPrimitiveSizeInBits(); -return Val.Unsigned & (~0ULL >> (64-Size)); +return Val.Unsigned & (~uint64_t(0UL) >> (64-Size)); } /// getSExtValue - Return the constant sign extended as appropriate for this Index: llvm/include/llvm/Type.h diff -u llvm/include/llvm/Type.h:1.84 llvm/include/llvm/Type.h:1.85 --- llvm/include/llvm/Type.h:1.84 Tue Apr 4 14:05:42 2006 +++ llvm/include/llvm/Type.hWed May 24 14:21:13 2006 @@ -239,7 +239,7 @@ /// sbyte/ubyte, 0x for shorts, etc. uint64_t getIntegralTypeMask() const { assert(isIntegral() && "This only works for integral types!"); -return ~0ULL >> (64-getPrimitiveSizeInBits()); +return ~uint64_t(0UL) >> (64-getPrimitiveSizeInBits()); } /// getForwaredType - Return the type that this type has been resolved to if ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h
Changes in directory llvm/include/llvm/Target: TargetLowering.h updated: 1.75 -> 1.76 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+1 -1) TargetLowering.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/include/llvm/Target/TargetLowering.h diff -u llvm/include/llvm/Target/TargetLowering.h:1.75 llvm/include/llvm/Target/TargetLowering.h:1.76 --- llvm/include/llvm/Target/TargetLowering.h:1.75 Wed May 17 13:22:14 2006 +++ llvm/include/llvm/Target/TargetLowering.h Wed May 24 14:21:13 2006 @@ -512,7 +512,7 @@ LegalizeAction Action) { assert(VT < 32 && Op < sizeof(OpActions)/sizeof(OpActions[0]) && "Table isn't big enough!"); -OpActions[Op] &= ~(3ULL << VT*2); +OpActions[Op] &= ~(uint64_t(3UL) << VT*2); OpActions[Op] |= (uint64_t)Action << VT*2; } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h SlowOperationInformer.h
Changes in directory llvm/include/llvm/Support: MathExtras.h updated: 1.29 -> 1.30 SlowOperationInformer.h updated: 1.5 -> 1.6 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+2 -2) MathExtras.h|2 +- SlowOperationInformer.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Support/MathExtras.h diff -u llvm/include/llvm/Support/MathExtras.h:1.29 llvm/include/llvm/Support/MathExtras.h:1.30 --- llvm/include/llvm/Support/MathExtras.h:1.29 Fri Jan 13 20:17:20 2006 +++ llvm/include/llvm/Support/MathExtras.h Wed May 24 14:21:13 2006 @@ -76,7 +76,7 @@ // isPowerOf2_64 - This function returns true if the argument is a power of two // > 0 (64 bit edition.) inline bool isPowerOf2_64(uint64_t Value) { - return Value && !(Value & (Value - 1LL)); + return Value && !(Value & (Value - int64_t(1L))); } // ByteSwap_16 - This function returns a byte-swapped representation of the Index: llvm/include/llvm/Support/SlowOperationInformer.h diff -u llvm/include/llvm/Support/SlowOperationInformer.h:1.5 llvm/include/llvm/Support/SlowOperationInformer.h:1.6 --- llvm/include/llvm/Support/SlowOperationInformer.h:1.5 Thu Apr 21 15:44:59 2005 +++ llvm/include/llvm/Support/SlowOperationInformer.h Wed May 24 14:21:13 2006 @@ -57,7 +57,7 @@ void progress(unsigned Current, unsigned Maximum) { assert(Maximum != 0 && "Shouldn't be doing work if there is nothing to do!"); - progress(Current*1000ULL/Maximum); + progress(Current*uint64_t(1000UL)/Maximum); } }; } // end namespace llvm ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/tools/llvm-prof/llvm-prof.cpp
Changes in directory llvm/tools/llvm-prof: llvm-prof.cpp updated: 1.27 -> 1.28 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+1 -1) llvm-prof.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/tools/llvm-prof/llvm-prof.cpp diff -u llvm/tools/llvm-prof/llvm-prof.cpp:1.27 llvm/tools/llvm-prof/llvm-prof.cpp:1.28 --- llvm/tools/llvm-prof/llvm-prof.cpp:1.27 Fri Dec 30 03:07:29 2005 +++ llvm/tools/llvm-prof/llvm-prof.cpp Wed May 24 14:21:12 2006 @@ -139,7 +139,7 @@ sort(FunctionCounts.begin(), FunctionCounts.end(), PairSecondSortReverse()); -unsigned long long TotalExecutions = 0; +uint64_t TotalExecutions = 0; for (unsigned i = 0, e = FunctionCounts.size(); i != e; ++i) TotalExecutions += FunctionCounts[i].second; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/CodeGen/ValueTypes.h
Changes in directory llvm/include/llvm/CodeGen: ValueTypes.h updated: 1.27 -> 1.28 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+2 -2) ValueTypes.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/CodeGen/ValueTypes.h diff -u llvm/include/llvm/CodeGen/ValueTypes.h:1.27 llvm/include/llvm/CodeGen/ValueTypes.h:1.28 --- llvm/include/llvm/CodeGen/ValueTypes.h:1.27 Mon Mar 27 19:59:17 2006 +++ llvm/include/llvm/CodeGen/ValueTypes.h Wed May 24 14:21:13 2006 @@ -203,13 +203,13 @@ /// bits in the specified integer value type. static inline uint64_t getIntVTBitMask(ValueType VT) { assert(isInteger(VT) && !isVector(VT) && "Only applies to int scalars!"); -return ~0ULL >> (64-getSizeInBits(VT)); +return ~uint64_t(0UL) >> (64-getSizeInBits(VT)); } /// MVT::getIntVTSignBit - Return an integer with a 1 in the position of the /// sign bit for the specified integer value type. static inline uint64_t getIntVTSignBit(ValueType VT) { assert(isInteger(VT) && !isVector(VT) && "Only applies to int scalars!"); -return 1ULL << (getSizeInBits(VT)-1); +return uint64_t(1UL) << (getSizeInBits(VT)-1); } /// MVT::getValueTypeString - This function returns value type as a string, ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/runtime/GCCLibraries/crtend/Exception.h
Changes in directory llvm/runtime/GCCLibraries/crtend: Exception.h updated: 1.9 -> 1.10 --- Log message: For PR786: http://llvm.cs.uiuc.edu/PR786 : Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. --- Diffs of the changes: (+1 -1) Exception.h |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/runtime/GCCLibraries/crtend/Exception.h diff -u llvm/runtime/GCCLibraries/crtend/Exception.h:1.9 llvm/runtime/GCCLibraries/crtend/Exception.h:1.10 --- llvm/runtime/GCCLibraries/crtend/Exception.h:1.9Thu Apr 21 18:48:05 2005 +++ llvm/runtime/GCCLibraries/crtend/Exception.hWed May 24 14:21:12 2006 @@ -54,7 +54,7 @@ enum { ErrorException = 0, SJLJException = 1, - CXXException = 2, + CXXException = 2 }; // Language independent exception handling API... ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/PowerPC: PPCISelDAGToDAG.cpp updated: 1.187 -> 1.188 --- Log message: Clear HandleMap and ReplaceMap after instruction selection. Or it may cause non-deterministic behavior. --- Diffs of the changes: (+2 -0) PPCISelDAGToDAG.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp diff -u llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.187 llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.188 --- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.187 Wed May 17 14:00:46 2006 +++ llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Wed May 24 15:46:25 2006 @@ -206,6 +206,8 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); CodeGenMap.clear(); + HandleMap.clear(); + ReplaceMap.clear(); DAG.RemoveDeadNodes(); // Emit machine code to BB. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/Sparc: SparcISelDAGToDAG.cpp updated: 1.94 -> 1.95 --- Log message: Clear HandleMap and ReplaceMap after instruction selection. Or it may cause non-deterministic behavior. --- Diffs of the changes: (+2 -0) SparcISelDAGToDAG.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp diff -u llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.94 llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.95 --- llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.94Wed May 24 12:04:04 2006 +++ llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp Wed May 24 15:46:25 2006 @@ -996,6 +996,8 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); CodeGenMap.clear(); + HandleMap.clear(); + ReplaceMap.clear(); DAG.RemoveDeadNodes(); // Emit machine code to BB. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/IA64: IA64ISelDAGToDAG.cpp updated: 1.40 -> 1.41 --- Log message: Clear HandleMap and ReplaceMap after instruction selection. Or it may cause non-deterministic behavior. --- Diffs of the changes: (+2 -0) IA64ISelDAGToDAG.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp diff -u llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.40 llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.41 --- llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.40 Tue May 16 12:42:15 2006 +++ llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp Wed May 24 15:46:25 2006 @@ -148,6 +148,8 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); CodeGenMap.clear(); + HandleMap.clear(); + ReplaceMap.clear(); DAG.RemoveDeadNodes(); // Emit machine code to BB. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/ARM: ARMISelDAGToDAG.cpp updated: 1.5 -> 1.6 --- Log message: Clear HandleMap and ReplaceMap after instruction selection. Or it may cause non-deterministic behavior. --- Diffs of the changes: (+2 -0) ARMISelDAGToDAG.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.5 llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.6 --- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.5 Wed May 24 12:04:04 2006 +++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp Wed May 24 15:46:25 2006 @@ -161,6 +161,8 @@ DAG.setRoot(SelectRoot(DAG.getRoot())); CodeGenMap.clear(); + HandleMap.clear(); + ReplaceMap.clear(); DAG.RemoveDeadNodes(); ScheduleAndEmitDAG(DAG); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/Alpha: AlphaISelDAGToDAG.cpp updated: 1.40 -> 1.41 --- Log message: Clear HandleMap and ReplaceMap after instruction selection. Or it may cause non-deterministic behavior. --- Diffs of the changes: (+2 -0) AlphaISelDAGToDAG.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp diff -u llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.40 llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.41 --- llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.40Thu May 18 12:29:34 2006 +++ llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp Wed May 24 15:46:25 2006 @@ -155,6 +155,8 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); CodeGenMap.clear(); + HandleMap.clear(); + ReplaceMap.clear(); DAG.RemoveDeadNodes(); // Emit machine code to BB. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/X86: X86ISelDAGToDAG.cpp updated: 1.67 -> 1.68 --- Log message: Clear HandleMap and ReplaceMap after instruction selection. Or it may cause non-deterministic behavior. --- Diffs of the changes: (+2 -0) X86ISelDAGToDAG.cpp |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.67 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.68 --- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.67Wed May 24 12:04:04 2006 +++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Wed May 24 15:46:25 2006 @@ -186,6 +186,8 @@ DEBUG(std::cerr << "= Instruction selection ends:\n"); #endif CodeGenMap.clear(); + HandleMap.clear(); + ReplaceMap.clear(); DAG.RemoveDeadNodes(); // Emit machine code to BB. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Regression/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx
Changes in directory llvm/test/Regression/CodeGen/CBackend: 2004-11-13-FunctionPointerCast.llx updated: 1.1 -> 1.2 --- Log message: Update testcase with recent cbe change --- Diffs of the changes: (+1 -1) 2004-11-13-FunctionPointerCast.llx |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/test/Regression/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx diff -u llvm/test/Regression/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx:1.1 llvm/test/Regression/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx:1.2 --- llvm/test/Regression/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx:1.1 Sat Nov 13 16:21:15 2004 +++ llvm/test/Regression/CodeGen/CBackend/2004-11-13-FunctionPointerCast.llx Wed May 24 15:52:08 2006 @@ -1,7 +1,7 @@ ; The CBE should not emit code that casts the function pointer. This causes ; GCC to get testy and insert trap instructions instead of doing the right ; thing. :( -; RUN: llvm-as < %s | llc -march=c | not grep 'external)' +; RUN: llvm-as < %s | llc -march=c implementation ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/Makefile.rules
Changes in directory llvm: Makefile.rules updated: 1.371 -> 1.372 --- Log message: Remove flags implied by -O3 --- Diffs of the changes: (+2 -2) Makefile.rules |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/Makefile.rules diff -u llvm/Makefile.rules:1.371 llvm/Makefile.rules:1.372 --- llvm/Makefile.rules:1.371 Wed May 24 13:34:08 2006 +++ llvm/Makefile.rules Wed May 24 17:59:07 2006 @@ -200,7 +200,7 @@ ifdef ENABLE_PROFILING BuildMode := Profile - CXX.Flags := -O3 -felide-constructors -finline-functions -pg + CXX.Flags := -O3 -pg C.Flags := -O3 -pg LD.Flags := -O3 -pg else @@ -213,7 +213,7 @@ OmitFramePointer := -fomit-frame-pointer endif endif -CXX.Flags := -O3 -finline-functions -felide-constructors $(OmitFramePointer) +CXX.Flags := -O3 $(OmitFramePointer) C.Flags := -O3 $(OmitFramePointer) LD.Flags := -O3 else ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/Makefile.rules
Changes in directory llvm: Makefile.rules updated: 1.372 -> 1.373 --- Log message: Abstract out the current optimization level into a flag that can be overridden on the make line, to avoid bugs in native compilers. --- Diffs of the changes: (+10 -6) Makefile.rules | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) Index: llvm/Makefile.rules diff -u llvm/Makefile.rules:1.372 llvm/Makefile.rules:1.373 --- llvm/Makefile.rules:1.372 Wed May 24 17:59:07 2006 +++ llvm/Makefile.rules Wed May 24 18:02:40 2006 @@ -198,11 +198,15 @@ # Variables derived from configuration we are building # +# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with +# this can be overridden on the make command line. +OPTIMIZE_OPTION := -O3 + ifdef ENABLE_PROFILING BuildMode := Profile - CXX.Flags := -O3 -pg - C.Flags := -O3 -pg - LD.Flags := -O3 -pg + CXX.Flags := $(OPTIMIZE_OPTION) -pg + C.Flags := $(OPTIMIZE_OPTION) -pg + LD.Flags := $(OPTIMIZE_OPTION) -pg else ifdef ENABLE_OPTIMIZED BuildMode := Release @@ -213,9 +217,9 @@ OmitFramePointer := -fomit-frame-pointer endif endif -CXX.Flags := -O3 $(OmitFramePointer) -C.Flags := -O3 $(OmitFramePointer) -LD.Flags := -O3 +CXX.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer) +C.Flags := $(OPTIMIZE_OPTION) $(OmitFramePointer) +LD.Flags := $(OPTIMIZE_OPTION) else BuildMode := Debug CXX.Flags := -g ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/Makefile.rules
On Wed, 2006-05-24 at 18:02 -0500, Chris Lattner wrote: > > +# OPTIMIZE_OPTION - The optimization level option we want to build LLVM with > +# this can be overridden on the make command line. > +OPTIMIZE_OPTION := -O3 Yuck! :) That means anyone not using a compiler that understands -O3 will have to put that on every make command line. I assume this is a temporary situation. What we ought to do is put the value into Makefile.config.in and have configure deduce it when it determines the kind of compiler we'll be using. If that makes sense, can you file a bug and I'll get to it eventually? Reid. signature.asc Description: This is a digitally signed message part ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/Makefile.rules
On Wed, 24 May 2006, Reid Spencer wrote: +# this can be overridden on the make command line. +OPTIMIZE_OPTION := -O3 Yuck! :) That means anyone not using a compiler that understands -O3 will have to put that on every make command line. I assume this is a temporary situation. What we ought to do is put the value into Makefile.config.in and have configure deduce it when it determines the kind of compiler we'll be using. If that makes sense, can you file a bug and I'll get to it eventually? That's not the intention of this option. The specific situation I have is that some versions of GCC crash when compiling some of the LLVM sources as -O3. As a temporary work around, I'm forcing -O2 to be used: ugly but effective. The only way to check for this in an autoconf check would be to compile all of llvm with -O3 :) I don't think the LLVM build systems are well suited for compilers that don't grok -O3, but this patch doesn't change that... -Chris -- http://nondot.org/sabre/ http://llvm.org/ ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
Re: [llvm-commits] CVS: llvm/Makefile.rules
Okay, that makes sense now :) Reid. On Wed, 2006-05-24 at 18:37 -0500, Chris Lattner wrote: > On Wed, 24 May 2006, Reid Spencer wrote: > >> +# this can be overridden on the make command line. > >> +OPTIMIZE_OPTION := -O3 > > > > Yuck! :) > > > > That means anyone not using a compiler that understands -O3 will have to > > put that on every make command line. I assume this is a temporary > > situation. What we ought to do is put the value into Makefile.config.in > > and have configure deduce it when it determines the kind of compiler > > we'll be using. If that makes sense, can you file a bug and I'll get to > > it eventually? > > That's not the intention of this option. The specific situation I have is > that some versions of GCC crash when compiling some of the LLVM sources as > -O3. As a temporary work around, I'm forcing -O2 to be used: ugly but > effective. The only way to check for this in an autoconf check would be > to compile all of llvm with -O3 :) > > I don't think the LLVM build systems are well suited for compilers that > don't grok -O3, but this patch doesn't change that... > > -Chris > signature.asc Description: This is a digitally signed message part ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Changes in directory llvm/utils/TableGen: DAGISelEmitter.cpp updated: 1.205 -> 1.206 --- Log message: Fixed a really ugly bug. The TableGen'd isel is not freeing the "inflight set" correctly. That is causing non-deterministic behavior (and possibly preventing some load folding from happening). --- Diffs of the changes: (+21 -9) DAGISelEmitter.cpp | 30 +- 1 files changed, 21 insertions(+), 9 deletions(-) Index: llvm/utils/TableGen/DAGISelEmitter.cpp diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.205 llvm/utils/TableGen/DAGISelEmitter.cpp:1.206 --- llvm/utils/TableGen/DAGISelEmitter.cpp:1.205Fri May 19 02:24:32 2006 +++ llvm/utils/TableGen/DAGISelEmitter.cpp Wed May 24 19:21:44 2006 @@ -2407,20 +2407,32 @@ std::string Fn = CP->getSelectFunc(); NumRes = CP->getNumOperands(); for (unsigned i = 0; i < NumRes; ++i) - emitDecl("Tmp" + utostr(i+ResNo)); + emitDecl("CPTmp" + utostr(i+ResNo)); -std::string Code = Fn + "(" + Val; +std::string Code = "bool Match = " + Fn + "(" + Val; for (unsigned i = 0; i < NumRes; i++) - Code += ", Tmp" + utostr(i + ResNo); -emitCheck(Code + ")"); + Code += ", CPTmp" + utostr(i + ResNo); +emitCode(Code + ");"); +if (InflightNodes.size()) { + // Remove the in-flight nodes if the ComplexPattern does not match! + emitCode("if (!Match) {"); + for (std::vector::iterator AI = InflightNodes.begin(), + AE = InflightNodes.end(); AI != AE; ++AI) +emitCode(" InFlightSet.erase(" + *AI + ".Val);"); + emitCode("}"); +} + +emitCheck("Match"); for (unsigned i = 0; i < NumRes; ++i) { - emitCode("InFlightSet.insert(Tmp" + utostr(i+ResNo) + ".Val);"); - InflightNodes.push_back("Tmp" + utostr(i+ResNo)); + emitCode("InFlightSet.insert(CPTmp" + utostr(i+ResNo) + ".Val);"); + InflightNodes.push_back("CPTmp" + utostr(i+ResNo)); } -for (unsigned i = 0; i < NumRes; ++i) - emitCode("Select(Tmp" + utostr(i+ResNo) + ", Tmp" + +for (unsigned i = 0; i < NumRes; ++i) { + emitDecl("Tmp" + utostr(i+ResNo)); + emitCode("Select(Tmp" + utostr(i+ResNo) + ", CPTmp" + utostr(i+ResNo) + ");"); +} TmpNo = ResNo + NumRes; } else { @@ -2524,7 +2536,6 @@ // Make sure these operands which would be selected won't be folded while // the isel traverses the DAG upward. - std::vector > NumTemps(EmitOrder.size()); for (unsigned i = 0, e = EmitOrder.size(); i != e; ++i) { TreePatternNode *Child = EmitOrder[i].second; if (!Child->getName().empty()) { @@ -2539,6 +2550,7 @@ } // Emit all of the operands. + std::vector > NumTemps(EmitOrder.size()); for (unsigned i = 0, e = EmitOrder.size(); i != e; ++i) { unsigned OpOrder = EmitOrder[i].first; TreePatternNode *Child = EmitOrder[i].second; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/Alpha: AlphaISelDAGToDAG.cpp updated: 1.41 -> 1.42 --- Log message: Assert if InflightSet is not cleared after instruction selecting a BB. --- Diffs of the changes: (+1 -0) AlphaISelDAGToDAG.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp diff -u llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.41 llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.42 --- llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp:1.41Wed May 24 15:46:25 2006 +++ llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp Wed May 24 19:24:28 2006 @@ -154,6 +154,7 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); + assert(InFlightSet.empty() && "ISel InFlightSet has not been emptied!"); CodeGenMap.clear(); HandleMap.clear(); ReplaceMap.clear(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/PowerPC: PPCISelDAGToDAG.cpp updated: 1.188 -> 1.189 --- Log message: Assert if InflightSet is not cleared after instruction selecting a BB. --- Diffs of the changes: (+1 -0) PPCISelDAGToDAG.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp diff -u llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.188 llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.189 --- llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:1.188 Wed May 24 15:46:25 2006 +++ llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp Wed May 24 19:24:27 2006 @@ -205,6 +205,7 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); + assert(InFlightSet.empty() && "ISel InFlightSet has not been emptied!"); CodeGenMap.clear(); HandleMap.clear(); ReplaceMap.clear(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/Sparc: SparcISelDAGToDAG.cpp updated: 1.95 -> 1.96 --- Log message: Assert if InflightSet is not cleared after instruction selecting a BB. --- Diffs of the changes: (+1 -0) SparcISelDAGToDAG.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp diff -u llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.95 llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.96 --- llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp:1.95Wed May 24 15:46:25 2006 +++ llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp Wed May 24 19:24:27 2006 @@ -995,6 +995,7 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); + assert(InFlightSet.empty() && "ISel InFlightSet has not been emptied!"); CodeGenMap.clear(); HandleMap.clear(); ReplaceMap.clear(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/IA64: IA64ISelDAGToDAG.cpp updated: 1.41 -> 1.42 --- Log message: Assert if InflightSet is not cleared after instruction selecting a BB. --- Diffs of the changes: (+1 -0) IA64ISelDAGToDAG.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp diff -u llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.41 llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.42 --- llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.41 Wed May 24 15:46:25 2006 +++ llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp Wed May 24 19:24:28 2006 @@ -147,6 +147,7 @@ // Select target instructions for the DAG. DAG.setRoot(SelectRoot(DAG.getRoot())); + assert(InFlightSet.empty() && "ISel InFlightSet has not been emptied!"); CodeGenMap.clear(); HandleMap.clear(); ReplaceMap.clear(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/ARM: ARMISelDAGToDAG.cpp updated: 1.6 -> 1.7 --- Log message: Assert if InflightSet is not cleared after instruction selecting a BB. --- Diffs of the changes: (+1 -0) ARMISelDAGToDAG.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.6 llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.7 --- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.6 Wed May 24 15:46:25 2006 +++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp Wed May 24 19:24:28 2006 @@ -160,6 +160,7 @@ DEBUG(BB->dump()); DAG.setRoot(SelectRoot(DAG.getRoot())); + assert(InFlightSet.empty() && "ISel InFlightSet has not been emptied!"); CodeGenMap.clear(); HandleMap.clear(); ReplaceMap.clear(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
Changes in directory llvm/lib/Target/X86: X86ISelDAGToDAG.cpp updated: 1.68 -> 1.69 --- Log message: Assert if InflightSet is not cleared after instruction selecting a BB. --- Diffs of the changes: (+1 -0) X86ISelDAGToDAG.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.68 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.69 --- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.68Wed May 24 15:46:25 2006 +++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Wed May 24 19:24:27 2006 @@ -182,6 +182,7 @@ Indent = 0; #endif DAG.setRoot(SelectRoot(DAG.getRoot())); + assert(InFlightSet.empty() && "ISel InFlightSet has not been emptied!"); #ifndef NDEBUG DEBUG(std::cerr << "= Instruction selection ends:\n"); #endif ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Changes in directory llvm/include/llvm/CodeGen: SelectionDAGNodes.h updated: 1.132 -> 1.133 --- Log message: CALL node change: now containing signness of each argument. --- Diffs of the changes: (+3 -3) SelectionDAGNodes.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.132 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.133 --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.132 Tue May 16 17:52:27 2006 +++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Wed May 24 19:54:33 2006 @@ -125,10 +125,10 @@ FORMAL_ARGUMENTS, /// RV1, RV2...RVn, CHAIN = CALL(CHAIN, CC#, ISVARARG, ISTAILCALL, CALLEE, -/// ARG0, ARG1, ... ARGn) +/// ARG0, SIGN0, ARG1, SIGN1, ... ARGn, SIGNn) /// This node represents a fully general function call, before the legalizer -/// runs. This has one result value for each argument, plus a chain result. -/// It must be custom legalized. +/// runs. This has one result value for each argument / signness pair, plus +/// a chain result. It must be custom legalized. CALL, // EXTRACT_ELEMENT - This is used to get the first or second (determined by ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Changes in directory llvm/lib/CodeGen/SelectionDAG: SelectionDAGISel.cpp updated: 1.250 -> 1.251 --- Log message: CALL node change: now including signness of every argument. --- Diffs of the changes: (+7 -2) SelectionDAGISel.cpp |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.250 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.251 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.250Tue May 23 13:18:46 2006 +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed May 24 19:55:32 2006 @@ -2506,21 +2506,23 @@ for (unsigned i = 0, e = Args.size(); i != e; ++i) { MVT::ValueType VT = getValueType(Args[i].second); SDOperand Op = Args[i].first; +bool isSigned = Args[i].second->isSigned(); switch (getTypeAction(VT)) { default: assert(0 && "Unknown type action!"); case Legal: Ops.push_back(Op); + Ops.push_back(DAG.getConstant(isSigned, MVT::i1)); break; case Promote: if (MVT::isInteger(VT)) { -unsigned ExtOp = Args[i].second->isSigned() ? - ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; +unsigned ExtOp = isSigned ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND; Op = DAG.getNode(ExtOp, getTypeToTransformTo(VT), Op); } else { assert(MVT::isFloatingPoint(VT) && "Not int or FP?"); Op = DAG.getNode(ISD::FP_EXTEND, getTypeToTransformTo(VT), Op); } Ops.push_back(Op); + Ops.push_back(DAG.getConstant(isSigned, MVT::i1)); break; case Expand: if (VT != MVT::Vector) { @@ -2538,7 +2540,9 @@ std::swap(Lo, Hi); Ops.push_back(Lo); + Ops.push_back(DAG.getConstant(isSigned, MVT::i1)); Ops.push_back(Hi); + Ops.push_back(DAG.getConstant(isSigned, MVT::i1)); } else { // Value scalarized into many values. Unimp for now. assert(0 && "Cannot expand i64 -> i16 yet!"); @@ -2557,6 +2561,7 @@ // Insert a VBIT_CONVERT of the MVT::Vector type to the packed type. Op = DAG.getNode(ISD::VBIT_CONVERT, TVT, Op); Ops.push_back(Op); + Ops.push_back(DAG.getConstant(isSigned, MVT::i1)); } else { assert(0 && "Don't support illegal by-val vector call args yet!"); abort(); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Changes in directory llvm/lib/Target/PowerPC: PPCISelLowering.cpp updated: 1.183 -> 1.184 --- Log message: CALL node change (arg / sign pairs instead of just arguments). --- Diffs of the changes: (+6 -5) PPCISelLowering.cpp | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.183 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.184 --- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.183 Wed May 24 12:04:04 2006 +++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp Wed May 24 19:57:32 2006 @@ -901,7 +901,8 @@ bool isVarArg = cast(Op.getOperand(2))->getValue() != 0; bool isTailCall = cast(Op.getOperand(3))->getValue() != 0; SDOperand Callee= Op.getOperand(4); - + unsigned NumOps = (Op.getNumOperands() - 5) / 2; + // args_to_use will accumulate outgoing args for the PPCISD::CALL case in // SelectExpr to use to put the arguments in the appropriate registers. std::vector args_to_use; @@ -912,8 +913,8 @@ unsigned NumBytes = 24; // Add up all the space actually used. - for (unsigned i = 5, e = Op.getNumOperands(); i != e; ++i) -NumBytes += MVT::getSizeInBits(Op.getOperand(i).getValueType())/8; + for (unsigned i = 0; i != NumOps; ++i) +NumBytes += MVT::getSizeInBits(Op.getOperand(5+2*i).getValueType())/8; // If we are calling what looks like a varargs function on the caller side, // there are two cases: @@ -962,8 +963,8 @@ std::vector > RegsToPass; std::vector MemOpChains; - for (unsigned i = 5, e = Op.getNumOperands(); i != e; ++i) { -SDOperand Arg = Op.getOperand(i); + for (unsigned i = 0; i != NumOps; ++i) { +SDOperand Arg = Op.getOperand(5+2*i); // PtrOff will be used to store the current argument to the stack if a // register cannot be found for it. ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp X86ISelLowering.h
Changes in directory llvm/lib/Target/X86: X86ISelLowering.cpp updated: 1.211 -> 1.212 X86ISelLowering.h updated: 1.65 -> 1.66 --- Log message: Switch X86 over to a call-selection model where the lowering code creates the copyto/fromregs instead of making the X86ISD::CALL selection code create them. --- Diffs of the changes: (+391 -421) X86ISelLowering.cpp | 792 +--- X86ISelLowering.h | 20 - 2 files changed, 391 insertions(+), 421 deletions(-) Index: llvm/lib/Target/X86/X86ISelLowering.cpp diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.211 llvm/lib/Target/X86/X86ISelLowering.cpp:1.212 --- llvm/lib/Target/X86/X86ISelLowering.cpp:1.211 Tue May 23 18:20:42 2006 +++ llvm/lib/Target/X86/X86ISelLowering.cpp Wed May 24 19:59:30 2006 @@ -358,29 +358,6 @@ allowUnalignedMemoryAccesses = true; // x86 supports it! } -std::pair -X86TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy, - bool isVarArg, unsigned CallingConv, - bool isTailCall, - SDOperand Callee, ArgListTy &Args, - SelectionDAG &DAG) { - assert((!isVarArg || CallingConv == CallingConv::C || - CallingConv == CallingConv::CSRet) && - "Only CCC/CSRet takes varargs!"); - - // If the callee is a GlobalAddress node (quite common, every direct call is) - // turn it into a TargetGlobalAddress node so that legalize doesn't hack it. - if (GlobalAddressSDNode *G = dyn_cast(Callee)) -Callee = DAG.getTargetGlobalAddress(G->getGlobal(), getPointerTy()); - else if (ExternalSymbolSDNode *S = dyn_cast(Callee)) -Callee = DAG.getTargetExternalSymbol(S->getSymbol(), getPointerTy()); - - if (CallingConv == CallingConv::Fast && EnableFastCC) -return LowerFastCCCallTo(Chain, RetTy, isTailCall, Callee, Args, DAG); - return LowerallTo(Chain, RetTy, isVarArg, isTailCall, CallingConv, - Callee, Args, DAG); -} - //===--===// //C Calling Convention implementation //===--===// @@ -516,150 +493,134 @@ return DAG.getNode(ISD::MERGE_VALUES, RetVTs, ArgValues); } -std::pair -X86TargetLowering::LowerallTo(SDOperand Chain, const Type *RetTy, - bool isVarArg, bool isTailCall, - unsigned CallingConv, - SDOperand Callee, ArgListTy &Args, - SelectionDAG &DAG) { - // Count how many bytes are to be pushed on the stack. - unsigned NumBytes = 0; + +SDOperand X86TargetLowering::LowerallTo(SDOperand Op, SelectionDAG &DAG) { + SDOperand Chain = Op.getOperand(0); + unsigned CallingConv= cast(Op.getOperand(1))->getValue(); + bool isVarArg = cast(Op.getOperand(2))->getValue() != 0; + bool isTailCall = cast(Op.getOperand(3))->getValue() != 0; + SDOperand Callee= Op.getOperand(4); + MVT::ValueType RetVT= Op.Val->getValueType(0); + unsigned NumOps = (Op.getNumOperands() - 5) / 2; // Keep track of the number of XMM regs passed so far. unsigned NumXMMRegs = 0; - unsigned XMMArgRegs[] = { X86::XMM0, X86::XMM1, X86::XMM2 }; + static const unsigned XMMArgRegs[] = { +X86::XMM0, X86::XMM1, X86::XMM2 + }; - std::vector RegValuesToPass; - if (Args.empty()) { -// Save zero bytes. -Chain = DAG.getCALLSEQ_START(Chain, DAG.getConstant(0, getPointerTy())); - } else { -for (unsigned i = 0, e = Args.size(); i != e; ++i) - switch (getValueType(Args[i].second)) { - default: assert(0 && "Unknown value type!"); - case MVT::i1: - case MVT::i8: - case MVT::i16: - case MVT::i32: - case MVT::f32: -NumBytes += 4; -break; - case MVT::i64: - case MVT::f64: -NumBytes += 8; -break; - case MVT::Vector: -if (NumXMMRegs < 3) - ++NumXMMRegs; -else - NumBytes += 16; -break; - } + // Count how many bytes are to be pushed on the stack. + unsigned NumBytes = 0; + for (unsigned i = 0; i != NumOps; ++i) { +SDOperand Arg = Op.getOperand(5+2*i); -Chain = DAG.getCALLSEQ_START(Chain, - DAG.getConstant(NumBytes, getPointerTy())); +switch (Arg.getValueType()) { +default: assert(0 && "Unexpected ValueType for argument!"); +case MVT::i8: +case MVT::i16: +case MVT::i32: +case MVT::f32: + NumBytes += 4; + break; +case MVT::i64: +case MVT::f64: + NumBytes += 8; + break; +case MVT::v16i8: +case MVT::v8i16: +case MVT::v4i32: +case MVT::v2i64: +case MVT::v4f32: +case MVT::v2f64: { + if (NumXMMRegs < 3) +++NumXMMRegs; + else +NumBytes += 16; +
[llvm-commits] CVS: llvm/include/llvm/Support/SlowOperationInformer.h
Changes in directory llvm/include/llvm/Support: SlowOperationInformer.h updated: 1.6 -> 1.7 --- Log message: Fix breakage on platforms where string/cassert don't pull in int64_t. --- Diffs of the changes: (+1 -0) SlowOperationInformer.h |1 + 1 files changed, 1 insertion(+) Index: llvm/include/llvm/Support/SlowOperationInformer.h diff -u llvm/include/llvm/Support/SlowOperationInformer.h:1.6 llvm/include/llvm/Support/SlowOperationInformer.h:1.7 --- llvm/include/llvm/Support/SlowOperationInformer.h:1.6 Wed May 24 14:21:13 2006 +++ llvm/include/llvm/Support/SlowOperationInformer.h Thu May 25 00:59:50 2006 @@ -33,6 +33,7 @@ #include #include +#include "llvm/Support/DataTypes.h" namespace llvm { class SlowOperationInformer { ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits