- Jan 29, 2010
-
-
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
-
Mikhail Glushenkov authored
llvm-svn: 94752
-
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
-
Jeffrey Yasskin authored
give upgrade instructions. llvm-svn: 94723
-
Chris Lattner authored
runOnMachineFunction, and switch PPC to use EmitFunctionBody. The two ppc asmprinters now don't heave to define runOnMachineFunction. llvm-svn: 94722
-
Jeffrey Yasskin authored
llvm-svn: 94720
-
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
llvm-svn: 94700
-
Chris Lattner authored
is now less than 200 LOC! llvm-svn: 94699
-
Chris Lattner authored
llvm-svn: 94698
-
Sean Callanan authored
global namespace needlessly. llvm-svn: 94697
-
Sean Callanan authored
for the LLVM disassemblers. llvm-svn: 94696
-
- Jan 27, 2010
-
-
Dale Johannesen authored
let that stop it from being deleted, and change the DEBUG_VALUE value to undef. llvm-svn: 94694
-
Dale Johannesen authored
per document. llvm-svn: 94693
-
Victor Hernandez authored
Need to recurse for all operands of function-local metadata; and handle Instructions (which map to themselves) llvm-svn: 94691
-
Bob Wilson authored
This was already being done in SSAUpdater::GetValueAtEndOfBlock so I've just changed SSAUpdater to check for existing PHIs in both places. llvm-svn: 94690
-
Ted Kremenek authored
llvm-svn: 94687
-
Jeffrey Yasskin authored
Modules and ModuleProviders. Because the "ModuleProvider" simply materializes GlobalValues now, and doesn't provide modules, it's renamed to "GVMaterializer". Code that used to need a ModuleProvider to materialize Functions can now materialize the Functions directly. Functions no longer use a magic linkage to record that they're materializable; they simply ask the GVMaterializer. Because the C ABI must never change, we can't remove LLVMModuleProviderRef or the functions that refer to it. Instead, because Module now exposes the same functionality ModuleProvider used to, we store a Module* in any LLVMModuleProviderRef and translate in the wrapper methods. The bindings to other languages still use the ModuleProvider concept. It would probably be worth some time to update them to follow the C++ more closely, but I don't intend to do it. Fixes http://llvm.org/PR5737 and http://llvm.org/PR5735. llvm-svn: 94686
-
Benjamin Kramer authored
llvm-svn: 94684
-