- Jul 22, 2009
-
-
Chris Lattner authored
Constant::getRelocationInfo(), which has a much simpler to use API. It still should not be part of libvmcore, but is better than it was. Also teach it to be smart about hidden visibility. llvm-svn: 76700
-
Chris Lattner authored
llvm-svn: 76689
-
Chris Lattner authored
virtual. Just inline it into its two current call sites in preparation for simplifying the code. llvm-svn: 76686
-
- Jul 21, 2009
-
-
Chris Lattner authored
llvm-svn: 76645
-
Chris Lattner authored
LLVM IR concept. llvm-svn: 76590
-
Chris Lattner authored
llvm-svn: 76587
-
David Greene authored
Re-apply 75490, 75806 and 76177 with fixes and tests. Efficiency comes next. llvm-svn: 76486
-
- Jul 18, 2009
-
-
Evan Cheng authored
Revert 76177 for now. It's messing up ARM asm printing. Also this significant debate about its efficiency. llvm-svn: 76279
-
- Jul 17, 2009
-
-
Chris Lattner authored
starting in getCurrentFunctionEHName. Among other problems, we would try to privative a "foo.eh" label, but end up emitting the label as _Lfoo.eh instead of L_foo.eh on darwin. This is really bad, and the linker has always tolerated these labels existing. For now, just emit them as _foo.eh. This patch also fixes problems with ".eh" labels on unnamed functions and eliminates two strangely defined TargetAsmInfo hooks. llvm-svn: 76231
-
David Greene authored
Add logic to align instruction operands to columns for pretty-printing. No target uses this currently. This patch only adds the mechanism so that local installations can choose to enable this. llvm-svn: 76177
-
- Jul 15, 2009
-
-
Duncan Sands authored
(llvm-gcc) has gone. llvm-svn: 75781
-
- Jul 14, 2009
-
-
Torok Edwin authored
This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
-
- Jul 13, 2009
-
-
Owen Anderson authored
llvm-svn: 75508
-
David Greene authored
Add infrastructure to allow post instruction printing action triggers. We'll eventually use this to print comments in asm files and do other fun things. This adds interfaces to the AsmPrinter and changes TableGen to invoke the postInstructionAction when appropriate. It also add parameters to TargetAsmInfo to control comment layout. llvm-svn: 75490
-
Owen Anderson authored
Begin the painful process of tearing apart the rat'ss nest that is Constants.cpp and ConstantFold.cpp. This involves temporarily hard wiring some parts to use the global context. This isn't ideal, but it's the only way I could figure out to make this process vaguely incremental. llvm-svn: 75445
-
- Jul 11, 2009
-
-
Torok Edwin authored
Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
-
- Jun 19, 2009
-
-
Chris Lattner authored
into DarwinTargetAsmInfo.cpp. The remaining differences should be evaluated. It seems strange that x86/arm has .zerofill but ppc doesn't, etc. llvm-svn: 73742
-
Chris Lattner authored
llvm-svn: 73738
-
Chris Lattner authored
llvm-svn: 73736
-
- Apr 13, 2009
-
-
Devang Patel authored
Reapply 68847. Now debug_inlined section is covered by TAI->doesDwarfUsesInlineInfoSection(), which is false by default. llvm-svn: 68964
-
- Apr 11, 2009
-
-
Dan Gohman authored
from the assembler: Error: unknown pseudo-op: `.debug_inlined' llvm-svn: 68863
-
Devang Patel authored
Keep track of inlined functions and their locations. This information is collected when nested llvm.dbg.func.start intrinsics are seen. (Right now, inliner removes nested llvm.dbg.func.start intrinisics during inlining.) Create debug_inlined dwarf section using these information. This info is used by gdb, at least on Darwin, to enable better experience debugging inlined functions. See DwarfWriter.cpp for more information on structure of debug_inlined section. llvm-svn: 68847
-
- Mar 30, 2009
-
-
Anton Korobeynikov authored
Do not propagate ELF-specific stuff (data.rel) into other targets. This simplifies code and also ensures correctness. llvm-svn: 68032
-
Anton Korobeynikov authored
llvm-svn: 68031
-
- Mar 29, 2009
-
-
Anton Korobeynikov authored
llvm-svn: 68005
-
- Mar 07, 2009
-
-
Duncan Sands authored
and extern_weak_odr. These are the same as the non-odr versions, except that they indicate that the global will only be overridden by an *equivalent* global. In C, a function with weak linkage can be overridden by a function which behaves completely differently. This means that IP passes have to skip weak functions, since any deductions made from the function definition might be wrong, since the definition could be replaced by something completely different at link time. This is not allowed in C++, thanks to the ODR (One-Definition-Rule): if a function is replaced by another at link-time, then the new function must be the same as the original function. If a language knows that a function or other global can only be overridden by an equivalent global, it can give it the weak_odr linkage type, and the optimizers will understand that it is alright to make deductions based on the function body. The code generators on the other hand map weak and weak_odr linkage to the same thing. llvm-svn: 66339
-
- Jan 27, 2009
-
-
Anton Korobeynikov authored
mergeable string section. I don't see any bad impact of such decision (rather then placing it into mergeable const section, as it was before), but at least Darwin linker won't complain anymore. The problem in LLVM is that we don't have special type for string constants (like gcc does). Even more, we have two separate types: ConstatArray for non-null strings and ConstantAggregateZero for null stuff.... It's a bit weird :) llvm-svn: 63142
-
- Jan 26, 2009
-
-
Scott Michel authored
doesn't support it. The default is set to 'true', so this should not impact any other target backends. llvm-svn: 63058
-
- Jan 05, 2009
-
-
Bill Wendling authored
llvm-svn: 61765
-
Devang Patel authored
squash warnings. llvm-svn: 61707
-
- Dec 29, 2008
-
-
Bill Wendling authored
Darwin doesn't. Make this optional for platforms. llvm-svn: 61484
-
- Dec 24, 2008
-
-
Bill Wendling authored
llvm-svn: 61420
-
Bill Wendling authored
about other platforms. llvm-svn: 61415
-
- Dec 03, 2008
-
-
Rafael Espindola authored
Print a single parameter .file directive if we have an ELF target. llvm-svn: 60480
-
- Nov 03, 2008
-
-
Dan Gohman authored
adding a TargetMachine member to the base TargetAsmInfo class instead. llvm-svn: 58624
-
- Sep 29, 2008
-
-
Duncan Sands authored
instead of hasWeakLinkage in a bunch of optimization passes. llvm-svn: 56782
-
- Sep 25, 2008
-
-
Anton Korobeynikov authored
llvm-svn: 56621
-
Evan Cheng authored
llvm-svn: 56607
-
Anton Korobeynikov authored
llvm-svn: 56585
-
Anton Korobeynikov authored
llvm-svn: 56582
-