- Jan 29, 2010
-
-
Devang Patel authored
Before inserting llvm.dbg.declare intrinsic at the end of a basic block, check whether the basic block has a terminator or not. This API is used by clang and the test case is test/CodeGen/debug-info-crash.c in clang module. llvm-svn: 94820
-
Benjamin Kramer authored
llvm-svn: 94809
-
Benjamin Kramer authored
llvm-svn: 94808
-
Benjamin Kramer authored
llvm-svn: 94807
-
Duncan Sands authored
llvm-svn: 94805
-
Evan Cheng authored
llvm-svn: 94804
-
Duncan Sands authored
(via APInt &RHSKnownZero = KnownZero, etc) seems dangerous and confusing to me: it is easy not to notice this, and then wonder why KnownZero/RHSKnownZero changed underneath you when you modified RHSKnownZero/KnownZero etc. So get rid of this. No intended functionality change (tested with "make check" + llvm-gcc bootstrap). llvm-svn: 94802
-
Duncan Sands authored
(fix for PR6165) are needed here too. llvm-svn: 94801
-
Eric Christopher authored
llvm-svn: 94783
-
Eric Christopher authored
lowering. We'll either figure it out, or not and be lowered by SelectionDAGBuild. Add test. llvm-svn: 94775
-
Bill Wendling authored
llvm-svn: 94771
-
Bill Wendling authored
llvm-svn: 94765
-
Sean Callanan authored
enhanced disassembler, and the necessary makefile rules to build the table for X86. llvm-svn: 94764
-
Victor Hernandez authored
llvm-svn: 94763
-
- Jan 28, 2010
-
-
Bill Wendling authored
"visit*" method is called, take the newly created nodes, walk them in a DFS fashion, and if they don't have an ordering set, then give it one. llvm-svn: 94757
-
Dan Gohman authored
getelementptr (i8* inttoptr (i64 1 to i8*), i32 -1) to inttoptr (i64 0 to i8*) from the VMCore constant folder. It didn't handle sign-extension properly in the case where the source integer is smaller than a pointer size. And, it relied on an assumption about sizeof(i8). The Analysis constant folder still folds these kinds of things; it has access to TargetData, so it can do them right. Add a testcase which tests that the VMCore constant folder doesn't miscompile this, and that the Analysis folder does fold it. llvm-svn: 94750
-
Benjamin Kramer authored
llvm-svn: 94746
-
Duncan Sands authored
when it should have been and'd with LowBits. Fix that and while there beef up the logic in the case of a negative LHS. llvm-svn: 94745
-
Douglas Gregor authored
llvm-svn: 94743
-
Dan Gohman authored
rather than after. llvm-svn: 94742
-
Chris Lattner authored
it has before/end body hooks. lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | 49 ++----------- lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 87 ++++++------------------ lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 56 +++------------ test/CodeGen/XCore/ashr.ll | 2 4 files changed, 48 insertions(+), 146 deletions(-) llvm-svn: 94741
-
Dan Gohman authored
getOffsetOf, and remove the comment about assuming i8 is byte-aligned, which is no longer applicable. llvm-svn: 94738
-
Dan Gohman authored
use plain SCEVUnknowns with ConstantExpr::getSizeOf and ConstantExpr::getOffsetOf constants. This eliminates a bunch of special-case code. Also add code for pattern-matching these expressions, for clients that want to recognize them. Move ScalarEvolution's logic for expanding array and vector sizeof expressions into an element count times the element size, to expose the multiplication to subsequent folding, into the regular constant folder. llvm-svn: 94737
-
Chris Lattner authored
llvm-svn: 94732
-
Evan Cheng authored
Fix a bug introduced by r94490 where it created a X86ISD::CMP whose output type is different from its inputs. This fixes PR6146. llvm-svn: 94731
-
Chris Lattner authored
llvm-svn: 94729
-
Chris Lattner authored
llvm-svn: 94728
-
Chris Lattner authored
Diffstat: 6 files changed, 30 insertions(+), 284 deletions(-) llvm-svn: 94727
-
Jim Grosbach authored
This allows code gen and the exception table writer to cooperate to make sure landing pads are associated with the correct invoke locations. llvm-svn: 94726
-
Chris Lattner authored
runOnMachineFunction, and switch PPC to use EmitFunctionBody. The two ppc asmprinters now don't heave to define runOnMachineFunction. llvm-svn: 94722
-
Chris Lattner authored
llvm-svn: 94719
-
Chris Lattner authored
"0" is nice and target independent. llvm-svn: 94718
-
Chris Lattner authored
Move the X86 implementation of function body emission up to AsmPrinter::EmitFunctionBody, which works by calling the virtual EmitInstruction method. llvm-svn: 94716
-
Chris Lattner authored
Overload it in the ARM backend to do nothing, since is does insane constant pool emission. llvm-svn: 94708
-
Chris Lattner authored
llvm-svn: 94706
-
Chris Lattner authored
constify EmitLinkage. llvm-svn: 94705
-
Chris Lattner authored
llvm-svn: 94703
-
Chris Lattner authored
MachineFunction::Alignment instead. llvm-svn: 94701
-
Chris Lattner authored
is now less than 200 LOC! llvm-svn: 94699
-
Chris Lattner authored
llvm-svn: 94698
-