History log of /external/llvm/lib/VMCore/AsmWriter.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
581600bfc3060ee13afb278cd87e25da5b5f7db2 05-Sep-2012 Chad Rosier <mcrosier@apple.com> [ms-inline asm] Enumerate the InlineAsm dialects and rename the nsdialect to
inteldialect.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
36547343abb7f79ead953817b0d36a27f6082177 05-Sep-2012 Chad Rosier <mcrosier@apple.com> [ms-inline asm] Emit the (new) inline asm Non-Standard Dialect attribute.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163181 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
32811bef956e0fae4329e6515420d85f7e510660 17-Aug-2012 Bill Wendling <isanbard@gmail.com> Change the `linker_private_weak_def_auto' linkage to `linkonce_odr_auto_hide' to
make it more consistent with its intended semantics.

The `linker_private_weak_def_auto' linkage type was meant to automatically hide
globals which never had their addresses taken. It has nothing to do with the
`linker_private' linkage type, which outputs the symbols with a `l' (ell) prefix
among other things.

The intended semantic is more like the `linkonce_odr' linkage type.

Change the name of the linkage type to `linkonce_odr_auto_hide'. And therefore
changing the semantics so that it produces the correct output for the linker.

Note: The old linkage name `linker_private_weak_def_auto' will still parse but
is not a synonym for `linkonce_odr_auto_hide'. This should be removed in 4.0.
<rdar://problem/11754934>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162114 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
573e97326766359d3a9747eed7b7d47b6c33fa0f 03-Aug-2012 Bill Wendling <isanbard@gmail.com> Move the "findUsedStructTypes" functionality outside of the Module class.

The "findUsedStructTypes" method is very expensive to run. It needs to be
optimized so that LTO can run faster. Splitting this method out of the Module
class will help this occur. For instance, it can keep a list of seen objects so
that it doesn't process them over and over again.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161228 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
09dab827b2923fd201070fc87df435fabc3abcf7 16-Jul-2012 Aaron Ballman <aaron@aaronballman.com> MSVC's implementation of isalnum will assert on characters > 255, so we need to use an unsigned char to ensure the integer promotion happens properly. This fixes an assert in debug builds with CodeGen\X86\utf8.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160286 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
86b032b2abcf8a66282241937861156fc432fa33 03-Jul-2012 Bill Wendling <isanbard@gmail.com> Use the DebugInfo's 'print()' method to emit the comments.

These give quite a bit more information about the DebugInfo and makes it more
readable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159680 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
58a6cf2c620ce4c127b926408d78aa607a373251 28-Jun-2012 Bill Wendling <isanbard@gmail.com> Use the interface through DIDescriptor to get the tag/version for a debug info
MDNode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ce718ff9f42c7da092eaa01dd0242e8d5ba84713 23-Jun-2012 Hans Wennborg <hans@hanshq.net> Extend the IL for selecting TLS models (PR9788)

This allows the user/front-end to specify a model that is better
than what LLVM would choose by default. For example, a variable
might be declared as

@x = thread_local(initialexec) global i32 42

if it will not be used in a shared library that is dlopen'ed.

If the specified model isn't supported by the target, or if LLVM can
make a better choice, a different model may be used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159077 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
057beb8d4fe8d5dad98ad80a49a649730c3a3eb0 24-May-2012 Tobias Grosser <grosser@fim.uni-passau.de> Add half support to LLVM (for OpenCL)

Submitted by: Anton Lokhmotov <Anton.Lokhmotov@arm.com>

Approved by: o Anton Korobeynikov
o Micah Villmow
o David Neto

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3d3abe0852d5f499bed7ab014519dd582a0a795d 11-Mar-2012 Stepan Dyatkovskiy <stpworld@narod.ru> llvm::SwitchInst
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default.
Added some notes relative to case iterators.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c10fa6c801e48771b5eade50afc2fe6abaf08227 08-Mar-2012 Stepan Dyatkovskiy <stpworld@narod.ru> Taken into account Duncan's comments for r149481 dated by 2nd Feb 2012:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120130/136146.html

Implemented CaseIterator and it solves almost all described issues: we don't need to mix operand/case/successor indexing anymore. Base iterator class is implemented as a template since it may be initialized either from "const SwitchInst*" or from "SwitchInst*".

ConstCaseIt is just a read-only iterator.
CaseIt is read-write iterator; it allows to change case successor and case value.

Usage of iterator allows totally remove resolveXXXX methods. All indexing convertions done automatically inside the iterator's getters.

Main way of iterator usage looks like this:
SwitchInst *SI = ... // intialize it somehow

for (SwitchInst::CaseIt i = SI->caseBegin(), e = SI->caseEnd(); i != e; ++i) {
BasicBlock *BB = i.getCaseSuccessor();
ConstantInt *V = i.getCaseValue();
// Do something.
}

If you want to convert case number to TerminatorInst successor index, just use getSuccessorIndex iterator's method.
If you want initialize iterator from TerminatorInst successor index, use CaseIt::fromSuccessorIndex(...) method.

There are also related changes in llvm-clients: klee and clang.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
22bed5db2f34a5b351e133d24603d12f45e96e44 16-Feb-2012 NAKAMURA Takumi <geek4civic@gmail.com> VMCore/AsmWriter.cpp: Tweak to check #INF and #NAN earlier.

With MSVCRT, prior checker missed emission of #INF and #NAN.

FIXME: Checking should be simpler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150667 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c8782a1a53aaef6efc710aa33dd21cce1c8033df 16-Feb-2012 NAKAMURA Takumi <geek4civic@gmail.com> VMCore/AsmWriter.cpp: Use APFloat instead of atof(3).

atof(3) might behave differently among platforms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150661 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
18c7f80b3e83ab584bd8572695a3cde8bafd9d3c 05-Feb-2012 Chris Lattner <sabre@nondot.org> reapply the patches reverted in r149470 that reenable ConstantDataArray,
but with a critical fix to the SelectionDAG code that optimizes copies
from strings into immediate stores: the previous code was stopping reading
string data at the first nul. Address this by adding a new argument to
llvm::getConstantStringInfo, preserving the behavior before the patch.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149800 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0df823461dd3de0146c656cba4697d96998f3d24 04-Feb-2012 Devang Patel <dpatel@apple.com> Update llvm debug version to support new structure and tag for Objective-C property's debug info.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
24473120a253a05f3601cd3373403b47e6d03d41 01-Feb-2012 Stepan Dyatkovskiy <stpworld@narod.ru> SwitchInst refactoring.
The purpose of refactoring is to hide operand roles from SwitchInst user (programmer). If you want to play with operands directly, probably you will need lower level methods than SwitchInst ones (TerminatorInst or may be User). After this patch we can reorganize SwitchInst operands and successors as we want.

What was done:

1. Changed semantics of index inside the getCaseValue method:
getCaseValue(0) means "get first case", not a condition. Use getCondition() if you want to resolve the condition. I propose don't mix SwitchInst case indexing with low level indexing (TI successors indexing, User's operands indexing), since it may be dangerous.
2. By the same reason findCaseValue(ConstantInt*) returns actual number of case value. 0 means first case, not default. If there is no case with given value, ErrorIndex will returned.
3. Added getCaseSuccessor method. I propose to avoid usage of TerminatorInst::getSuccessor if you want to resolve case successor BB. Use getCaseSuccessor instead, since internal SwitchInst organization of operands/successors is hidden and may be changed in any moment.
4. Added resolveSuccessorIndex and resolveCaseIndex. The main purpose of these methods is to see how case successors are really mapped in TerminatorInst.
4.1 "resolveSuccessorIndex" was created if you need to level down from SwitchInst to TerminatorInst. It returns TerminatorInst's successor index for given case successor.
4.2 "resolveCaseIndex" converts low level successors index to case index that curresponds to the given successor.

Note: There are also related compatability fix patches for dragonegg, klee, llvm-gcc-4.0, llvm-gcc-4.2, safecode, clang.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149481 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
91766fe066efe6e0969ba805a2e3726a70ed34a3 01-Feb-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com> Revert Chris' commits up to r149348 that started causing VMCoreTests unit test to fail.

These are:

r149348
r149351
r149352
r149354
r149356
r149357
r149361
r149362
r149364
r149365

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149470 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1b2f643753a2974540934ac0f1e3ffd182b0571c 31-Jan-2012 Chris Lattner <sabre@nondot.org> with recent changes, ConstantArray is never a "string". Remove the associated
methods and constant fold the clients to false.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149362 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8b10b69ba25920d7276e01fc8647661977c653c0 31-Jan-2012 Chris Lattner <sabre@nondot.org> fix asmwriting of ConstantDataArray to use the right element count,
simplify ConstantArray handling, since they can never be empty.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149341 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d59ae907eea28285ece6696d6f3271b4ca578c0d 26-Jan-2012 Chris Lattner <sabre@nondot.org> Continue improving support for ConstantDataAggregate, and use the
new methods recently added to (sometimes greatly!) simplify code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149024 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2bd335470f8939782f3df7f6180282d3825d4f09 10-Jan-2012 David Blaikie <dblaikie@gmail.com> Remove unnecessary default cases in switches that cover all enum values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ce16339930a2b03e53b4e6399ef59c092a7f2cfa 17-Dec-2011 Dan Gohman <gohman@apple.com> The powers that be have decided that LLVM IR should now support 16-bit
"half precision" floating-point with a first-class type.

This patch adds basic IR support (but not codegen support).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146786 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f4374e46fd9f5267d650bbcd04b10c3df0f21177 10-Dec-2011 Bill Wendling <isanbard@gmail.com> Add dump method for debugging.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146293 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5a83264fa26eb573ef25b2db0cafbeef3eeb54c8 02-Nov-2011 Benjamin Kramer <benny.kra@googlemail.com> Don't print two 0x prefixes when printing an address.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
62e0590c0e5125b6c0fe5221e6fc552605c27202 30-Sep-2011 Andrew Trick <atrick@apple.com> Tracing or debug-printing a newly formed instruction should not crash.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140874 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
18801ecd487df27201b894db72aff4b2c7396e18 30-Sep-2011 Andrew Trick <atrick@apple.com> whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bb5a7442e362776621112dc9453e546a55878e79 29-Sep-2011 Eli Friedman <eli.friedman@gmail.com> Clean up uses of switch instructions so they are not dependent on the operand ordering. Patch by Stepan Dyatkovskiy.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140803 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f03bb260c90ad013aa4e55af36382875011c95b8 13-Aug-2011 Eli Friedman <eli.friedman@gmail.com> Move "atomic" and "volatile" designations on instructions after the opcode
of the instruction.

Note that this change affects the existing non-atomic load and store
instructions; the parser now accepts both forms, and the change is noted
in the release notes.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137527 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e6e8826870bee3facb04f950f0bd725f8a88623d 12-Aug-2011 Bill Wendling <isanbard@gmail.com> Initial commit of the 'landingpad' instruction.

This implements the 'landingpad' instruction. It's used to indicate that a basic
block is a landing pad. There are several restrictions on its use (see
LangRef.html for more detail). These restrictions allow the exception handling
code to gather the information it needs in a much more sane way.

This patch has the definition, implementation, C interface, parsing, and bitcode
support in it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137501 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c4d0e9fbddfe6b0ee5d5d7ef8eb1b341a8a242cf 12-Aug-2011 Chris Lattner <sabre@nondot.org> switch to the new struct apis.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137481 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
21006d40ac9ec7715bca2095451075a83773dc52 10-Aug-2011 Eli Friedman <eli.friedman@gmail.com> Representation of 'atomic load' and 'atomic store' in IR.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137170 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fb5179a2fa3372813ea9568ad0073223c8e0393c 03-Aug-2011 Chris Lattner <sabre@nondot.org> fix PR10286, a problem with the .ll printer handling block addresses that are out-of-scope.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5cd8ea2fd3a88639bc6556e9564a95bcdd9598db 01-Aug-2011 Jay Foad <jay.foad@gmail.com> Add braces.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136612 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8d948652f2d6d68023f8cec7ba60e9aed2720bd1 01-Aug-2011 Jay Foad <jay.foad@gmail.com> Simplify printAlias.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136611 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
10c6d12a9fd4dab411091f64db4db69670b88850 30-Jul-2011 Bill Wendling <isanbard@gmail.com> Revert r136253, r136263, r136269, r136313, r136325, r136326, r136329, r136338,
r136339, r136341, r136369, r136387, r136392, r136396, r136429, r136430, r136444,
r136445, r136446, r136253 pending review.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136556 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ff03048c1350fcc4fda1ef6d6c57252f3a950854 28-Jul-2011 Eli Friedman <eli.friedman@gmail.com> LangRef and basic memory-representation/reading/writing for 'cmpxchg' and
'atomicrmw' instructions, which allow representing all the current atomic
rmw intrinsics.

The allowed operands for these instructions are heavily restricted at the
moment; we can probably loosen it a bit, but supporting general
first-class types (where it makes sense) might get a bit complicated,
given how SelectionDAG works.

As an initial cut, these operations do not support specifying an alignment,
but it would be possible to add if we think it's useful. Specifying an
alignment lower than the natural alignment would be essentially
impossible to support on anything other than x86, but specifying a greater
alignment would be possible. I can't think of any useful optimizations which
would use that information, but maybe someone else has ideas.

Optimizer/codegen support coming soon.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136404 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
772fe17a6d07304ae2e6b3052bbb24ebb751f0f3 27-Jul-2011 Bill Wendling <isanbard@gmail.com> Merge the contents from exception-handling-rewrite to the mainline.

This adds the new instructions 'landingpad' and 'resume'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
47f3513dd574535aeb40c9eb11134f0899e92269 26-Jul-2011 Eli Friedman <eli.friedman@gmail.com> Initial implementation of 'fence' instruction, the new C++0x-style replacement for llvm.memory.barrier.

This is just a LangRef entry and reading/writing/memory representation; optimizer+codegen support coming soon.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136009 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
db125cfaf57cc83e7dd7453de2d509bc8efd0e5e 18-Jul-2011 Chris Lattner <sabre@nondot.org> land David Blaikie's patch to de-constify Type, with a few tweaks.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7f0ce349187e6526ed2d92fe7d2757f84f73ce04 11-Jul-2011 Jay Foad <jay.foad@gmail.com> Remove mentions of type planes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134887 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
145ab1071123c711242ac665bdcf80004f504d9b 09-Jul-2011 Chris Lattner <sabre@nondot.org> Eliminate the WriteTypeSymbolic function. Now that types know
their names, we don't need a module around to print them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134835 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1afcace3a3a138b1b18e5c6270caa8dae2261ae2 09-Jul-2011 Chris Lattner <sabre@nondot.org> Land the long talked about "type system rewrite" patch. This
patch brings numerous advantages to LLVM. One way to look at it
is through diffstat:
109 files changed, 3005 insertions(+), 5906 deletions(-)

Removing almost 3K lines of code is a good thing. Other advantages
include:

1. Value::getType() is a simple load that can be CSE'd, not a mutating
union-find operation.
2. Types a uniqued and never move once created, defining away PATypeHolder.
3. Structs can be "named" now, and their name is part of the identity that
uniques them. This means that the compiler doesn't merge them structurally
which makes the IR much less confusing.
4. Now that there is no way to get a cycle in a type graph without a named
struct type, "upreferences" go away.
5. Type refinement is completely gone, which should make LTO much MUCH faster
in some common cases with C++ code.
6. Types are now generally immutable, so we can use "Type *" instead
"const Type *" everywhere.

Downsides of this patch are that it removes some functions from the C API,
so people using those will have to upgrade to (not yet added) new API.
"LLVM 3.0" is the right time to do this.

There are still some cleanups pending after this, this patch is large enough
as-is.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0f03782d16002147608c14b34eb2a37f4881b532 24-Jun-2011 Devang Patel <dpatel@apple.com> Revert unintentional check-in.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133822 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8594d429e02c688d428036f8563f09572da3fbff 24-Jun-2011 Devang Patel <dpatel@apple.com> Handle debug info for i128 constants.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
71c38e33594dfe3cbaf712e5585e02f81ed5d5ca 21-Jun-2011 Devang Patel <dpatel@apple.com> Remove r130409, as requested by Chris.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133536 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c137120bb047a7017cbab21f5f9c9e6f65e2b84f 20-Jun-2011 Jay Foad <jay.foad@gmail.com> Make better use of the PHINode API.

Change various bits of code to make better use of the existing PHINode
API, to insulate them from forthcoming changes in how PHINodes store
their operands.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133434 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fb78b33018bdd84d1879ae8a15f53d6b474982e9 18-Jun-2011 Chris Lattner <sabre@nondot.org> now that Type::getDescription() is dead, the TypePrinting class can move from Assembly/Writer.h to being
a private class in AsmWriter.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9100a78bce4e1d34d8ffd5efa2cc79ed864dd1c0 15-Jun-2011 Nick Lewycky <nicholas@mxc.ca> Teach the .ll parser to handle named metadata with non-simple names.
Unfortunately we can't follow what the rest of the language does (wrapping it
in double-quotes) because that would cause an ambiguity with metadata strings,
so instead we escape any unusual characters with \xx escaping.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d78bfbc6bb5342c2256bea0834613b02448ec74d 28-Apr-2011 Devang Patel <dpatel@apple.com> Add command line option to print debug info in human readable form as comment in llvm IR output. This, i.e -enable-debug-info-comment, is very useful if you want to easily find out which optimization pass is losing line number information.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130409 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
61717b3d94a74ad7bb3ade7ed4662921a4124fc8 24-Apr-2011 Jay Foad <jay.foad@gmail.com> Fix an assert to check exactly what it says.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130093 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ddcdcc88631c6bd4ad43d9198b98bc9a829be036 23-Apr-2011 Jay Foad <jay.foad@gmail.com> Remove unused STL header includes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130068 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d30aa5a1edac5256573e8d76dd155df3d3fdec84 13-Apr-2011 Jay Foad <jay.foad@gmail.com> PR9214: Convert ConstantExpr::getIndices() to return an ArrayRef, plus
related tweaks to ExprMapKeyType.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129443 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5d7a5a4f53304869ae5b76771ab67213447b65a5 11-Apr-2011 Bill Wendling <isanbard@gmail.com> Revert r129235 pending a vetting of the EH rewrite.
--- Reverse-merging r129235 into '.':
D test/Feature/bb_attrs.ll
U include/llvm/BasicBlock.h
U include/llvm/Bitcode/LLVMBitCodes.h
U lib/VMCore/AsmWriter.cpp
U lib/VMCore/BasicBlock.cpp
U lib/AsmParser/LLParser.cpp
U lib/AsmParser/LLLexer.cpp
U lib/AsmParser/LLToken.h
U lib/Bitcode/Reader/BitcodeReader.cpp
U lib/Bitcode/Writer/BitcodeWriter.cpp



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d7bb295d223e028aa9ba7fbeafc8928db4a74972 10-Apr-2011 Bill Wendling <isanbard@gmail.com> Beginning of the Great Exception Handling Rewrite.

* Add a "landing pad" attribute to the BasicBlock.
* Modify the bitcode reader and writer to handle said attribute.

Later: The verifier will ensure that the landing pad attribute is used in the
appropriate manner. I.e., not applied to the entry block, and applied only to
basic blocks that are branched to via a `dispatch' instruction.

(This is a work-in-progress.)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a6428a401b4692527dce51ef4318334c0913e17e 07-Mar-2011 Justin Holewinski <justin.holewinski@gmail.com> ptx: Fix calling convention printing in AsmWriter.cpp

This allows LLVM IR using ptx_kernel or ptx_device calling
conventions to be properly printed when emitted in text form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127157 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
49d7999b89759a1b58180fec9c491ba05204c95c 03-Mar-2011 Tilmann Scheller <tilmann.scheller@googlemail.com> Use X86_thiscall calling convention for Win64 as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126934 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f1cc70ca9356b23369b689e17b89c5596d4c913f 02-Mar-2011 Tilmann Scheller <tilmann.scheller@googlemail.com> Add Win64 thiscall calling convention.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126862 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
38c4e535493363b96eac47af9e7c056530137bea 02-Mar-2011 Rafael Espindola <rafael.espindola@gmail.com> Add a special streamer to libLTO that just records symbols definitions and
uses.

The result produced by the streamer is used to give the linker more accurate
information and to add to llvm.compiler.used. The second improvement removes
the need for the user to add __attribute__((used)) to functions only used in
inline asm. The first one lets us build firefox with LTO on Darwin :-)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126830 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
29020a3b454f9fc84f899197556aa71914b51e24 19-Feb-2011 Devang Patel <dpatel@apple.com> These tags are now covered by dwarf::TagString().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125987 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
35bda8914c0d1c02a6f90f42e7810c83150737e1 06-Feb-2011 Chris Lattner <sabre@nondot.org> enhance vmcore to know that udiv's can be exact, and add a trivial
instcombine xform to exercise this.

Nothing forms exact udivs yet though. This is progress on PR8862



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124992 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3971df5203146649a34dc50d217c0cc072d39be9 25-Jan-2011 Rafael Espindola <rafael.espindola@gmail.com> Move unnamed_addr after the function arguments on Sabre's request.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bea4626f93c830e31f82cc947df28fdae583cd09 08-Jan-2011 Rafael Espindola <rafael.espindola@gmail.com> First step in fixing PR8927:

Add a unnamed_addr bit to global variables and functions. This will be used
to indicate that the address is not significant and therefore the constant
or function can be merged with others.

If an optimization pass can show that an address is not used, it can set this.

Examples of things that can have this set by the FE are globals created to
hold string literals and C++ constructors.

Adding unnamed_addr to a non-const global should have no effect unless
an optimization can transform that global into a constant.

Aliases are not allowed to have unnamed_addr since I couldn't figure
out any use for it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123063 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f9930da2ef72350c6c805af09e754e4e6e13d47b 25-Sep-2010 Che-Liang Chiou <clchiou@gmail.com> Add ret instruction to PTX backend

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bb811a244567aa8a1522203f15588f4d001b7353 10-Sep-2010 Dale Johannesen <dalej@apple.com> Add X86 MMX type to bitcode and Type.
(The Ada bindings probably need it too, but all the
obvious places to change say "do not edit this file".)



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113618 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e9834387469824d0582d663de6f6a41d0538fe53 09-Sep-2010 Dan Gohman <gohman@apple.com> MDNodes are not Constants.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113539 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3da076ffefafd09c01764d4094dd61cd7c79735a 09-Sep-2010 Dan Gohman <gohman@apple.com> Print invalid metadata references as <badref>, for consistency with
regular value references.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113538 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1dbb3879e81c414733ee38ef6a5e657d7ed47e68 03-Sep-2010 Chris Lattner <sabre@nondot.org> lets get crazy and name the header file the exact class name,
not a scrunched version of it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112904 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
91fb4070e58566c5406b65bf70719c3e580eb027 03-Sep-2010 Chris Lattner <sabre@nondot.org> reapply 112894:

Remove #uses comments from functions: they we're padded out to column 50
and were potentially confusing for externally visible functions.

going further, remove the "<i8**> [#uses=3]" comments entirely. They
add a lot of noise, confuse people about what the IR is, and don't add
any particular value. When the types are long it makes it really really
hard to read IR.

If someone is interested in this sort of thing, the right way to do this
is to implement an AsmAnnotationWriter that produces the same output, and
add a flag to llvm-dis (only) to produce this output.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7e5c1a9790109ceb76576153c43a574c28fe0749 03-Sep-2010 Chris Lattner <sabre@nondot.org> revert patch, need to update clang tests too


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112895 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
39653a4e6ccf624c0329e613e9e522f834410812 03-Sep-2010 Chris Lattner <sabre@nondot.org> Remove #uses comments from functions: they we're padded out to column 50
and were potentially confusing for externally visible functions.

going further, remove the "<i8**> [#uses=3]" comments entirely. They
add a lot of noise, confuse people about what the IR is, and don't add
any particular value. When the types are long it makes it really really
hard to read IR.

If someone is interested in this sort of thing, the right way to do this
is to implement an AsmAnnotationWriter that produces the same output, and
add a flag to llvm-dis (only) to produce this output.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112894 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8cf2663227c357437bd67ff4ce54683b540f5318 02-Sep-2010 Duncan Sands <baldrick@free.fr> Print the number of uses of a function in the .ll since it can be informative
and there seems to be no reason not to.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112812 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
61c70e98ac3c7504d31dd9bc81c4e9cb998e9984 28-Aug-2010 Chris Lattner <sabre@nondot.org> remove unions from LLVM IR. They are severely buggy and not
being actively maintained, improved, or extended.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112356 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
55ae515f9db484125a23429d4906c5edaf9f10d2 21-Aug-2010 Bill Wendling <isanbard@gmail.com> Create the new linker type "linker_private_weak_def_auto".

It's similar to "linker_private_weak", but it's known that the address of the
object is not taken. For instance, functions that had an inline definition, but
the compiler decided not to inline it. Note, unlike linker_private and
linker_private_weak, linker_private_weak_def_auto may have only default
visibility. The symbols are removed by the linker from the final linked image
(executable or dynamic library).



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ee56c42168f6c4271593f6018c4409b6a5910302 02-Aug-2010 Oscar Fuentes <ofv@wanadoo.es> Prefix `next' iterator operation with `llvm::'.

Fixes potential ambiguity problems on VS 2010.

Patch by nobled!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110029 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
17aa92c92a925b4a674440c7ef088c223990e854 22-Jul-2010 Dan Gohman <gohman@apple.com> Make NamedMDNode not be a subclass of Value, and simplify the interface
for creating and populating NamedMDNodes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
872814ae048df032bddf9299c850f5bda08299a9 21-Jul-2010 Dan Gohman <gohman@apple.com> Disallow null as a named metadata operand.
Make MDNode::destroy private.
Fix the one thing that used MDNode::destroy, outside of MDNode itself.

One should never delete or destroy an MDNode explicitly. MDNodes
implicitly go away when there are no references to them (implementation
details aside).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109028 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3bdfbf5d56d52fc4c390df77f98ba2c46951b51a 21-Jul-2010 Dan Gohman <gohman@apple.com> Give MDNode printing has access to the current Module in more
cases. This will be needed when function-local metadata can
appear in places that aren't intrinsic function arguments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108971 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
38e59891ee4417a9be2f8146ce0ba3269e38ac21 15-Jul-2010 Benjamin Kramer <benny.kra@googlemail.com> Don't pass StringRef by reference.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108366 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
79b78a43ece977899b654fe3c19d0c94f963c128 14-Jul-2010 Dan Gohman <gohman@apple.com> Just use getParent() instead of getModuleFromVal when the value is a Function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
40cf12fe775e0a689427f3c8779d8b6447bab3ca 14-Jul-2010 Dan Gohman <gohman@apple.com> Rename WriteConstantInt to WriteConstantInternal, to avoid confusion.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3472766f9eb7d66f234c390ce1b3a8b76f0ee9ce 12-Jul-2010 Duncan Sands <baldrick@free.fr> Convert some tab stops into spaces.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108130 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8fff12605e125e264bca213e748e1ec972437a55 08-Jul-2010 Chris Lattner <sabre@nondot.org> use PrintEscapedString to handle attribute section with escapes in it,
PR7399. The asm parser already handles this. This is of dubious
utility (see the PR) but the asmprinter was clearly broken here.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5e721d768254a920b78b9129d79a84c0163cb3f4 01-Jul-2010 Bill Wendling <isanbard@gmail.com> Implement the "linker_private_weak" linkage type. This will be used for
Objective-C metadata types which should be marked as "weak", but which the
linker will remove upon final linkage. However, this linkage isn't specific to
Objective-C.

For example, the "objc_msgSend_fixup_alloc" symbol is defined like this:

.globl l_objc_msgSend_fixup_alloc
.weak_definition l_objc_msgSend_fixup_alloc
.section __DATA, __objc_msgrefs, coalesced
.align 3
l_objc_msgSend_fixup_alloc:
.quad _objc_msgSend_fixup
.quad L_OBJC_METH_VAR_NAME_1

This is different from the "linker_private" linkage type, because it can't have
the metadata defined with ".weak_definition".

Currently only supported on Darwin platforms.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107433 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
07d317711781d8c9268f7d6afcf1ba7eadf1d127 30-Jun-2010 Bill Wendling <isanbard@gmail.com> Revert r107205 and r107207.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107215 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
207855cff9b4811004b9720f28a5bd0adf3784b7 29-Jun-2010 Bill Wendling <isanbard@gmail.com> Introducing the "linker_weak" linkage type. This will be used for Objective-C
metadata types which should be marked as "weak", but which the linker will
remove upon final linkage. For example, the "objc_msgSend_fixup_alloc" symbol is
defined like this:

.globl l_objc_msgSend_fixup_alloc
.weak_definition l_objc_msgSend_fixup_alloc
.section __DATA, __objc_msgrefs, coalesced
.align 3
l_objc_msgSend_fixup_alloc:
.quad _objc_msgSend_fixup
.quad L_OBJC_METH_VAR_NAME_1

This is different from the "linker_private" linkage type, because it can't have
the metadata defined with ".weak_definition".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107205 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7bbdf0c8489794721f23ee6b00af021c24f007d7 23-Jun-2010 Gabor Greif <ggreif@gmail.com> use ArgOperand accessors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106623 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ded05e34b65dc42998e9db6ca1abd513e7a9d120 16-May-2010 Anton Korobeynikov <asl@math.spbu.ru> Add support for thiscall calling convention.
Patch by Charles Davis and Steven Watanabe!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103902 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fd450c026ae0e804da7025d3318551b203d584a9 10-May-2010 Chris Lattner <sabre@nondot.org> fix PR7105 by enumerating MDNodes on all @llvm.foo
function calls, not just recognized intrinsics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103428 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
66797ff2e1433c1005f911c954a2953238d04554 08-May-2010 Dan Gohman <gohman@apple.com> Minimally fix this code to not abort on mdnodes with integer data
wider than 64 bits.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103309 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
551754c4958086cc6910da7c950f2875e212f5cf 17-Apr-2010 Eric Christopher <echristo@apple.com> Revert 101465, it broke internal OpenGL testing.

Probably the best way to know that all getOperand() calls have been handled
is to replace that API instead of updating.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101579 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4ec2258ffb495d7ce00177e447740ef1123a27db 16-Apr-2010 Gabor Greif <ggreif@gmail.com> reapply r101434
with a fix for self-hosting

rotate CallInst operands, i.e. move callee to the back
of the operand array

the motivation for this patch are laid out in my mail to llvm-commits:
more efficient access to operands and callee, faster callgraph-construction,
smaller compiler binary


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
607a7ab3da72a2eb53553a520507cbb8068dd1d8 16-Apr-2010 Gabor Greif <ggreif@gmail.com> back out r101423 and r101397, they break llvm-gcc self-host on darwin10

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101434 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2ff961f66816daab8bbc58a19025161d969821c2 15-Apr-2010 Gabor Greif <ggreif@gmail.com> reapply r101364, which has been backed out in r101368
with a fix

rotate CallInst operands, i.e. move callee to the back
of the operand array

the motivation for this patch are laid out in my mail to llvm-commits:
more efficient access to operands and callee, faster callgraph-construction,
smaller compiler binary


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101397 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9ee17208115482441953127615231c59a2f4d052 15-Apr-2010 Gabor Greif <ggreif@gmail.com> back out r101364, as it trips the linux nightlybot on some clang C++ tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101368 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
165dac08d1bb8428b32a5f39cdd3dbee2888987f 15-Apr-2010 Gabor Greif <ggreif@gmail.com> rotate CallInst operands, i.e. move callee to the back
of the operand array

the motivation for this patch are laid out in my mail to llvm-commits:
more efficient access to operands and callee, faster callgraph-construction,
smaller compiler binary


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
29e13e0c18de57209170d5cd2c3dd1311f5e2a40 08-Apr-2010 Dan Gohman <gohman@apple.com> Print empty structs as {} rather than { }.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100787 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
44424646ac9db5c4d3919462bd0831ec22783085 26-Mar-2010 Gabor Greif <ggreif@gmail.com> rename pred_const_iterator to const_pred_iterator for consistency's sake

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99567 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c9f7500d1752feac7cece26d20007a99d21f677c 24-Mar-2010 Gabor Greif <ggreif@gmail.com> Finally land the InvokeInst operand reordering.
I have audited all getOperandNo calls now, fixing
hidden assumptions. CallSite related uglyness will
be eliminated successively.

Note this patch has a long and griveous history,
for all the back-and-forths have a look at
CallSite.h's log.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99399 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1cde4af15712f6ccdb81ab540df800cda90d0d74 22-Mar-2010 Gabor Greif <ggreif@gmail.com> backing out r99170 because it still fails on clang-x86_64-darwin10-fnt

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99171 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9b1061e2e3c3a463aa251e2e6631d5e4313a7ac6 22-Mar-2010 Gabor Greif <ggreif@gmail.com> Now that hopefully all direct accesses to InvokeInst operands are fixed
we can reapply the InvokeInst operand reordering patch. (see r98957).



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99170 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cc52ed0c4feec63e7a127462b78fd4a6b217f469 19-Mar-2010 Gabor Greif <ggreif@gmail.com> back out r98957, it broke http://smooshlab.apple.com:8010/builders/clang-x86_64-darwin10-fnt/builds/703 in the nightly test suite

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f4f10e37791cef519a057d10d12f688333f554a7 19-Mar-2010 Gabor Greif <ggreif@gmail.com> Recommit r80858 again (which has been backed out in r80871).

This time I did a self-hosted bootstrap on Linux x86-64,
with no problems. Let's see how darwin 64-bit self-hosting
goes. At the first sign of failure I'll back this out.

Maybe the valgrind bots give me a hint of what may be wrong
(it at all).



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98957 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
94c484d3b89662a9f61711f523f6b5cb9b6c392a 16-Mar-2010 Chris Lattner <sabre@nondot.org> add asmprinter suport for unions, fixing Feature/unions.ll to actually
be doing something useful.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98677 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f3d5c915502a64921bff4ed96d8e8171f85b73f3 02-Mar-2010 Erick Tryzelaar <idadesub@users.sourceforge.net> Fix looking up MD names to not need a module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fa0c54e3b88f103abb247e471917a6e6a5bb9a0f 25-Feb-2010 Nick Lewycky <nicholas@mxc.ca> Dump the presence of attached metadata even if we don't know what it is. This
format is not parsable, even if the module is legal. To get parsable output,
dump the module instead of the function or smaller, since metadata kind are
attached to the module (not the context).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97124 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
47c5188789bc40671504ed1fa3a44765cefba44f 16-Feb-2010 Duncan Sands <baldrick@free.fr> Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some
methods to try to have the type predicates be more logically positioned.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1df9859c40492511b8aa4321eb76496005d3b75b 16-Feb-2010 Duncan Sands <baldrick@free.fr> There are two ways of checking for a given type, for example isa<PointerType>(T)
and T->isPointerTy(). Convert most instances of the first form to the second form.
Requested by Chris.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96344 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b0bc6c361da9009e8414efde317d9bbff755f6c0 15-Feb-2010 Duncan Sands <baldrick@free.fr> Uniformize the names of type predicates: rather than having isFloatTy and
isInteger, we now have isFloatTy and isIntegerTy. Requested by Chris!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96223 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fdfeb6976f07ad10d809b922ed7376ba2a3539be 12-Feb-2010 Chris Lattner <sabre@nondot.org> Add support for a union type in LLVM IR. Patch by Talin!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96011 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
659d1e8bbbbd33c25fdbe38bad6cb166a635e516 10-Feb-2010 Dan Gohman <gohman@apple.com> Minor whitespace cleanups.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7a5666e7f3ba5d7825e5d65d601f9679d10a56bb 10-Feb-2010 Dan Gohman <gohman@apple.com> Add a hook to AssemblyAnnotationWriter to allow custom info comments
to be printed, in place of the familiar "uses=" comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95798 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4483c7b15aa343bd95e3d7f800be788b77ea23f8 30-Jan-2010 Dan Gohman <gohman@apple.com> Print a comment next to "materializable" global values, to distinguish
them from values that are not actually defined in the module.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94854 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5908839cedfa4cfb3b7a89db01f987c47e64aa90 29-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Convert some users of ftostr to raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94808 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f0356fe140af1a30587b9a86bcfb1b2c51b8ce20 27-Jan-2010 Jeffrey Yasskin <jyasskin@google.com> Kill ModuleProvider and ghost linkage by inverting the relationship between
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8fffff537194e2375e65600f27d716c99f0eb38a 20-Jan-2010 Victor Hernandez <vhernandez@apple.com> Refactor common parts of MDNode::getFunction() and assertLocalFunction() into getFunctionForValue()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93977 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
38812dff7d23fbb69223ddc3fcfa643c84ad9339 18-Jan-2010 Victor Hernandez <vhernandez@apple.com> Make printing of metadata more robust when function is not found (which is the normal situation for non function-local metadata)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
559588b156611aaab33d8b46dc0575508a49da2b 14-Jan-2010 Victor Hernandez <vhernandez@apple.com> Fix printing of function-local metadata in AsmWriter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93402 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5f72a5ebc84a1935878b5b2d3166a505c520cdfc 13-Jan-2010 Dale Johannesen <dalej@apple.com> Further progration of metadata operands. The
dumper doesn't really do what I want yet, but
at least it doesn't crash now.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93272 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
69d02e0a174151e0f129731452e819b91d1ab90e 05-Jan-2010 Devang Patel <dpatel@apple.com> Allow null to be an element of NamedMDNode. e.g. !llvm.stuff = !{!0, !1, null}



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92783 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
11acaa374cdcebb161bf0de5f244265d78a749c1 05-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Convert a ton of simple integer type equality tests to the new predicate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d865e02ea24e92f8fd1d2b49a26ea0676a879ce7 05-Jan-2010 David Greene <greened@obbligato.org> Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
dbe85bffd775620d7c93c041ad5bd49801eb9d14 31-Dec-2009 Chris Lattner <sabre@nondot.org> fix refactoro


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c65b72ca26cafb988a72dafa25dc5796094b74f8 31-Dec-2009 Chris Lattner <sabre@nondot.org> use early exits to reduce indentation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92335 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
85b1912dba48177e4ce65c2909c7cbee86eda59c 31-Dec-2009 Chris Lattner <sabre@nondot.org> eliminate another copy of the mdnode printing logic, simplify the
one that remains.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92334 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2b4b1e2e603d5543bf2fe0ad45b62ca7bfaee81d 31-Dec-2009 Chris Lattner <sabre@nondot.org> random tidying for MDNode printing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bd72b3201b24f6ae574b2a1949348f514fcd4c4f 31-Dec-2009 Chris Lattner <sabre@nondot.org> eliminate a bunch of useless forwarding functions with one caller.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92332 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
307c9893fc30758041a3649a8bed2b4b4cc405d4 31-Dec-2009 Chris Lattner <sabre@nondot.org> make mdnMap type safe, rename accessors for consistency with the rest of llvm.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92331 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
51ea55f0ec6a0a4e827d76db56deecc9515c1890 31-Dec-2009 Chris Lattner <sabre@nondot.org> metadata can't be a global var initializer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92330 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6e6b1805dae72803fbfe45f9aee2ab9ebfb4ec77 31-Dec-2009 Chris Lattner <sabre@nondot.org> simplify mdnode printing logic. Now N->dump() only
dumps one node instead of all of them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fdb33564772cfbf75f2ad63eb46e252dc3c3e891 31-Dec-2009 Chris Lattner <sabre@nondot.org> unify two copies of the NamedMDNode printing code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7d054b385f6e102b592d8a335bfdfae6d7c9bf44 31-Dec-2009 Chris Lattner <sabre@nondot.org> fix printing of function-local metadata to print all the operands of the
mdnode, not just operand 0 over and over.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92326 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4a3d3a54ebc7125f851e978b7188bda1bfdc14ac 31-Dec-2009 Chris Lattner <sabre@nondot.org> simplify printing of mdstring and Argument.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92325 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
38cf02ebc977d65f3e1beecd1819a14f7bcf7fa9 31-Dec-2009 Chris Lattner <sabre@nondot.org> simplify asmprinting of NamedMDNode


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92324 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5d0cacdbb6577f2449986f345858db17dc1bcf59 31-Dec-2009 Chris Lattner <sabre@nondot.org> rename "elements" of metadata to "operands". "Elements" are
things that occur in types. "operands" are things that occur
in values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92322 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
837eda93ee1d89689925e45e90c59cf948e531bb 29-Dec-2009 Chris Lattner <sabre@nondot.org> Do not crash when .ll printing metadata that smells like debug info, but isn't.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92268 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
081134741b40b342fb2f85722c9cea5d412489a8 29-Dec-2009 Chris Lattner <sabre@nondot.org> Final step in the metadata API restructuring: move the
getMDKindID/getMDKindNames methods to LLVMContext (and add
convenience methods to Module), eliminating MetadataContext.
Move the state that it maintains out to LLVMContext.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4ee93c430367000c80a02ba218ddf712aa3e57ed 29-Dec-2009 Chris Lattner <sabre@nondot.org> tidy up debug info comments, use ->isVoidTy() where reasonable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92249 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3990b121cf4a0b280ed3e54cf13870cbf4259e78 29-Dec-2009 Chris Lattner <sabre@nondot.org> This is a major cleanup of the instruction metadata interfaces that
I asked Devang to do back on Sep 27. Instead of going through the
MetadataContext class with methods like getMD() and getMDs(), just
ask the instruction directly for its metadata with getMetadata()
and getAllMetadata().

This includes a variety of other fixes and improvements: previously
all Value*'s were bloated because the HasMetadata bit was thrown into
value, adding a 9th bit to a byte. Now this is properly sunk down to
the Instruction class (the only place where it makes sense) and it
will be folded away somewhere soon.

This also fixes some confusion in getMDs and its clients about
whether the returned list is indexed by the MDID or densely packed.
This is now returned sorted and densely packed and the comments make
this clear.

This introduces a number of fixme's which I'll follow up on.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7d05c46d601cbb52be605019548c34286c02e3a3 28-Dec-2009 Chris Lattner <sabre@nondot.org> rename getHandlerNames to getMDKindNames, simplify its interface
and simplify all the clients that use it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92224 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bcb18538c26fd6fef942d9da8156b30febae5d7e 28-Dec-2009 Chris Lattner <sabre@nondot.org> change the strange MetadataContext::getMDs function to expose less
irrelevant internal implementation details to clients.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92210 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5d3016215075c52766711e741ce5401ee891d4ac 18-Dec-2009 Victor Hernandez <vhernandez@apple.com> Formalize MDNode's function-localness:
- an MDNode is designated as function-local when created, and continues to be even if its operands are modified not to refer to function-local IR
- function-localness is designated via lowest bit in SubclassData
- getLocalFunction() descends MDNode tree to see if it is consistently function-local

Add verification of MDNodes to checks that MDNodes are consistently function-local.
Update AsmWriter to use isFunctionLocal().



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91708 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
211a14e476abc9b864ab6a5d5e0bbb86d288b650 07-Dec-2009 Anton Korobeynikov <asl@math.spbu.ru> Add MSP430 interrupt calling conv. No functionality change yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90738 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ff7707e98393255e23a66f3f6689cdcf59197548 04-Dec-2009 Victor Hernandez <vhernandez@apple.com> Avoid creating a metadata slot for all metadata that contains an instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
954c80e99db5974ef876fca5fd0df0d4b569ab0f 04-Dec-2009 Victor Hernandez <vhernandez@apple.com> Fix crasher when N->getElement(n) is NULL

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90572 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
97e2450de2ee50f51e42317d91a40b6d5ae65d0c 04-Dec-2009 Victor Hernandez <vhernandez@apple.com> Teach AsmWriter to write inline (not via a global metadata slot) metadata that contains an instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90512 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
746d546877a354a0d94ab0bc67775d040022a2b6 16-Nov-2009 Evan Cheng <evan.cheng@apple.com> Special case FixedStackPseudoSourceValueVal as well. Do we really need to differentiate PseudoSourceValueVal from FixedStackPseudoSourceValueVal at this level?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88902 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2b1ffeea2889e83b2765eacaadd668de8b03f643 14-Nov-2009 Eric Christopher <echristo@apple.com> Remove extraneous commit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
04458e404fe418c2ce4dac31ad57018374bc6c00 14-Nov-2009 Eric Christopher <echristo@apple.com> Print out something, even if it's non-parseable later when we've
got ghost linkage. It's better than aborting.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88715 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cdfc940912d56a63b6f12eaa7f3faf79cf74c693 01-Nov-2009 Chris Lattner <sabre@nondot.org> Revert 85678/85680. The decision is to stay with the current form of
indirectbr, thus we don't need "blockaddr(@func, null)". Eliminate it
for simplicity.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85699 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7d83ebcadd725d050cc58962e9b7c4312d676e7f 31-Oct-2009 Chris Lattner <sabre@nondot.org> Make blockaddress(@func, null) be valid, and make 'deleting a basic
block with a blockaddress still referring to it' replace the invalid
blockaddress with a new blockaddress(@func, null) instead of a
inttoptr(1).

This changes the bitcode encoding format, and still needs codegen
support (this should produce a non-zero value, referring to the entry
block of the function would also be quite reasonable).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85678 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0ed1f4264ae1f30eb164ca8fc94669c4f9bbd4f7 30-Oct-2009 Dan Gohman <gohman@apple.com> Simplify this code and avoid an extra space character in the output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85568 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
73050e1c383100d879597f5d4ef8260bb1d6f07c 28-Oct-2009 Chris Lattner <sabre@nondot.org> asmprinter support for BlockAddress.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85367 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ab21db79ef1d2530880ad11f21f0b87ffca02dd4 28-Oct-2009 Chris Lattner <sabre@nondot.org> rename indbr -> indirectbr to appease the residents of #llvm.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85351 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f9be95f867745b6754b2402b9b72f9eaeabd637f 27-Oct-2009 Chris Lattner <sabre@nondot.org> add enough support for indirect branch for the feature test to pass
(assembler,asmprinter, bc reader+writer) and document it. Codegen
currently aborts on it.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85274 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f3523592b21af09a5a0032f8261f2f61c302fbd9 27-Oct-2009 Chris Lattner <sabre@nondot.org> Type.h doesn't need to #include LLVMContext.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7b929dad59785f62a66f7c58615082f98441e95e 23-Oct-2009 Victor Hernandez <vhernandez@apple.com> Remove AllocationInst. Since MallocInst went away, AllocaInst is the only subclass of AllocationInst, so it no longer is necessary.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84969 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f61b2371c8ec6e0ff2da8f2bd2a606ba755bb2fe 22-Oct-2009 Devang Patel <dpatel@apple.com> Fix getMDs() interface such that it does not expose implementation details.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b5681b22937440dcb8007f4b125f3325d6341fe0 22-Oct-2009 Devang Patel <dpatel@apple.com> Using TrackingVH instead of WeakVH or WeakMetadataVH.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84884 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ce6a1c97569ce65a60340b20e65abd0787969942 22-Oct-2009 Devang Patel <dpatel@apple.com> Fix getHandlerNames() interface. Now it populate clinet supplied small vector with handler names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84820 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8ba2d5befc05ca73d3bac8708819bbbe759e2cf9 22-Oct-2009 Dale Johannesen <dalej@apple.com> Rename msasm to alignstack per review.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84795 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
028fa77d560f18f364ae8a0bfd60597cf1968a93 21-Oct-2009 Devang Patel <dpatel@apple.com> Do not use SmallVector to store MDNode elements.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4360298d2bf3c1ba8595a415cfa235df0bc76335 13-Oct-2009 Dale Johannesen <dalej@apple.com> Add an "msasm" flag to inline asm as suggested in PR 5125.
A little ugliness is accepted to keep the binary file format
compatible. No functional change yet.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84020 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7f93f4d66c54e2628fbd159fa19bcfbe601458ae 07-Oct-2009 Devang Patel <dpatel@apple.com> Do not assume that the module is set.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83462 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4d7a2061f147cf64c0cdd36e67ca71e1d89c16f3 30-Sep-2009 Devang Patel <dpatel@apple.com> Check for null MDNode element while printing comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83172 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2d5988d9baba15ecf27b724937dbf44182a518a2 30-Sep-2009 Devang Patel <dpatel@apple.com> Print tag name for MDNodes that are used to encode debug info.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83160 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0475c9170e9621292a48c688c3976031be5650bb 29-Sep-2009 Devang Patel <dpatel@apple.com> Parse custom metadata attached with an instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83033 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e30e678865b8dc1b69ef1c26e7567ffd1300553c 28-Sep-2009 Devang Patel <dpatel@apple.com> s/class Metadata/class MetadataContext/g


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
18f0c263e65da094ef5ba49bb7f66f58cf1cbd0f 28-Sep-2009 Devang Patel <dpatel@apple.com> Do not hardcode metadata names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83010 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3168b79c1c16333d17295c44f9157c8321ec6235 28-Sep-2009 Devang Patel <dpatel@apple.com> Remove dead code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cd26ec5f3c089b3b24f80ff200e94e681eb9e1ee 23-Sep-2009 Dan Gohman <gohman@apple.com> Give MachineMemOperand an operator<<, factoring out code from
two different places for printing MachineMemOperands.

Drop the virtual from Value::dump and instead give Value a
protected virtual hook that can be overridden by subclasses
to implement custom printing. This lets printing be more
consistent, and simplifies printing of PseudoSourceValue
values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a279bc3da55691784064cb47200a1c584408b8ab 20-Sep-2009 Daniel Dunbar <daniel@zuster.org> Tabs -> spaces, and remove trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
43215788d5d79a0a336ca85442d7c8a45552dd7a 16-Sep-2009 Devang Patel <dpatel@apple.com> Print debug info attached with an instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b7c5bdf843419e4222770475c27932c4c8e5c303 06-Sep-2009 Duncan Sands <baldrick@free.fr> Remove some unused variables and methods warned about by
icc (#177, partial). Patch by Erick Tryzelaar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
03a5f139fb7d3e9c49fe95aea4c717fab2285d82 03-Sep-2009 Gabor Greif <ggreif@gmail.com> back out my recent commit (r80858), it seems to break self-hosting buildbot's stage 2 configure

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80871 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
190390b8d31af0a549827478911b322af4bc111a 03-Sep-2009 Gabor Greif <ggreif@gmail.com> re-commit r66920 (which has been backed out in r66953) I may have more luck this time. I'll back out if needed...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
791102fb1192ac9483274e54cbc42480c9b1af10 23-Aug-2009 Chris Lattner <sabre@nondot.org> eliminate the std::ostream form of WriteAsOperand and update clients.
This also updates dominator related stuff.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79825 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
79c5d3f9717756dc3ff56cfcaa3ae1a5930c457a 23-Aug-2009 Chris Lattner <sabre@nondot.org> remove the std::ostream version of module and type printing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bdff548e4dd577a72094d57b282de4e765643b96 23-Aug-2009 Chris Lattner <sabre@nondot.org> eliminate the "Value" printing methods that print to a std::ostream.
This required converting a bunch of stuff off DOUT and other cleanups.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5078f84c82814e4d33846f9ef54281619d362f8a 20-Aug-2009 Dan Gohman <gohman@apple.com> Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap
and hasNoSignedWrap, for consistency with the nuw and nsw properties.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79539 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8f4b1ec02bbc72161a9bd9777a2996dae439c81e 17-Aug-2009 Chris Lattner <sabre@nondot.org> the MinPad argument to PadToColumn only really makes sense to be 1,
just remove the argument and replace it with 1.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79246 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
48cc73d9c7c8d21e3207232663c96d4a266d64b0 17-Aug-2009 Dan Gohman <gohman@apple.com> Fix printing of instructions with null operands.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79243 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e04853ca7830aa88d0394772fceb5bc637f1c0df 17-Aug-2009 Dan Gohman <gohman@apple.com> Always print at least one space before adding a comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79242 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6c304f2314e5fb00488ac6bdfdac180c0ffd3d09 14-Aug-2009 Dan Gohman <gohman@apple.com> Make formatted_raw_ostream restore the buffer settings of the
underlying stream when it is finished, so that clients don't
have to do this manually.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78952 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
009fc9e5d9058a1d3b64bf5cacb29d4f0c952ca5 14-Aug-2009 Dan Gohman <gohman@apple.com> Take the fast path for any named value and any GlobalValue, which doesn't
need TypePrinting despite being a subclass of Constant. This fixes
compile-time problems especially visible on 403.gcc when -asm-verbose is
enabled.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78951 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1d0be15f89cb5056e20e2d24faa8d6afb1573bca 13-Aug-2009 Owen Anderson <resistor@mac.com> Push LLVMContexts through the IntegerType APIs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d6c0f65b532f022e584d8f1e3c044593b4c74a99 13-Aug-2009 Dan Gohman <gohman@apple.com> Fix a 4x slowdown in llc -asm-verbose caused by the use of
WriteAsOperand in more places.

Now that more things are using WriteAsOperand, its behavior of
constructing a TypePrinting object and populating it with strings for all
the numbered types in the Module on each call is a significant bottleneck.
Fancier solutions could be pursued here, but for now, just bypass the
TypePrinting overhead in obvious cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78906 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
01889caf73a2faa3b77142851faa09abad5c73b0 13-Aug-2009 Dan Gohman <gohman@apple.com> Change the indentation for LLVM Assembly files from 1 tab to 2 spaces.
This is vaguely consistent with LLVM's own source code, but more
importantly it lets more lines stay within 80 columns.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9bf0b9bd44d356690e936ae16bec2c115c7d9f5f 13-Aug-2009 Dan Gohman <gohman@apple.com> Now that numbered types have their number printed, it's no longer
interesting to print the number in a comment. Numbered instructions
don't need their number in a comment either.

Also, tidy up newline printing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78865 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3845e50edea58edd0f5e0f2b732e0106b53ba279 13-Aug-2009 Dan Gohman <gohman@apple.com> Extend the AsmWriter to print unnamed numbered types as "%0 = type ..."
and unnamed numbered global variables as "@0 = global ...". Extend the
AsmParser to recognize these forms.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78859 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1220e10f70f89e0f8082344646d79805edf9025d 12-Aug-2009 Dan Gohman <gohman@apple.com> Make AsmWriter more careful with formatted_raw_ostream so that
it doesn't leave the underlying stream in unbuffered mode when
the stream was originally buffered.

Also, change WriteAsOperand back to plain raw_ostream. This
lets it work for either formatted_raw_ostream or plain
raw_ostream, so that it doesn't have to force a buffer flush
on a plain raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78837 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
683e922d299bdfa9ec609bd58a0eed20568303f1 12-Aug-2009 Dan Gohman <gohman@apple.com> Make LLVM Assembly dramatically easier to read by aligning the comments,
using formatted_raw_ostream's PadToColumn.

Before:

bb1: ; preds = %bb
%2 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%3 = getelementptr double* %p, i64 %2 ; <double*> [#uses=1]
%4 = load double* %3, align 8 ; <double> [#uses=1]
%5 = fmul double %4, 1.100000e+00 ; <double> [#uses=1]
%6 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%7 = getelementptr double* %p, i64 %6 ; <double*> [#uses=1]

After:

bb1: ; preds = %bb
%2 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%3 = getelementptr double* %p, i64 %2 ; <double*> [#uses=1]
%4 = load double* %3, align 8 ; <double> [#uses=1]
%5 = fmul double %4, 1.100000e+00 ; <double> [#uses=1]
%6 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%7 = getelementptr double* %p, i64 %6 ; <double*> [#uses=1]

Several tests required whitespace adjustments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78816 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
69bff07b4dc95fd0cc9d7580977beb08259daa17 31-Jul-2009 Dan Gohman <gohman@apple.com> Fix printing of Alloca instructions with null operands.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77697 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e8861b840bf388945d876f97cf2ff6fcbf310790 30-Jul-2009 Devang Patel <dpatel@apple.com> Check null NameMDNode elements.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c29d5b378ece00608ec96a5ccd2b0f53999f1957 30-Jul-2009 Devang Patel <dpatel@apple.com> print single NamedMDNode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
37c4a2d6f15ff32c9ae91e333d655a349e195993 30-Jul-2009 Devang Patel <dpatel@apple.com> Print named metadata.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77513 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0a9f7b9c3ebe7d0ec033462e1a7c9101279956f9 28-Jul-2009 Devang Patel <dpatel@apple.com> Rename MDNode.h header. It defines MDnode and other metadata classes.
New name is Metadata.h.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77370 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
dd8004dc73d091ccb3927dbbc3b41639a3738ae3 27-Jul-2009 Dan Gohman <gohman@apple.com> Add a new keyword 'inbounds' for use with getelementptr. See the
LangRef.html changes for details.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ad895a8dec0c52f38148b19e84d9e67a9e2b25dd 27-Jul-2009 Devang Patel <dpatel@apple.com> Initialize mdnNext.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77229 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
59858cf7926702596cf708daf21aeaf5b6feedf8 27-Jul-2009 Dan Gohman <gohman@apple.com> Change the assembly syntax for nsw, nuw, and exact, putting them
after their associated opcodes rather than before. This makes them
a little easier to read.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77194 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
03d7651c3652e1f0cc86e79b26585d86818da9cf 26-Jul-2009 Daniel Dunbar <daniel@zuster.org> Remove Value::{isName, getNameRef}.

Also, change MDString to use a StringRef.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fd87a544c00c2ca04ee23aae67bbcad4dc852a54 25-Jul-2009 Dan Gohman <gohman@apple.com> Convert a few more things to use raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77039 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2f9c3b002d3cb465fefc5f4b2535ca994c5e9283 23-Jul-2009 Devang Patel <dpatel@apple.com> MDString
- Rename member function size(). New name is length().
- Store string beginning and length. Earlier it used to store string end.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
104cf9e02b0ed94d4173869a598af6c6972a8660 23-Jul-2009 Devang Patel <dpatel@apple.com> Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK in bitcode file.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
08d012eba490c4906ec773c39db9f2a18a78c997 23-Jul-2009 Dan Gohman <gohman@apple.com> Rename the new unsigned and signed keywords to nuw and nsw,
which stand for no-unsigned-wrap and no-signed-wrap.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
66a9d6702f6f6f89aac64bc0cd31c437836dfffc 22-Jul-2009 Devang Patel <dpatel@apple.com> Do not print "metadata" twice while printing MDString.
This fixes unittest failure.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76764 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e54abc90fe9942ef3902040a7ac475ce0c369dc9 22-Jul-2009 Devang Patel <dpatel@apple.com> Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase.
Introduce new bitcode block to hold metadata.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1224c386981f7948f298ed9ad444c40609570f2e 20-Jul-2009 Dan Gohman <gohman@apple.com> Assembly and Bitcode support for unsigned/signed overflow flags and
exact sdiv flags.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76475 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3d10a5a75794356a0a568ce283713adc3a963200 20-Jul-2009 Bill Wendling <isanbard@gmail.com> Add plumbing for the `linker_private' linkage type. This type is meant for
"private" symbols which the assember shouldn't strip, but which the linker may
remove after evaluation. This is mostly useful for Objective-C metadata.

This is plumbing, so we don't have a use of it yet. More to come, etc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c23197a26f34f559ea9797de51e187087c039c42 14-Jul-2009 Torok Edwin <edwintorok@gmail.com> llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.
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").


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
beca6896b97e5a07081390c19ecfd176dbc27b1f 13-Jul-2009 Dan Gohman <gohman@apple.com> Change printInstruction to not print a trailing newline. Value::dump
always adds a newline, so this fixes Value::dump printing an
extra blank line.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75481 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c25e7581b9b8088910da31702d4ca21c4734c6d7 11-Jul-2009 Torok Edwin <edwintorok@gmail.com> assert(0) -> LLVM_UNREACHABLE.
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2214c94bb70524ff3150c6763c2f9ac0c1bb844b 08-Jul-2009 Devang Patel <dpatel@apple.com> Drop "constant" from
!0 = constant metadata !{...}


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
320671d2654a543bbeed5b62efe165430146d55e 08-Jul-2009 Devang Patel <dpatel@apple.com> Update SLotTracker to handle MDNode slots.
Simplify MDNode printing.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75053 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
dac237e18209b697a8ba122d0ddd9cad4dfba1f8 08-Jul-2009 Torok Edwin <edwintorok@gmail.com> Implement changes from Chris's feedback.
Finish converting lib/Target.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75043 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ab7c09b6b6f4516a631fd6788918c237c83939af 08-Jul-2009 Torok Edwin <edwintorok@gmail.com> Start converting to new error handling API.
cerr+abort -> llvm_report_error
assert(0)+abort -> LLVM_UNREACHABLE (assert(0)+llvm_unreachable-> abort() included)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75018 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fcd65ae28fe797c174be350a07955713fd42d110 01-Jul-2009 Devang Patel <dpatel@apple.com> Fix metadata unittests


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74638 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
05a0e6a01c92d4934b5e87be4669124aa9b46ae9 01-Jul-2009 Devang Patel <dpatel@apple.com> Do not print stranded metadata.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74632 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
923078c65d5a37a4f135705300c9feea49487de5 01-Jul-2009 Devang Patel <dpatel@apple.com> Support stand alone metadata syntax.

!0 = constant metadata !{i32 21, i32 22}
@llvm.blah = constant metadata !{i32 1000, i16 200, metadata !0}



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
385f5a99ecc7fee48a7539bc63d3e1d3b5089c0d 16-Jun-2009 Anton Korobeynikov <asl@math.spbu.ru> Address review comments: add 3 ARM calling conventions.
Dispatch C calling conv. to one of these conventions based on
target triple and subtarget features.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73530 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7a0370f66ab5739f42ffe822f33494e0de9b182b 30-May-2009 Nick Lewycky <nicholas@mxc.ca> Give embedded metadata its own type instead of relying on EmptyStructTy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cb33799b9f4e152e3460faa83e59b53ff604c87d 10-May-2009 Nick Lewycky <nicholas@mxc.ca> Make MDNode use CallbackVH. Also change MDNode to store Value* instead of
Constant* in preperation of a future change to support holding non-Constants
in an MDNode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71407 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a2165ed6ee7f73b5cf272a0b5d5d4ed448f52665 25-Apr-2009 Chris Lattner <sabre@nondot.org> Allow aliasee to be a GEP or bitcast instead of just a bitcast.
The real fix for this whole mess is to require the operand of the
alias to be a *GlobalValue* (not a general constant, including
constant exprs) but allow the operand and the alias type to be
unrelated.

This fixes PR4066


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70079 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ba0941fbe0db832b0bdca450688b63ddf6a45b0a 20-Apr-2009 Dan Gohman <gohman@apple.com> Don't discard an AssemblyAnnotationWriter when writing GlobalValues,
which include Functions, where it can be quite useful to use an
AssemblyAnnotationWriter.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69598 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
266c7bbbbcc4b326dea82e577de1a415d6acc23e 13-Apr-2009 Chris Lattner <sabre@nondot.org> Add a new "available_externally" linkage type. This is intended
to support C99 inline, GNU extern inline, etc. Related bugzilla's
include PR3517, PR3100, & PR2933. Nothing uses this yet, but it
appears to work.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5a30f4f84a2cc3fab063514c5f3358c068b6d705 04-Apr-2009 Nick Lewycky <nicholas@mxc.ca> Remove bogus include.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
21cc4460efa104e8591b05a90f20130291614344 04-Apr-2009 Nick Lewycky <nicholas@mxc.ca> Add support for embedded metadata to LLVM. This introduces two new types of
Constant, MDString and MDNode which can only be used by globals with a name
that starts with "llvm." or as arguments to a function with the same naming
restriction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1b25cb2416c46a6cebf2a6c52235e9fe46a10d11 23-Mar-2009 Dale Johannesen <dalej@apple.com> Fix internal representation of fp80 to be the
same as a normal i80 {low64, high16} rather
than its own {high64, low16}. A depressing number
of places know about this; I think I got them all.
Bitcode readers and writers convert back to the old
form to avoid breaking compatibility.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67562 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f871ccb853a2ccbe8675c912330c041b318be8cd 23-Mar-2009 Dan Gohman <gohman@apple.com> Now that errs() is properly non-buffered, there's no need to
explicitly flush it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67526 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
042348343e8c10b6cd60d2dca2b95ba27428ddc2 19-Mar-2009 Nick Lewycky <nicholas@mxc.ca> Fix a couple glaring whitespace issues. This file isn't internally consistent
either.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67288 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
34a408639fbdb41add1a86af689c73fb4e9947a8 15-Mar-2009 Nick Lewycky <nicholas@mxc.ca> Remove obviously redundant call.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67023 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9a507cd915e6460bc7dadee2185c53df326274c1 13-Mar-2009 Bill Wendling <isanbard@gmail.com> Revert r66920. It was causing failures in the self-hosting buildbot (in release
mode).

Running /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/dg.exp ...
FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/crash-narrowfunctiontest.ll
Failed with signal(SIGBUS) at line 1
while running: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/crash-narrowfunctiontest.ll -bugpoint-crashcalls -silence-passes > /dev/null
0 bugpoint 0x0035dd25 llvm::sys::SetInterruptFunction(void (*)()) + 85
1 bugpoint 0x0035e382 llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) + 706
2 libSystem.B.dylib 0x92f112bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1829694831
4 bugpoint 0x00021d1c main + 92
5 bugpoint 0x00002106 start + 54
6 bugpoint 0x00000004 start + 18446744073709543220
Stack dump:
0. Program arguments: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/crash-narrowfunctiontest.ll -bugpoint-crashcalls -silence-passes

FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/misopt-basictest.ll
Failed with signal(SIGBUS) at line 1
while running: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/misopt-basictest.ll -dce -bugpoint-deletecalls -simplifycfg -silence-passes
0 bugpoint 0x0035dd25 llvm::sys::SetInterruptFunction(void (*)()) + 85
1 bugpoint 0x0035e382 llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) + 706
2 libSystem.B.dylib 0x92f112bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1829694831
4 bugpoint 0x00021d1c main + 92
5 bugpoint 0x00002106 start + 54
6 bugpoint 0x00000006 start + 18446744073709543222
Stack dump:
0. Program arguments: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/misopt-basictest.ll -dce -bugpoint-deletecalls -simplifycfg -silence-passes

FAIL: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/remove_arguments_test.ll
Failed with signal(SIGBUS) at line 1
while running: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/remove_arguments_test.ll -bugpoint-crashcalls -silence-passes
0 bugpoint 0x0035dd25 llvm::sys::SetInterruptFunction(void (*)()) + 85
1 bugpoint 0x0035e382 llvm::sys::RemoveFileOnSignal(llvm::sys::Path const&, std::string*) + 706
2 libSystem.B.dylib 0x92f112bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1829694831
4 bugpoint 0x00021d1c main + 92
5 bugpoint 0x00002106 start + 54
Stack dump:
0. Program arguments: bugpoint /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/test/BugPoint/remove_arguments_test.ll -bugpoint-crashcalls -silence-passes

--- Reverse-merging (from foreign repository) r66920 into '.':
U include/llvm/Support/CallSite.h
U include/llvm/Instructions.h
U lib/Analysis/IPA/GlobalsModRef.cpp
U lib/Analysis/IPA/Andersens.cpp
U lib/Bitcode/Writer/BitcodeWriter.cpp
U lib/VMCore/Instructions.cpp
U lib/VMCore/Verifier.cpp
U lib/VMCore/AsmWriter.cpp
U lib/Transforms/Utils/LowerInvoke.cpp
U lib/Transforms/Scalar/SimplifyCFGPass.cpp
U lib/Transforms/IPO/PruneEH.cpp
U lib/Transforms/IPO/DeadArgumentElimination.cpp



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b14cda3c0dea98bdd44c2f209afaf4fb36d42a8a 13-Mar-2009 Gabor Greif <ggreif@gmail.com> Second installment of "BasicBlock operands to the back"
changes.

For InvokeInst now all arguments begin at op_begin().
The Callee, Cont and Fail are now faster to get by
access relative to op_end().

This patch introduces some temporary uglyness in CallSite.
Next I'll bring CallInst up to a similar scheme and then
the uglyness will magically vanish.

This patch also exposes all the reliance of the libraries
on InvokeInst's operand ordering. I am thinking of taking
care of that too.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66920 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4dc2b39bf89d7c87868008ef8a0f807e0419aca6 11-Mar-2009 Duncan Sands <baldrick@free.fr> It makes no sense to have a ODR version of common
linkage, so remove it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66690 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5f4ee1fc5d00ae55c30fa2ce450c69be4c6d6e63 11-Mar-2009 Duncan Sands <baldrick@free.fr> Remove the one-definition-rule version of extern_weak
linkage: this linkage type only applies to declarations,
but ODR is only relevant to globals with definitions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66650 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
667d4b8de6dea70195ff12ef39a4deebffa2f5c7 07-Mar-2009 Duncan Sands <baldrick@free.fr> Introduce new linkage types linkonce_odr, weak_odr, common_odr
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66339 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d2b6cb0a2b6e5994ff871027617c5efd69f7e3ad 01-Mar-2009 Chris Lattner <sabre@nondot.org> simplify handling "don't print top level name" processing, so that we get
stuff like %A = type { %A*} instead of an upref.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
884858608b0107df56e671406d280e9617988f36 01-Mar-2009 Chris Lattner <sabre@nondot.org> walk type symbol table also, so we get:

type opaque ; type %0
%C = type { %0, %0 }

instead of:

%C = type { opaque, opaque }

when appropriate.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65742 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
413fd2304db8b6fa3113e5f70d925087f27cbf84 01-Mar-2009 Chris Lattner <sabre@nondot.org> Fix a long-standing bug and misfeature of the disassembler: when dealing with a
stripped .bc file, it didn't make any attempt to try to reuse anonymous types.
This causes an amazing type explosion due to types getting duplicated everywhere
they are referenced and other problems.

This also caused correctness issues, because opaque types are unique for each time
they are uttered in the file. This means that stripping a .bc file could produce
a .ll file that could not be assembled (e.g. 2009-02-28-StripOpaqueName.ll).

This patch fixes both of these issues.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65738 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e9fa33eb6629aea72cd59560216bb6a7b8ebc689 01-Mar-2009 Chris Lattner <sabre@nondot.org> move type name population out of TypePrinting class into a static
AsmWriter.cpp method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
87185e82f683cf3c046ddf974513d5a286422f5f 01-Mar-2009 Chris Lattner <sabre@nondot.org> switch to densemap for pointer->word map.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65735 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8ab55b747d03f278c7cbed6ddb5b1378b97281f8 01-Mar-2009 Chris Lattner <sabre@nondot.org> make this work when constructed with a null module*


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65733 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d8030a7179a0d301dd3fb4c42c65a8f01dfe398e 28-Feb-2009 Chris Lattner <sabre@nondot.org> expose TypePrinting as a public API.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65729 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
30794269d5ba15613d4e013d9fe1eb9e892fa6da 28-Feb-2009 Chris Lattner <sabre@nondot.org> rename 'Result' to 'OS' in CalcTypeName for consistency


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65724 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0f7364b4aa15263827af49d046fd6147ac769eef 28-Feb-2009 Chris Lattner <sabre@nondot.org> do not embed the raw_ostream into TypePrinting, pass it as an argument to print etc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
583ffd878744e27b2ced28d67026c6ad83175ef2 28-Feb-2009 Chris Lattner <sabre@nondot.org> stop calling Type::getDescription().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65722 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6d4306e63c2ca40a0482bf74a077540bb9cda25e 28-Feb-2009 Chris Lattner <sabre@nondot.org> simplifications


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65721 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c287137ce7455c63be0075e0d5aba0bab4f125ea 28-Feb-2009 Chris Lattner <sabre@nondot.org> Change WriteTypeSymbolic to not put a space out before types, also, remove
the old std::ostream version.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65720 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
534361e7e17b34c6ac043a2c8bea626a5e9f1657 28-Feb-2009 Chris Lattner <sabre@nondot.org> make CalcTypeName take a stream instead of a string to concat onto,
eliminate redundant opaque handling code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a32c3e4b1d2acf5ab750fa8979f122688ec73573 28-Feb-2009 Chris Lattner <sabre@nondot.org> remove a bunch of nearly-duplicated code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65715 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
36942d7383df0ab00f7f5b16c04f330aedf5c9f1 28-Feb-2009 Chris Lattner <sabre@nondot.org> fix indentation, remove dead integer case.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65714 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b840cace77b2c6afe9106698b1cb003a04e53b41 28-Feb-2009 Chris Lattner <sabre@nondot.org> pull calcTypeName into TypePrinting class, make its type stack
be a smallvector instead of vector.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65713 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b1b9d91a390f805e0687dff81fdea653cc8cadde 28-Feb-2009 Chris Lattner <sabre@nondot.org> inline method into its only use and simplify the result.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65712 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
88344e63d4bd98a3c9a82cf84b73cd28ecef46a1 28-Feb-2009 Chris Lattner <sabre@nondot.org> simplify condition


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65711 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9cc3446e570f71e8f55c8db2ca2ce580ad54d607 28-Feb-2009 Chris Lattner <sabre@nondot.org> start refactoring the .ll printer: introduce a new TypePrinting class
and move all related stuff to it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65710 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f570e621ab6eec6c7656cc4c511e19aba12b42cd 18-Feb-2009 Chris Lattner <sabre@nondot.org> add proper asmwriter and asmparser support for anonymous functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7dfa07f794a5dd4479e80896ef626bbe69455908 11-Feb-2009 Dan Gohman <gohman@apple.com> Don't print extra spaces in vector and array constants. This makes
them visually more consistent with vector and array types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64267 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ccd27fb84b0ac13ad1d30b17cbeb87a0ea934154 09-Feb-2009 Gabor Greif <ggreif@gmail.com> make sure that BranchInst::getSuccessor() does not assert in cast<>
even if the underlying operand is NULL. This may happen in debugging context
within opt with partial loop unrolling (see test/Transforms/LoopUnroll/partial.ll).
After this fix I can resubmit the (backed out) r63459:
* lib/VMCore/AsmWriter.cpp: use precise accessors.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64142 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9411cd2570e6b29ce645f9a2bf4955d32d4fd342 31-Jan-2009 Gabor Greif <ggreif@gmail.com> back out my previous change, it exposes a latent bug. investigating

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3edbcada5733c2c13f71b72528e81c407e39aa42 31-Jan-2009 Gabor Greif <ggreif@gmail.com> use precise accessors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
541ed9fd02ea48d2739f4a9dd681ba2d5da26886 21-Jan-2009 Dale Johannesen <dalej@apple.com> Do not use host floating point types when emitting
ASCII IR; loading and storing these can change the
bits of NaNs on some hosts. Remove or add warnings
at a few other places using host floating point;
this is a bad thing to do in general.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62712 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bb46f52027416598a662dc1c58f48d9d56b1a65b 15-Jan-2009 Rafael Espindola <rafael.espindola@gmail.com> Add the private linkage.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62279 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6ad2b2a3d20c667e01535fed4bc7f4753aa6fc85 15-Jan-2009 Nuno Lopes <nunoplopes@sapo.pt> add comment to explain my previous commit, as asked by Chris

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62272 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a8c78a9e89afcca4f003c55bcdbd41a23ecd5c8d 14-Jan-2009 Nuno Lopes <nunoplopes@sapo.pt> fix crash in the case when some arg is null

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62236 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
df98617b23315e427cc4fad8ccfdd50d68bec2f9 02-Jan-2009 Chris Lattner <sabre@nondot.org> Reimplement the old and horrible bison parser for .ll files with a nice
and clean recursive descent parser.

This change has a couple of ramifications:
1. The parser code is about 400 lines shorter (in what we maintain, not
including what is autogenerated).
2. The code should be significantly faster than the old code because we
don't have to work around bison's poor handling of datatypes with
ctors/dtors. This also makes the code much more resistant to memory
leaks.
3. We now get caret diagnostics from the .ll parser, woo.
4. The actual diagnostics emited from the parser are completely different
so a bunch of testcases had to be updated.
5. I now disallow "%ty = type opaque %ty = type i32". There was no good
reason to support this, it was just an accident of the old
implementation. I have no reason to think that anyone is actually using
this.
6. The syntax for sticking a global variable has changed to make it
unambiguous. I don't think anyone is depending on this since only clang
supports this and it is not solid yet, so I'm not worried about anything
breaking.
7. This gets rid of the last use of bison, and along with it the .cvs files.
I'll prune this from the makefiles as a subsequent commit.

There are a few minor cleanups that can be done after this commit (suggestions
welcome!) but this passes dejagnu testing and is ready for its time in the
limelight.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61558 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d71703deec9e3fe90833e82e0c8b6bf7e5af55fd 03-Dec-2008 Dan Gohman <gohman@apple.com> Have PseudoSourceValue override Value::dump, so that it works
on PseudoSourceValue values. This also fixes a FIXME in
lib/VMCode/AsmWriter.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60507 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c6a1346d7c6bb761f9e6c2c85b53febba1cb15db 10-Nov-2008 Chris Lattner <sabre@nondot.org> Use utohex_buffer instead of utohexstr to avoid creating a temporary
string in the .ll and .s printers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e9da133ae0a3ea5bbadd14f33c5005a4e25422ea 28-Oct-2008 Daniel Dunbar <daniel@zuster.org> Reuse PrintEscapedString for printing names in .ll
- One functionality change, '\\' in a name is now printed as a hex
escape instead of "\\\\". This is consistent with other users of
PrintEscapedString.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58343 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f4db3a51c7d806f7dcef5d9625e7cdf7f122dca9 22-Oct-2008 Daniel Dunbar <daniel@zuster.org> Privatize PrintModulePass and PrintFunctionPass and add
createPrintModulePass and createPrintFunctionPass.
- So clients who compile w/o RTTI can use them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2b6c3d9ff13180e84301da5b7d17c755704fbec0 15-Oct-2008 Dan Gohman <gohman@apple.com> Fix a missing space after the return type in invoke statements.
This fixes PR2894.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57589 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
76dea9547d6aadbabbcb597b5e1d3f4ec529d031 15-Oct-2008 Daniel Dunbar <daniel@zuster.org> Prevent assert when using '"' in names (via hexadecimal).

Update LangRef to mention \xx quoting in names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57538 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cad3580e99ae045e138a1d57de589a01c1f9b296 15-Oct-2008 Daniel Dunbar <daniel@zuster.org> Change getLLVMName to use raw_ostream & PrintLLVMName.
- Avoids duplicated quotification code.
- Remove QuoteNameIfNeeded.
- No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7111b02c734c992b8c97d9918118768026dad79e 09-Oct-2008 Dale Johannesen <dalej@apple.com> Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does. No functional
change.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57325 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
795daece23cdc66bc7c16e9a2043dd4a4d0bbfc0 01-Oct-2008 Chris Lattner <sabre@nondot.org> add a new form of Type::dump that takes a module for type names,
patch provided by Tomas Lindquist Olsen!




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56929 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
aeaf245db33fa8bccdd14bb8899ee0585a75a7b1 01-Oct-2008 Dan Gohman <gohman@apple.com> Make some implicit conversions explicit, to avoid compiler warnings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
10b49489bff3f119ccbfba55df9fb14a8a784078 01-Oct-2008 Dan Gohman <gohman@apple.com> Don't prepend a space character for constants in Value::print.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56920 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
652203f3f3b6dd5062bb450d189a80d8aaa51693 29-Sep-2008 Devang Patel <dpatel@apple.com> Support inreg, zext and sext as return value attributes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2c9c3e73682749016d5885b67ff719f634b37d58 27-Sep-2008 Devang Patel <dpatel@apple.com> Implement function notes as function attributes.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
19c874638d9478a5d5028854817a5ee72293bb2b 27-Sep-2008 Devang Patel <dpatel@apple.com> Now Attributes are divided in three groups
- return attributes - inreg, zext and sext
- parameter attributes
- function attributes - nounwind, readonly, readnone, noreturn

Return attributes use 0 as the index.
Function attributes use ~0U as the index.

This patch requires corresponding changes in llvm-gcc and clang.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56704 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
533d3b3f37194f0a2af0c52cd748d197bd3a30fa 27-Sep-2008 Dan Gohman <gohman@apple.com> Fix missing whitespace in the printing of function notes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56702 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
86098bd6a63d2cdf0c9be9ef3151bd2728281fd7 26-Sep-2008 Dale Johannesen <dalej@apple.com> Add "inreg" field to CallSDNode (doesn't increase
its size). Adjust various lowering functions to
pass this info through from CallInst. Use it to
implement sseregparm returns on X86. Remove
X86_ssecall calling convention.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56677 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0598866c052147c31b808391f58434ce3dbfb838 25-Sep-2008 Devang Patel <dpatel@apple.com> Large mechanical patch.

s/ParamAttr/Attribute/g
s/PAList/AttrList/g
s/FnAttributeWithIndex/AttributeWithIndex/g
s/FnAttr/Attribute/g

This sets the stage
- to implement function notes as function attributes and
- to distinguish between function attributes and return value attributes.

This requires corresponding changes in llvm-gcc and clang.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56622 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0c8927efed7576d8992c3950601fc19394603a75 25-Sep-2008 Dan Gohman <gohman@apple.com> Avoid a spurious extra space character when printing empty structs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56616 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
20bcaff6a7f93a9894f7233c449b016bafe93b26 24-Sep-2008 Devang Patel <dpatel@apple.com> Put FN_NOTE_AlwaysInline and others in FnAttr namespace.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56527 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
dd4924c564c7a661b78b604ebf16dfef7aa62b35 24-Sep-2008 Devang Patel <dpatel@apple.com> Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace.
Do not check isDeclaration() in hasNote(). It is clients' responsibility.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56524 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
eaf42abab6d465c38891345d999255871cf03943 24-Sep-2008 Devang Patel <dpatel@apple.com> s/ParameterAttributes/Attributes/g



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56513 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d9b4a5f859188cbb168c223071b413e58c53c925 24-Sep-2008 Devang Patel <dpatel@apple.com> Use parameter attribute store (soon to be renamed) for
Function Notes also. Function notes are stored at index ~0.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56511 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3ee8fc964952a65bcb3668b85938c46f90631e42 23-Sep-2008 Duncan Sands <baldrick@free.fr> Rationalize the names of passes that print information:
-callgraph => print-callgraph
-callscc => print-callgraph-sccs
-cfgscc => print-cfg-sccs
-externalfnconstants => print-externalfnconstants
-print => print-function
-print-alias-sets (no change)
-print-callgraph => dot-callgraph
-print-cfg => dot-cfg
-print-cfg-only => dot-cfg-only
-print-dom-info (no change)
-printm => print-module
-printusedtypes => print-used-types


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56487 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f3ba70861ccf00b1072ae1b6ade3ebe2da6cff40 23-Sep-2008 Devang Patel <dpatel@apple.com> Add hasNote() to check note associated with a function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56477 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8dae138d06df9cecbee421ef645d0b74f9ac13d7 14-Sep-2008 Dan Gohman <gohman@apple.com> Fix WriteAsOperand to not emit a leading space character. Adjust
its callers to emit a space character before calling it when a
space is needed.

This fixes several spurious whitespace issues in
ScalarEvolution's debug dumps. See the test changes for
examples.

This also fixes odd space-after-tab indentation in the output
for switch statements, and changes calls from being printed like
this:
call void @foo( i32 %x )
to this:
call void @foo(i32 %x)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
72ab076e671bee289e9e83f23b382131ea5c1560 04-Sep-2008 Devang Patel <dpatel@apple.com> Avoid extra comma.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55742 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
52e89dd4e2c0e32877eb9157b3cd0d402a2b6194 04-Sep-2008 Devang Patel <dpatel@apple.com> Parse and print opt_size note.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cb7f483d8c1e0ee48969e13aa3929dd172c97eff 03-Sep-2008 Devang Patel <dpatel@apple.com> s/FP_AlwaysInline/FN_NOTE_AlwaysInline/g


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55676 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1b47e48a6412de57b20d8b3869796e3b7ce2dcaa 02-Sep-2008 Devang Patel <dpatel@apple.com> Use bitwise AND.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55656 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
94bdae14ba6672f5afb15310424efeba21a01c77 02-Sep-2008 Devang Patel <dpatel@apple.com> Print function notes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55647 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
828db8a2f90e0e3faf27c1fe69a632c666e3a343 29-Aug-2008 Chris Lattner <sabre@nondot.org> Asmprint nameless instructions as:

%4 = add ...

instead of:

add ... ; 4

This makes opt -print-cfg output actually usable and makes .ll files
generally easier to read. This fixes PR2480


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55541 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7059e530edcf3294315f02751c9df5e485f2932c 25-Aug-2008 Chris Lattner <sabre@nondot.org> Fix pasto (values -> types) noticed by Josh Conner


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3518175d4256df88fcaf133c0ed9fb166db7993c 25-Aug-2008 Chris Lattner <sabre@nondot.org> flush stream after dumping.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55301 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5a1c68c776076047060a6c7228520528539ba93b 24-Aug-2008 Chris Lattner <sabre@nondot.org> add a hack to temporarily allow pseudo source values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55289 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ab49ee752ec37f586e45c999eca1e29e32697cb7 24-Aug-2008 Chris Lattner <sabre@nondot.org> minor cleanups.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55267 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
944fac71e082cc2664cc71b4d3f6c72bab7143fb 24-Aug-2008 Chris Lattner <sabre@nondot.org> Switch the asmprinter (.ll) and all the stuff it requires over to
use raw_ostream instead of std::ostream. Among other goodness,
this speeds up llvm-dis of kc++ with a release build from 0.85s
to 0.49s (88% faster).

Other interesting changes:
1) This makes Value::print be non-virtual.
2) AP[S]Int and ConstantRange can no longer print to ostream directly,
use raw_ostream instead.
3) This fixes a bug in raw_os_ostream where it didn't flush itself
when destroyed.
4) This adds a new SDNode::print method, instead of only allowing "dump".


A lot of APIs have both std::ostream and raw_ostream versions, it would
be useful to go through and systematically anihilate the std::ostream
versions.

This passes dejagnu, but there may be minor fallout, plz let me know if
so and I'll fix it.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4667b71f9380afad56cbdc1fd19ca32334086d2c 19-Aug-2008 Chris Lattner <sabre@nondot.org> more cleanups, random methods shouldn't return ostreams.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54984 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
52b26de325e32c71159376853384789b7646eaf4 19-Aug-2008 Chris Lattner <sabre@nondot.org> more cleanup, eliminate getLLVMName when printing out
type names at the top of the file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54983 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cfb5a200d6c6e5cd7c158014497e50010248c1d9 19-Aug-2008 Chris Lattner <sabre@nondot.org> random cleanups, factor some printing code for linkage and visibility


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54982 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
242330371b2b7ab9d5a6c4f5f93ec82c514cc09a 19-Aug-2008 Chris Lattner <sabre@nondot.org> Change WriteTypeSymbolic/WriteAsOperand to return void instead of
an ostream, which is just weird.

Rename SC_DEBUG -> ST_DEBUG

Remove static indentation strangeness from WriteConstantInt. This makes it
so that large structs are not broken down and printed on multiple lines. If
there is demand for this to return, there are better ways to implement this.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54981 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6ab910b946b6af54384662fb404d6e9b22fa5727 19-Aug-2008 Chris Lattner <sabre@nondot.org> rearrange code and make more legible.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54976 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b64871a6ad4752309d45cb3e25ad564c5d8c1d80 19-Aug-2008 Chris Lattner <sabre@nondot.org> put SlotTracker in an anon namespace since it is private.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54975 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0d9574a1cd68c6e41f725c22657b8bb3f8d74117 19-Aug-2008 Chris Lattner <sabre@nondot.org> Reid had to call this class "slot machine" out of some strange reference
to the gambling device. Name it something more meaningful.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d7cbd1574f1fa04a19d4fc3c82d78cf2f1e7c309 18-Aug-2008 Chris Lattner <sabre@nondot.org> Fix a bug daniel pointed out to me, where asmprinter started
printing ascii code for hex numbers instead of the hex numbers
themselves.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54936 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5eca075b74d62c621b160aa216b4cd50829a2cc7 17-Aug-2008 Gordon Henriksen <gordonhenriksen@mac.com> Rename some GC classes so that their roll will hopefully be clearer.

In particular, Collector was confusing to implementors. Several
thought that this compile-time class was the place to implement
their runtime GC heap. Of course, it doesn't even exist at runtime.
Specifically, the renames are:

Collector -> GCStrategy
CollectorMetadata -> GCFunctionInfo
CollectorModuleMetadata -> GCModuleInfo
CollectorRegistry -> GCRegistry
Function::getCollector -> getGC (setGC, hasGC, clearGC)

Several accessors and nested types have also been renamed to be
consistent. These changes should be obvious.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
addd44427cb1b46d85f2eb31c267dd1d43914252 17-Aug-2008 Chris Lattner <sabre@nondot.org> getLLVMName is only used for types now, which always pass in LocalPrefix. Specialize on it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54897 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9225507cda6c634ded5054f44a75835a0c8cf62a 17-Aug-2008 Chris Lattner <sabre@nondot.org> switch valuemap's from std::map to densemap. This speeds up llvm-dis
on a stripped kc++ .bc file from 0.83 to 0.77s (8%)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54896 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
95e4bd81d7ad15cb7610cfdb869e357b3909a313 17-Aug-2008 Chris Lattner <sabre@nondot.org> avoid an extraneous std::string construction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fad86b003a839cef40ec8ce8408322f4913368ca 17-Aug-2008 Chris Lattner <sabre@nondot.org> Rework the routines that convert AP[S]Int into a string. Now, instead of
returning an std::string by value, it fills in a SmallString/SmallVector
passed in. This significantly reduces string thrashing in some cases.

More specifically, this:
- Adds an operator<< and a print method for APInt that allows you to
directly send them to an ostream.
- Reimplements APInt::toString to be much simpler and more efficient
algorithmically in addition to not thrashing strings quite as much.

This speeds up llvm-dis on kc++ by 7%, and may also slightly speed up the
asmprinter. This also fixes a bug I introduced into the asmwriter in a
previous patch w.r.t. alias printing.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c97536e6a7834212aafd25f2673234fc88b5e5bb 17-Aug-2008 Chris Lattner <sabre@nondot.org> avoid string thrashing when formatting names in output. This
speeds up release-asserts llvm-dis on kc++ from 1.86s to 1.04s (~79%)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
45d4c73aa75fa9c6362b5c47ac520f2b2c2c1561 17-Aug-2008 Chris Lattner <sabre@nondot.org> random cleanups.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54866 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7dc00abd866ded910f830852c109f0ee8fceb751 13-Aug-2008 Dale Johannesen <dalej@apple.com> Add read/write support for X86's sseregparm.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54744 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c3be0fd8c39910e3365ec0c84042b284501f77ad 05-Aug-2008 Dan Gohman <gohman@apple.com> Fix the AsmWriter to not print extra spaces after parameter attributes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54351 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fc74abfba5128544a750fce22fdf13eb0403e3ce 23-Jul-2008 Dan Gohman <gohman@apple.com> Enable first-class aggregates support.

Remove the GetResultInst instruction. It is still accepted in LLVM assembly
and bitcode, where it is now auto-upgraded to ExtractValueInst. Also, remove
support for return instructions with multiple values. These are auto-upgraded
to use InsertValueInst instructions.

The IRBuilder still accepts multiple-value returns, and auto-upgrades them
to InsertValueInst instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53941 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
24f07dc6e464aa82694fd3dd5fc88dc139d16b7c 03-Jun-2008 Dale Johannesen <dalej@apple.com> Prevent a crash in debug dumps.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51910 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
995be7d07a0ed1f70a93b2a2e7f445461162e8a5 31-May-2008 Dan Gohman <gohman@apple.com> AsmWriter support for insertvalue/extractvalue. These instructions can
now round-trip through assembly and bitcode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
aafce77b17d340aace52bcd49d1944109d82f14a 14-May-2008 Dale Johannesen <dalej@apple.com> Add CommonLinkage; currently tentative definitions
are represented as "weak", but there are subtle differences
in some cases on Darwin, so we need both. The intent
is that "common" will behave identically to "weak" unless
somebody changes their target to do something else.
No functional change as yet.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ac80ade1580378e484e24c9f66d2fa5b058e5891 12-May-2008 Nate Begeman <natebegeman@mac.com> Add two new instructions to the llvm IR, vicmp and vfcmp. see updated LangRef
for details. CodeGen support coming in a follow up patch


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9b38d7db6d9fbb5bf9d16bec590a17c5895453e1 12-May-2008 Dan Gohman <gohman@apple.com> Update comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
280a6e607d8eb7401749a92db624a82de47da777 25-Apr-2008 Nick Lewycky <nicholas@mxc.ca> Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989
r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50265 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
eb411291fa7614496ec8b51b0ced9f6cc2b78313 22-Apr-2008 Chris Lattner <sabre@nondot.org> more fallout from Nicholas' asmprinter patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50078 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a1b5858fda38cfe5b30055a87020b6d5f7023238 21-Apr-2008 Chris Lattner <sabre@nondot.org> another bug introduced in r47802 by nicholas, for no apparent reason.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50031 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
96c5b2f8c75b10f7e61ad90582d72c500d5c7d2d 21-Apr-2008 Chris Lattner <sabre@nondot.org> fix a bug introduced by Nicholas' "unwinds to" stuff: we
lost newlines between blocks.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50024 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
48325f4b0892859844f9dc0c6e9d2606e381ecc4 16-Apr-2008 Dale Johannesen <dalej@apple.com> Don't read off end of the input array.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49799 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
591858a403a71fc5b30bc7b071f18bc0cf327cfc 22-Mar-2008 Anton Korobeynikov <asl@math.spbu.ru> Support chained aliases for LLVM IR printing. This fixes PR2145


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
58d74910c6b82e622ecbb57d6644d48fec5a5c0f 12-Mar-2008 Chris Lattner <sabre@nondot.org> Reimplement the parameter attributes support, phase #1. hilights:

1. There is now a "PAListPtr" class, which is a smart pointer around
the underlying uniqued parameter attribute list object, and manages
its refcount. It is now impossible to mess up the refcount.
2. PAListPtr is now the main interface to the underlying object, and
the underlying object is now completely opaque.
3. Implementation details like SmallVector and FoldingSet are now no
longer part of the interface.
4. You can create a PAListPtr with an arbitrary sequence of
ParamAttrsWithIndex's, no need to make a SmallVector of a specific
size (you can just use an array or scalar or vector if you wish).
5. All the client code that had to check for a null pointer before
dereferencing the pointer is simplified to just access the
PAListPtr directly.
6. The interfaces for adding attrs to a list and removing them is a
bit simpler.

Phase #2 will rename some stuff (e.g. PAListPtr) and do other less
invasive changes.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48289 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9be3c97183f832d084bcf0fab82f7cd8aae08385 10-Mar-2008 Nick Lewycky <nicholas@mxc.ca> Turn unwind_to into "unwinds to".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48123 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6494768ffcdf75e6e69a7955282db9ab9ab2e6fb 04-Mar-2008 Devang Patel <dpatel@apple.com> Print types for all ret operands.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47911 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fc82fabe00b0b820e3c0d7fc9e289bace0295f11 02-Mar-2008 Nick Lewycky <nicholas@mxc.ca> Add an unwind_to field to basic blocks, making them Users instead of Values.
This is the first checkin for PR1269, the new EH infrastructure.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47802 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
377e04b926f187b036b7b7a536f69b6b5d5785e9 23-Feb-2008 Devang Patel <dpatel@apple.com> print getresult operand and its type directly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d7313c560855555796a7a0e1ec39b7c2059e0542 23-Feb-2008 Devang Patel <dpatel@apple.com> Use dyn_cast instead of isa + cast.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47511 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
57ef4f46c182cdbe014d469892090ff50c739cf9 23-Feb-2008 Devang Patel <dpatel@apple.com> To support multiple return values, now ret instruction supports multiple operands instead of one aggregate operand.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
22c3979fcaa7ff19c44253eb9b0b0160dfef0aa4 22-Feb-2008 Dale Johannesen <dalej@apple.com> Split ParameterAttributes.h, putting the complicated
stuff into ParamAttrsList.h. Per feedback from
ParamAttrs changes.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47504 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
452743e5e404aee5d42cb5573d7939f49a32cac9 22-Feb-2008 Devang Patel <dpatel@apple.com> Print getresult instruction properly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ec25f24dbf461576d459bb4e297716dc82a17c33 22-Feb-2008 Devang Patel <dpatel@apple.com> Print ret instruction that returns aggregates.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47472 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0d51e7ec0d2dcbea9e304fd58deb05f37eb75635 19-Feb-2008 Dale Johannesen <dalej@apple.com> Expand ParameterAttributes to 32 bits (in preparation
for adding alignment info, not there yet). Clean up
interfaces to reference ParameterAttributes consistently.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47342 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1327f69d98a2cb527b275ffc93080cf31ddf6dc5 29-Jan-2008 Dan Gohman <gohman@apple.com> Add explicit keywords.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46506 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
585e64e63e37eefaf8b7029247762e0fed20a983 15-Jan-2008 Bill Wendling <isanbard@gmail.com> Reformatted. It was confusing the other way. No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46009 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4ee451de366474b9c228b4e5fa573795a715216d 29-Dec-2007 Chris Lattner <sabre@nondot.org> Remove attribution from file headers, per discussion on llvmdev.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ef989a275c1191f583178c6934f3594e7a9fd3a6 18-Dec-2007 Christopher Lamb <christopher.lamb@gmail.com> Don't forget to print address space qualifiers when printing out the type table! Thanks to Gordon Henriksen for pointing this out.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45147 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fe63fb986dc9510c5d68f2442edab9574e9e50d0 11-Dec-2007 Christopher Lamb <christopher.lamb@gmail.com> Implement address space attribute for LLVM pointer types. Address spaces are
regions of memory that have a target specific relationship, as described in the
Embedded C Technical Report.

This also implements the 2007-12-11-AddressSpaces test,
which demonstrates how address space attributes can be used in LLVM IR.

In addition, this patch changes the bitcode signature for stores (in a backwards
compatible manner), such that the pointer type, rather than the pointee type, is
encoded. This permits type information in the pointer (e.g. address space) to be
preserved for stores.

LangRef updates are forthcoming.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44858 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
80a75bfae980df96f969f1c05b0c4a80ce975240 10-Dec-2007 Gordon Henriksen <gordonhenriksen@mac.com> Adding a collector name attribute to Function in the IR. These
methods are new to Function:

bool hasCollector() const;
const std::string &getCollector() const;
void setCollector(const std::string &);
void clearCollector();

The assembly representation is as such:

define void @f() gc "shadow-stack" { ...

The implementation uses an on-the-side table to map Functions to
collector names, such that there is no overhead. A StringPool is
further used to unique collector names, which are extremely
likely to be unique per process.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44769 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
dc024674ff96820d6020757b48d47f46d4c07db2 27-Nov-2007 Duncan Sands <baldrick@free.fr> Fix PR1146: parameter attributes are longer part of
the function type, instead they belong to functions
and function calls. This is an updated and slightly
corrected version of Reid Spencer's original patch.
The only known problem is that auto-upgrading of
bitcode files doesn't seem to work properly (see
test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully
a bitcode guru (who might that be? :) ) will fix it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44359 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b28a6dce6d57e05aa25520915726f82d2b3dc08d 18-Nov-2007 Chris Lattner <sabre@nondot.org> print a call to a fastcc function as:
call x86_fastcallcc void @func( i32* %X, i64 0 )
not:
callx86_fastcallcc void @func( i32* %X, i64 0 )

This fixes Codegen/X86/fast-cc-merge-stack-adj.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44217 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a471c2ecda37cd1bae0d94e832f002caa7b63216 11-Oct-2007 Dale Johannesen <dalej@apple.com> Next PPC long double bits. First cut at constants.
No compile-time support for constant operations yet,
just format transformations. Make readers and
writers work. Split constants into 2 doubles in
Legalize.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42865 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
693717fbe6d4e0f63bb9927229e26851e4744530 27-Sep-2007 Dale Johannesen <dalej@apple.com> Make temporaries explicit to avoid premature
destruction of compiler-created ones.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9d5f45607793052bf5b4436d1b43013fab9999ac 12-Sep-2007 Dale Johannesen <dalej@apple.com> Revise previous patch per review comments.
Next round of x87 long double stuff.
Getting close now, basically works.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
43421b3dd70af5b70e71816521f37502c397cc65 06-Sep-2007 Dale Johannesen <dalej@apple.com> Next round of APFloat changes.
Use APFloat in UpgradeParser and AsmParser.
Change all references to ConstantFP to use the
APFloat interface rather than double. Remove
the ConstantFP double interfaces.
Use APFloat functions for constant folding arithmetic
and comparisons.
(There are still way too many places APFloat is
just a wrapper around host float/double, but we're
getting there.)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3aa6066d010b2ccfd58f07fb1be874becf5807c2 20-Aug-2007 Chris Lattner <sabre@nondot.org> simplify code and print visibility for declarations.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41173 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4ad513ca153430c3a7f36be1ef43af04534e1f5d 22-May-2007 Reid Spencer <rspencer@reidspencer.com> Reinstate the patch for escaping non-printing characters and allow for
\\ to escape \. All these cases are now handled by the AsmParser.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37295 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9621921acb971aa5c30a4800dd99538361c45eba 22-May-2007 Chris Lattner <sabre@nondot.org> temporarily revert reid's asmwriter patch, it is missing the asmparser piece
that decodes the escape sequences, thus breaking all cases that use them.

This fixes test/Assembler/2007-05-21-Escape.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37284 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a24f6dfc90c6e9061f49b071f6e6efddbce416a4 19-May-2007 Reid Spencer <rspencer@reidspencer.com> Get the order of the hext digits right!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
922d0bcf8b764d23cbbd5ba88df53d8340ae9304 19-May-2007 Reid Spencer <rspencer@reidspencer.com> Adjust how LLVM names are produced:
1. Always use % for local and @ for global.
2. Replace NameNeedsQuotes with QuoteNameIfNeeded so that any adjustments
to the name can be done in one pass.
3. Implement generation of hex escapes so we don't get "wonky" characters
in the output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37260 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1997473cf72957d0e70322e2fe6fe2ab141c58a6 03-May-2007 Devang Patel <dpatel@apple.com> Drop 'const'


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36662 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3e15bf33e024b9df9e89351a165acfdb1dde51ed 02-May-2007 Devang Patel <dpatel@apple.com> Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
794fd75c67a2cdc128d67342c6d88a504d186896 01-May-2007 Devang Patel <dpatel@apple.com> Do not use typeinfo to identify pass in pass manager.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36632 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6f9896fcc81a1128b5f436d1763cc6213745adf1 29-Apr-2007 Anton Korobeynikov <asl@math.spbu.ru> Implement protected visibility. This partly implements PR1363. Linker
should be taught to deal with protected symbols.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36565 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c6c98af9e5814e8066c82f20ca11cf646a5fc289 29-Apr-2007 Anton Korobeynikov <asl@math.spbu.ru> Implement review feedback


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36564 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a80e1181b78183dc36ec6568559d38faa86981f0 28-Apr-2007 Anton Korobeynikov <asl@math.spbu.ru> Implement review feedback. Aliasees can be either GlobalValue's or
bitcasts of them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
69dacfce54473414c1a863d19ab8f2785cd2a4f2 26-Apr-2007 Chris Lattner <sabre@nondot.org> print aliases before functions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8b0a8c84da2030ee8f4440d5b60a8033de691222 25-Apr-2007 Anton Korobeynikov <asl@math.spbu.ru> Implement aliases. This fixes PR1017 and it's dependent bugs. CFE part
will follow.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36435 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
43c7f37942a35398fd1e14b22f435f483a0ee863 22-Apr-2007 Christopher Lamb <christopher.lamb@gmail.com> PR400 work phase 1. Add attributed load/store instructions for volatile/align to LLVM.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4f859aa532dbf061736f9c23e0d0882b5cdfe566 22-Apr-2007 Reid Spencer <rspencer@reidspencer.com> For PR1146:
Make ParamAttrsList objects unique. You can no longer directly create or
destroy them but instead must go through the ParamAttrsList::get()
interface.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c67bdc288aac130d88630f7fa95ceca6bcf95077 21-Apr-2007 Reid Spencer <rspencer@reidspencer.com> Revert Christopher Lamb's load/store alignment changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36309 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2330e4d4c4f8008d17f5a38ac0d7b04e139d4131 21-Apr-2007 Christopher Lamb <christopher.lamb@gmail.com> add support for alignment attributes on load/store instructions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36301 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8dcd2f1a5bbb9151ec05532861be58bf3f078e63 18-Apr-2007 Chris Lattner <sabre@nondot.org> don't access argument list of prototypes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c763552299165b88d34a7d4f2d76ff413cbc7f67 12-Apr-2007 Lauro Ramos Venancio <lauro.venancio@gmail.com> Implement the "thread_local" keyword.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35950 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
18da0720887527ed570e9703ae5f290beb491ee1 11-Apr-2007 Reid Spencer <rspencer@reidspencer.com> For PR1146:
Put the parameter attributes in their own ParamAttr name space. Adjust the
rest of llvm as a result.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35877 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b138a0657f8739b6ddfeca296ff8c82ffa93b492 09-Apr-2007 Reid Spencer <rspencer@reidspencer.com> For PR1146:
Adjust writing of parameter attributes to use ParamAttrList class.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35808 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
73ad8354ec9dde60ed8eb9b75d57f36ea7e49cca 28-Mar-2007 Reid Spencer <rspencer@reidspencer.com> No need to generate the implementation keyword any more. Its frivolous.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ecb7a77885b174cf4d001a9b48533b3979e7810d 22-Mar-2007 Dan Gohman <gohman@apple.com> Change uses of Function::front to Function::getEntryBlock for readability.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35265 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
590b3c559fd7ca42e3d8c21e834481b0ff12c1a1 19-Mar-2007 Reid Spencer <rspencer@reidspencer.com> For PR1258:
Radically simplify the SlotMachine. There is no need to keep Value planes
around any more. This change causes slot numbering to number all un-named,
non-void values starting at 0 and incrementing monotonically through the
function, regardless of type (including BasicBlocks). Getting slot numbers
is now a single lookup operation instead of a double lookup.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35171 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
914c3bca870e448731b210b528a6a2f450ece772 27-Feb-2007 Reid Spencer <rspencer@reidspencer.com> Adjust to changes in the APInt interface.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34681 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
940685ecf554fcfd03a0b6f66e5acba2a612a70d 27-Feb-2007 Reid Spencer <rspencer@reidspencer.com> Allow the AsmWriter to print out arbitrary precision integers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9d6565a5b1fbc4286d6ee638d8f47a3171a9ed7e 15-Feb-2007 Reid Spencer <rspencer@reidspencer.com> For PR1195:
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34293 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ef9b9a793949469cdaa4ab6d0173136229dcab7b 05-Feb-2007 Reid Spencer <rspencer@reidspencer.com> For PR411:
This patch replaces the SymbolTable class with ValueSymbolTable which does
not support types planes. This means that all symbol names in LLVM must now
be unique. The patch addresses the necessary changes to deal with this and
removes code no longer needed as a result. This completes the bulk of the
changes for this PR. Some cleanup patches will follow.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33918 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ebe57e36dff2dc3a7ceea99202bdb9eb6fe938bc 02-Feb-2007 Reid Spencer <rspencer@reidspencer.com> Fix a comment that needed to change after SHIFT patch landed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33781 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
832254e1c2387c0cbeb0a820b8315fbe85cb003a 02-Feb-2007 Reid Spencer <rspencer@reidspencer.com> Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits
on large integer types. This changes the syntax for llvm assembly to
make shl, ashr and lshr instructions look like a binary operator:
shl i32 %X, 1
instead of
shl i32 %X, i8 1
Additionally, this should help a few passes perform additional optimizations.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33776 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5cbf985dcbc89fba3208e7baf8b6f488b06d3ec9 30-Jan-2007 Reid Spencer <rspencer@reidspencer.com> For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33663 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b10308e440c80dd6ffb4b478f741ff7e5f30cb48 28-Jan-2007 Anton Korobeynikov <asl@math.spbu.ru> Propagate changes from my local tree. This patch includes:
1. New parameter attribute called 'inreg'. It has meaning "place this
parameter in registers, if possible". This is some generalization of
gcc's regparm(n) attribute. It's currently used only in X86-32 backend.
2. Completely rewritten CC handling/lowering code inside X86 backend.
Merged stdcall + c CCs and fastcall + fast CC.
3. Dropped CSRET CC. We cannot add struct return variant for each
target-specific CC (e.g. stdcall + csretcc and so on).
4. Instead of CSRET CC introduced 'sret' parameter attribute. Setting in
on first attribute has meaning 'This is hidden pointer to structure
return. Handle it gently'.
5. Fixed small bug in llvm-extract + add new feature to
FunctionExtraction pass, which relinks all internal-linkaged callees
from deleted function to external linkage. This will allow further
linking everything together.

NOTEs: 1. Documentation will be updated soon.
2. llvm-upgrade should be improved to translate csret => sret.
Before this, there will be some unexpected test fails.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33597 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3702d265b8278c4b67efb4989e6724205908addf 26-Jan-2007 Reid Spencer <rspencer@reidspencer.com> For PR645:
Implement new syntax for local and global symbols. Types and local
symbols use the % prefix. Global variables and functions use the @ prefix.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33523 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9a40c023ccfe28cbaf4f6b2c92f033f2d6536231 15-Jan-2007 Chris Lattner <sabre@nondot.org> make this more efficient in release builds (time and space)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33239 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
42a75517250017a52afb03a0ade03cbd49559fe5 15-Jan-2007 Chris Lattner <sabre@nondot.org> rename Type::isIntegral to Type::isInteger, eliminating the old Type::isInteger.
rename Type::getIntegralTypeMask to Type::getIntegerTypeMask.

This makes naming much more consistent. For example, there are now no longer any
instances of IntegerType that are not considered isInteger! :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33225 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7f70559bc47877bafc6dfa92b7df6b64650445fb 12-Jan-2007 Anton Korobeynikov <asl@math.spbu.ru> * PIC codegen for X86/Linux has been implemented
* PIC-aware internal structures in X86 Codegen have been refactored
* Visibility (default/weak) has been added
* Docs fixes (external weak linkage, visibility, formatting)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33136 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
15ee935fc52b2e68a294631aac0c84ea4ba72509 12-Jan-2007 Reid Spencer <rspencer@reidspencer.com> Always write 1 bit integers as i1 not "bool".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33115 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a54b7cbd452b3adb2f51346140d996b29c2cdb30 12-Jan-2007 Reid Spencer <rspencer@reidspencer.com> For PR1064:
Implement the arbitrary bit-width integer feature. The feature allows
integers of any bitwidth (up to 64) to be defined instead of just 1, 8,
16, 32, and 64 bit integers.

This change does several things:
1. Introduces a new Derived Type, IntegerType, to represent the number of
bits in an integer. The Type classes SubclassData field is used to
store the number of bits. This allows 2^23 bits in an integer type.
2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and
64-bit integers. These are replaced with just IntegerType which is not
a primitive any more.
3. Adjust the rest of LLVM to account for this change.

Note that while this incremental change lays the foundation for arbitrary
bit-width integers, LLVM has not yet been converted to actually deal with
them in any significant way. Most optimization passes, for example, will
still only deal with the byte-width integer types. Future increments
will rectify this situation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33113 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
579dca12c2cfd60bc18aaadbd5331897d48fec29 12-Jan-2007 Reid Spencer <rspencer@reidspencer.com> Implement review feedback for the ConstantBool->ConstantInt merge. Chris
recommended that getBoolValue be replaced with getZExtValue and that
get(bool) be replaced by get(const Type*, uint64_t). This implements
those changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33110 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4fe16d607d11e29d742208894909733f5ad01f8f 11-Jan-2007 Reid Spencer <rspencer@reidspencer.com> Rename BoolTy as Int1Ty. Patch by Sheng Zhou.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33076 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6b6b6ef1677fa71b1072c2911b4c1f9524a558c9 11-Jan-2007 Zhou Sheng <zhousheng00@gmail.com> For PR1043:
Merge ConstantIntegral and ConstantBool into ConstantInt.
Remove ConstantIntegral and ConstantBool from LLVM.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
11b910c71f9822c7a55b310c3b590b0c447c5715 11-Jan-2007 Reid Spencer <rspencer@reidspencer.com> Shut up a warning about signed/unsigned.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ac618e6a9d0e63ac7c71231393c557feaf787a85 11-Jan-2007 Chris Lattner <sabre@nondot.org> simplify some logic further


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33069 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
22379bc7bb28fbfb1182877e6dc316aaab98a4ba 11-Jan-2007 Chris Lattner <sabre@nondot.org> Recommit my previous patch with a bugfix: printInfoComment works on both
local and global values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33068 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
162b02e327873f2460dc9f2863f7ef7e77df9d56 10-Jan-2007 Reid Spencer <rspencer@reidspencer.com> Back out the last patch which is a nightly test killer. The assertion
in getLocalSlot fires on many, many values. It broke nearly all of
the dejagnu tests. Simple changes to the assertion did not fix the
problem.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b2b442f06dce47c466e9512aeef4dbb28f8c6dae 10-Jan-2007 Chris Lattner <sabre@nondot.org> Last refactoring before PR645: split up getSlot into getLocalSlot and getGlobalSlot.
No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33053 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
55e73a549359c949069550cbfc79b3e63c4c4119 10-Jan-2007 Chris Lattner <sabre@nondot.org> eliminate some iterator gymnastics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33052 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cf8790aaff0ed1b7aead5b922450352d72c301bf 09-Jan-2007 Chris Lattner <sabre@nondot.org> Inline insertValue into CreateModuleSlot/CreateFunctionSlot


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33038 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
22990aae5c1b2fc1bc40ab3d0432c124afebd75a 09-Jan-2007 Chris Lattner <sabre@nondot.org> Remove a bunch of complex logic that is completely dead: duplicates can
never be inserted!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9446bbe7d4099eb5b917519d458a07ca08270471 09-Jan-2007 Chris Lattner <sabre@nondot.org> Split CreateSlot into two versions, one for globals and one for function-local
values


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33036 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3a4621c5f6e406da75c15e1351e2df5a7a4d9297 09-Jan-2007 Chris Lattner <sabre@nondot.org> Remove extraneous return value from insertValue and getOrCreateSlot. Since
getOrCreateSlot no longer gets the slot, rename it to CreateSlot.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33035 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
43f344a26695ba85a1a0b5407c038d9c3f980327 08-Jan-2007 Andrew Lenharth <andrewl@lenharth.org> And asm writing for packed struct initializers


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33016 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
78d033e086e19e016273de014f9214aa6f3f844b 06-Jan-2007 Reid Spencer <rspencer@reidspencer.com> For PR411:
Take an incremental step towards type plane elimination. This change
separates types from values in the symbol tables by finally making use
of the TypeSymbolTable class. This yields more natural interfaces for
dealing with types and unclutters the SymbolTable class.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2c261789d3f6826b42a010b8ff0115519ba31525 05-Jan-2007 Reid Spencer <rspencer@reidspencer.com> Change the syntax for parameter attributes:
1. The @ sign is no longer necessary.
2. We now support "function attributes" as parameter attribute 0.
3. Instead of locating the return type attributes after the type of a
function result, they are now located after the function header's
closing paranthesis and before any alignment or section options.
4. The way has been prepared for a new "noreturn" function attribute but
there is no support for recognizing it in the lexer nor doing anything
with it if it does get set.
5. The FunctionType::getParamAttrsText method now has support for
returning multiple attributes. This required a change in its interface.

I'm unhappy that this change leads to 6 new shift/reduce conflicts, but
in each case bison's decision to choose the shift is correct so there
shouldn't be any damage from these conflicts.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32904 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6359618e43a4434c14b4d997dfff2604f0c16c0a 31-Dec-2006 Reid Spencer <rspencer@reidspencer.com> Fix a cut-and-paste bug for processing of InvokeInst parameter attributes.
The lookup of parameter attributes was offset by two because of the
additional operands in an invoke instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bd5db8e29b82f864c3d6525c6cfefa557fafdbb8 31-Dec-2006 Reid Spencer <rspencer@reidspencer.com> For PR950:
* Change integer type name from signed to signless
* Implement printing of FunctionType parameter attributes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b951bc02839e9862e02e17c7ea83e6437fc13442 29-Dec-2006 Reid Spencer <rspencer@reidspencer.com> For PR950:
Remove all grammar conflicts from assembly parsing. This change involves:
1. Making the "type" keyword not a primitive type (removes several
reduce/reduce conflicts)
2. Being more specific about which linkage types are allowed for functions
and global variables. In particular "appending" can no longer be
specified for a function. A differentiation was made between the various
internal and external linkage types.
3. Introduced the "define" keyword which is now required when defining a
function. This disambiguates several cases where a named function return
type could get confused with the definition of a new type. Using the
keyword eliminates all shift/reduce conflicts and the remaining
reduce/reduce conflicts.

These changes are necessary to implement the function parameter attributes
that will be introduced soon. Adding the function parameter attributes in
the presence of the shift/reduce and reduce/reduce conflicts led to severe
ambiguities that caused the parser to report syntax errors that needed to
be resolved. This patch resolves them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32770 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9d908e8ca0314a8952b562de9d7e44bcf71426b1 19-Dec-2006 Reid Spencer <rspencer@reidspencer.com> Now that ConstantInt::isValueValidForType can handle signed and unsigned
values regardless of the signedness of the constant's type, it is okay to
always make the AsmWriter.cpp print constant ints as signed values. The
AsmParser will automatically handle things like: uint -1 as a result.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32686 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
38ecbf18eb9c8ca7ae08dfed4dc6fb4e3e5deb1e 08-Dec-2006 Andrew Lenharth <andrewl@lenharth.org> Packed Structures


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
832171cb9724d2d31c8dfb73172e2be8f6dd13ee 07-Dec-2006 Bill Wendling <isanbard@gmail.com> Removing even more <iostream> includes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32320 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e81561909d128c6e2d8033cb5465a49b2596b26a 07-Dec-2006 Bill Wendling <isanbard@gmail.com> Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
82c4bc7153d390ad1c2b369e0caef456948b8825 06-Dec-2006 Chris Lattner <sabre@nondot.org> Remove the dead CachedWriter class.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32271 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2fcfdb79d0d1d2297d7aced11b567cd52494604e 06-Dec-2006 Chris Lattner <sabre@nondot.org> printName is almost always true. In the cases that mattered where it was false,
it was effectively set to true by this:

- if ((PrintName || isa<GlobalValue>(V)) && V->hasName())
+ if (V->hasName())

Delete printname entirely.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32265 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a6b1ffcfaaaf698386243a36992193a3c2c86766 06-Dec-2006 Chris Lattner <sabre@nondot.org> The hasSlot methods are gone.
Remove the 'PrintName' argument to WriteAsOperand, as it is always true.
Only call getOrCreateSlot on things that are valid.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4932a5a3350a28a7cb41972036d6576401cc1b01 06-Dec-2006 Chris Lattner <sabre@nondot.org> remove unused api, simplify some code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32260 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
919e70c3ffe14e1de15f85599a796d1aaa714e67 06-Dec-2006 Chris Lattner <sabre@nondot.org> remove more code that was only used by the bc writer


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c3e56e20e49173985228360cd5ac810c32f2c278 06-Dec-2006 Chris Lattner <sabre@nondot.org> remove dead code left over from when this functionality was shared with the
bcwriter.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32258 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
de891a6c3583c47f0fd5d7b950f0fef3d06536e1 06-Dec-2006 Chris Lattner <sabre@nondot.org> rename createSlot -> getOrCreateSlot.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32256 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c96ce89c97e1a051c00a169a46bac93838a82253 06-Dec-2006 Chris Lattner <sabre@nondot.org> clean up some sloppy and inconsistent spacing


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32255 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d6d826cdadc4dcaa5babefda85bf08aaa57d8bc5 06-Dec-2006 Chris Lattner <sabre@nondot.org> wrap long lines


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
81dfeb3264d3c1f619c3f73046ded1ac6883e59d 04-Dec-2006 Reid Spencer <rspencer@reidspencer.com> For PR950: Implement ICmp/FCmp predicate printing for constant expressions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32168 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
87e8ec9a50a90c97112decad769c1db6b24ee70d 03-Dec-2006 Reid Spencer <rspencer@reidspencer.com> Shorten the FCmp predicate mnemonics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
74f1642bc1c2981e4573c9f0690d91b6a9bbc68c 03-Dec-2006 Reid Spencer <rspencer@reidspencer.com> Allow the ICmp and FCmp instructions to be written by the AsmWriter


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8f487662869d10c866b9ebdccb8f6a7509d3ab56 28-Nov-2006 Bill Wendling <isanbard@gmail.com> Changed to using LLVM streams.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31955 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3da59db637a887474c1b1346c1f3ccf53b6c4663 27-Nov-2006 Reid Spencer <rspencer@reidspencer.com> For PR950:
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3ed469ccd7b028a030b550d84b7336d146f5d8fa 02-Nov-2006 Reid Spencer <rspencer@reidspencer.com> For PR786:
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting
fall out by removing unused variables. Remaining warnings have to do with
unused functions (I didn't want to delete code without review) and unused
variables in generated code. Maintainers should clean up the remaining
issues when they see them. All changes pass DejaGnu tests and Olden.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31380 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
461076f05287bde5a2817c3426120596e6962f31 27-Oct-2006 Reid Spencer <rspencer@reidspencer.com> Make the Value and Type methods print a newline so it prints nicely in gdb


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31221 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d2f9e609aa40de7049ebb6f838e7ba6579e3fb6a 22-Oct-2006 Chris Lattner <sabre@nondot.org> Change keyword to datalayout


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b83eb6447ba155342598f0fabe1f08f5baa9164a 20-Oct-2006 Reid Spencer <rspencer@reidspencer.com> For PR950:
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31063 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cf7ff2b4c8c18d67aced9d7ba84482819b38a84b 18-Oct-2006 Owen Anderson <resistor@mac.com> Add support for the new "target data" information in .ll files. This provides
a better encoding of the targets data layout, rather than trying to guess it
from the endianness and pointersize like before.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31030 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9fb471df2ee4a35fd94ebf8156f76a83eacfffbb 29-Sep-2006 Chris Lattner <sabre@nondot.org> simplify code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f824868ed9d2cc756a797f6dbd67732f75e31cd6 21-Sep-2006 Anton Korobeynikov <asl@math.spbu.ru> Adding codegeneration for StdCall & FastCall calling conventions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b74ed07bfd3af42331b1964c24c39912610a08f4 14-Sep-2006 Anton Korobeynikov <asl@math.spbu.ru> Adding dllimport, dllexport and external weak linkage types.
DLL* linkages got full (I hope) codegeneration support in C & both x86
assembler backends.
External weak linkage added for future use, we don't provide any
codegeneration, etc. support for it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3a9ec2463ddeba0820f284e2952bd6919cd5e080 28-Aug-2006 Reid Spencer <rspencer@reidspencer.com> For PR387:
Close out this long standing bug by removing the remaining overloaded
virtual functions in LLVM. The -Woverloaded-virtual option is now turned on.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29934 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7f8897f22e88271cfa114998a4d6088e7c8e8e11 28-Aug-2006 Chris Lattner <sabre@nondot.org> eliminate RegisterOpt. It does the same thing as RegisterPass.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29925 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3dd965c954a49c12fc63888372ae6e35d56f6db9 21-Aug-2006 Chris Lattner <sabre@nondot.org> Fix PR885


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29794 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0deaab89feb963b314428e3c3c565343cc30b5c9 19-May-2006 Chris Lattner <sabre@nondot.org> Print csretcc calls like this:

call csretcc void %structret( { sbyte }* %P )

instead of this:

callcsretcc void %structret( { sbyte }* %P )


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28412 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7dd29aadf9147d402969302268f82bc4b8903c15 19-May-2006 Chris Lattner <sabre@nondot.org> pretty print csretcc for calls


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
25f88aa7ad2105426fe82189b6694dd07ff5b91d 19-May-2006 Chris Lattner <sabre@nondot.org> Asmprint csret nicely


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5b5cc5f2a1aa9741fe81052a6a2d5dcf1d5bd533 14-May-2006 Chris Lattner <sabre@nondot.org> inverted logic, caught by coverity


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28290 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
00f1023cf8b30c74dc219525f518a80c45b6e7ba 08-Apr-2006 Chris Lattner <sabre@nondot.org> Add shufflevector support, todo, implement better constant folding.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27510 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a4ffcc23a268cf9b74a74035a92c9a3c4a753214 01-Mar-2006 Evan Cheng <evan.cheng@apple.com> Back out my last check-in. Wrong place to fix it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26462 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7cfdd01869c1f8f32d9bcac32cf1a6dde7c88b28 01-Mar-2006 Evan Cheng <evan.cheng@apple.com> AsmWriter should not print LLVM constant in comment. Assembler won't like
multi-line comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26461 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
38a409c7ae3f6d1a29879fca26d9dcc032488386 27-Feb-2006 Jim Laskey <jlaskey@mac.com> Pretty print large struct constants.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c13a72c3293b360d9de025b117be847dfbb5569f 26-Feb-2006 Jim Laskey <jlaskey@mac.com> Reverting. Didn't realize some developers were embedding constants in their
target assembler code gen.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a3f332bdc3e8fd1ac78dd3dc868d871e9086c5fd 25-Feb-2006 Jim Laskey <jlaskey@mac.com> Format large struct constants for readability.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
80cd11561892a639a2628d19815af0695b5dbcaa 25-Jan-2006 Chris Lattner <sabre@nondot.org> Print InlineAsm objects


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25617 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
863517aea0b06770c809396be985c1c4cc50d3c4 25-Jan-2006 Chris Lattner <sabre@nondot.org> Change inline asms to be uniqued like constants, not embedded in a Module.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cc041ba03aed685400197fb938b7a583713d25af 24-Jan-2006 Chris Lattner <sabre@nondot.org> Initial checkin of the InlineAsm class


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25570 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
42a162ed8023088e7a4a7d81325381bd8d437bb7 24-Jan-2006 Chris Lattner <sabre@nondot.org> Pretty print file-scope asm blocks.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25568 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
71cdba31774ce18ed32e89f1c6f7716ab923aa46 24-Jan-2006 Chris Lattner <sabre@nondot.org> syntax change


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25567 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
18365506ebe3e28593cb36951f17f08e75712a29 24-Jan-2006 Chris Lattner <sabre@nondot.org> Print out inline asm strings


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25556 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
60962dbfbaa4a9c3ca6fced08fb90b748aa99203 12-Nov-2005 Chris Lattner <sabre@nondot.org> print section info


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24313 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
30caa2876cd500b49e27b6810ab5dec96398c6fa 06-Nov-2005 Chris Lattner <sabre@nondot.org> print alignment info for globals and functions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9fad0b9974beb76bef763b8fed71d0c8644403d4 05-Nov-2005 Chris Lattner <sabre@nondot.org> fix printing the alignment directive


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24197 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
14b0529532904b9e5a1e34526b4a3209f3e5bc62 05-Nov-2005 Nate Begeman <natebegeman@mac.com> Add support alignment of allocation instructions.
Add support for specifying alignment and size of setjmp jmpbufs.

No targets currently do anything with this information, nor is it presrved
in the bytecode representation. That's coming up next.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cb6682fa44e13262bdef7dd22b4ba90f8c2e7b97 17-Aug-2005 Jim Laskey <jlaskey@mac.com> Culling out use of unions for converting FP to bits and vice versa.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22838 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
558bc88a00930fce283b240b7c9555f649a18f1b 18-Jun-2005 Andrew Lenharth <andrewl@lenharth.org> core changes for varargs


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22254 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
edd5d9ece15f73ec1a31423a4ae39774aa6c521c 15-May-2005 Reid Spencer <rspencer@reidspencer.com> Some cleanups for compilation with GCC 4.0.0 to remove warnings:
* Use C++ style casts, not C style casts
* Abstract base classes should have virtual destructor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d511898b581826694e6c651e23343b1e1ba5ba64 06-May-2005 Chris Lattner <sabre@nondot.org> add support for explicit calling conventions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ddb6db4fa11d06217d01d8431596131abdfb7ef0 06-May-2005 Chris Lattner <sabre@nondot.org> Add a 'tail' marker for call instructions, patch contributed by
Alexander Friedman.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21722 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fd93908ae8b9684fe71c239e3c6cfe13ff6a2663 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Remove trailing whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21427 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
39220ded940aa408d5dce9b8ab33e87e1d7a23d7 15-Mar-2005 Chris Lattner <sabre@nondot.org> stop using arg_front


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e4d5c441e04bdc00ccf1804744af670655123b07 15-Mar-2005 Chris Lattner <sabre@nondot.org> This mega patch converts us from using Function::a{iterator|begin|end} to
using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*.

This patch is contributed by Gabor Greif, thanks!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20597 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0fbd91436230e0fedbfadbb6ee531197c9441e84 03-Mar-2005 Misha Brukman <brukman+llvm@gmail.com> Fix the spelling of the word `the'


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20412 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
31ab1b3d74440908889fc8ea0615c1d397478360 03-Mar-2005 Chris Lattner <sabre@nondot.org> Print the module ID as a comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
aab1820816facf83d7bda8f01e3d85ced99601f3 24-Feb-2005 Chris Lattner <sabre@nondot.org> Fix some problems where the verifier would crash on invalid input instead of
reporting the problem and exiting.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20302 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fe0343a1cdb6f77efa5df24b22626b92d3871d39 09-Feb-2005 Chris Lattner <sabre@nondot.org> Fix test/Regression/Assembler/2005-02-09-AsmWriterStoreBug.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20089 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5c461404fed8d1def8eae02e6574bc5b16502575 01-Feb-2005 Chris Lattner <sabre@nondot.org> Update for API change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19960 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
71d94d16b6011b4e9be69678addb9265a6c65266 04-Jan-2005 Chris Lattner <sabre@nondot.org> To not break TBAA rules, use a union.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19280 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9913e596782bf9c0f1f31bf397ccc0ddfa967deb 10-Dec-2004 Alkis Evlogimenos <alkis@evlogimenos.com> Fix writer to properly quote label names when they don't contain
simple characters.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18744 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
333529e6be764aa1e4f83eb25817407a758f37c8 05-Dec-2004 Chris Lattner <sabre@nondot.org> When printing out a function, make sure that local and global symbols
don't conflict. This fixes Assembler/2004-12-05-LocalGlobalSymtabConflict.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f771bea7402f05f59b2857586de9934ff1c7bbf5 15-Nov-2004 Misha Brukman <brukman+llvm@gmail.com> Remove extra space char


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3c8f2c66e585f946569fa62cbf26509009d2df93 14-Nov-2004 Misha Brukman <brukman+llvm@gmail.com> GhostLinkage not allowed in LLVM AsmWriter, either


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17751 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b976e668165e1875a8f1eb7af800e33bb1e4393d 16-Oct-2004 Chris Lattner <sabre@nondot.org> Add support for undef and unreachable


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1c7b907325e9cf3a0713ceab5029fef04d9e498c 14-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Okay, the list of link-time passes wasn't such a hot idea. Its prone to
error. We'll strategize on this when we have multiple front ends to deal
with. For now llvm-ld just runs a standard set of transforms.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16333 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
44da7d79760998f9a70340b49a3811229838224d 14-Sep-2004 Chris Lattner <sabre@nondot.org> Don't print newlines between passes in the pass list.
Note to self: sentences end with ".", not "...".
Note to reid: sentences end with ".", not "". :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16332 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cfe97b78e787d232f4a82f5ff0afadf75ba95f6c 14-Sep-2004 Chris Lattner <sabre@nondot.org> Don't print newlines between each library in the deplibs list.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16331 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e59eaf407a675845e278c2769e3dbed9f1daae8c 14-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Add support for the link-time pass list to Modules.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
551ccae044b0ff658fe629dd67edd5ffe75d10e8 02-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Changes For Bug 352
Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1390103887d092d1310807c8ef71c3dc6aa33344 29-Aug-2004 Reid Spencer <rspencer@reidspencer.com> Add an assert to cature null Operands. It is better to catch it here than
to SIGSEGV in the bowels of isa<...> later.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5527c0b6d1bda2c63212f91837792663469fd764 20-Aug-2004 Reid Spencer <rspencer@reidspencer.com> Fix a bug found exposed by: Regression/Other/2004-08-20-PackedControlFlow.ll
Packed types need to be allowed in type statements too.

Patch provided by Brad Jones.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
715c90ba524e736190a6380695ab337eeb5148be 20-Aug-2004 Brian Gaeke <gaeke@uiuc.edu> Packed types, brought to you by Brad Jones


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
28531c71cd142f623d56a7ea13df2e014eebff54 16-Aug-2004 Reid Spencer <rspencer@reidspencer.com> Fix PR422.
Ouch! Changes in the lazy initialization code caused each incorporated
function to reprocess the entire function on every lookup of a value's
slot number. This caused a horrible slowdown in all functions. This
fix made llvm-dis go from "longer than I care to wait" (minutes) on a large
test case to 0.53 seconds.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15818 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
44336292fcd9f3f99cbfc2c3366bea0cf95bb675 29-Jul-2004 Misha Brukman <brukman+llvm@gmail.com> Fix #includes of i*.h files => Instructions.h as per PR403


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15327 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cddc86f27c822af960fc8d344a86a63fce6eab76 25-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Avoid use of size(), which counts, in favor of other mechanisms.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15221 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c9a1f0dcdde056a2cdbc446a9d6853684402263f 25-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Adjust to new Module.h interface for dependent libraries
Only write the target triple and deplibs if they are non-empty.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
83f6a77c8fc27eba21bca05be37663f3a6e123a1 25-Jul-2004 Reid Spencer <rspencer@reidspencer.com> bug 263:
Add ability to write target triple and dependent libraries information.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15211 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
acc928042daf6912267544a623bdaba3633fec36 18-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Shrink some code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7970396014eacbe719eb171448ddc546c1ad2289 18-Jul-2004 Reid Spencer <rspencer@reidspencer.com> bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage
- Minimize redundant isa<GlobalValue> usage
- Correct isa<Constant> for GlobalValue subclass


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0a8e8e1a4ea46fa5da067369ac43d8a459d0cac0 15-Jul-2004 Chris Lattner <sabre@nondot.org> Fixes for PR341


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14847 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
144d9baf5e5665ab1b0e815402d92ee615034b01 14-Jul-2004 Chris Lattner <sabre@nondot.org> Make Argument::print more resilient to non-verifiable IR


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14801 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0e25e1cdcf1f73bb9f56b91155d5c0ef42ef0a44 04-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Adjust the slot machine to handle Types separately from Values. This was
done by doubling up the data structures so that Type based equivalents are
used. A consequence of this is overloading of function members that take a
Type* instead of a Value*. Various other cleanups related to Type != Value
(bug 122) were also implemented.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14613 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fae098a56b403e91affcb44de7e981fc9f34ea12 26-Jun-2004 Chris Lattner <sabre@nondot.org> Don't call getValueType directly. the LLVM optimizer will turn it into the same code anyway :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14426 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0313e0b44dcd77acd334d3f324c7da527179a690 21-Jun-2004 Misha Brukman <brukman+llvm@gmail.com> Use a reference instead of a pointer for the ostream. The pointer was only
there to assist in the development of llvm-tv, and it no longer has a need to
modify the AsmWriter output stream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14304 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a8abee21364759334578c3bcbd9014982df03bdc 18-Jun-2004 Chris Lattner <sabre@nondot.org> Fix printing of Argument objects, problem found by Patrick Meredith


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14215 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f70c22b019494723d0e706f93d6542dfaa6e73a5 17-Jun-2004 Chris Lattner <sabre@nondot.org> Rename Type::PrimitiveID to TypeId and ::getPrimitiveID() to ::getTypeID()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14201 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d1cd3285601d4accf370779ac520c1e494a08b87 15-Jun-2004 Chris Lattner <sabre@nondot.org> Do not dereference end iterators. It's really bad for the asmwriter's health.
This possibly fixes PR370


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14181 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e9e326e2eb223ea4bc6762a099ce3c314e4daedb 10-Jun-2004 Chris Lattner <sabre@nondot.org> Tolerate more errors


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14104 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
69566459cc27c5210472a87ae2fe7b2ca64f9fc8 09-Jun-2004 Chris Lattner <sabre@nondot.org> Make the asmwriter much more tolerant of errors (which are common when working
on new front-ends and stuff). Also get rid of some tabs that snuck in.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14100 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fc621e28781e3cf22f1850e07f285581334e2402 09-Jun-2004 Reid Spencer <rspencer@reidspencer.com> Made it possible for the printInfoComment method to invoke getSlot in
such a way that if the Value being printed is standalone that we don't
assert and abort but just print ":??" for the slot number instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
54e3e8fd37a2e28868b5faf11e4b0af243c5a364 05-Jun-2004 Chris Lattner <sabre@nondot.org> Squelch a warning


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14032 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
40c732cc52a5c71cead461646667ef5b13801923 04-Jun-2004 Misha Brukman <brukman+llvm@gmail.com> * No more CachedWriter::setStream()
* ostream is back to being a reference instead of a pointer
* Output single characters as chars, not as length-1 strings


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14030 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4ff620a867b7fcd13fb641c4ea872bd9be4b7b71 01-Jun-2004 John Criswell <criswell@uiuc.edu> Modified calcTypeName() so that it does not allocate a std::string for
every recursive call.
This makes it more robust for deeply nested, unnamed types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13915 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
73b7495a96e21e1515df86414e0636dbf1395fc5 28-May-2004 Reid Spencer <rspencer@reidspencer.com> Clean up a comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13860 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b03de0c780a74d63f6b331eb8f615b46c4cddd7b 26-May-2004 Reid Spencer <rspencer@reidspencer.com> Several clean ups suggested by Chris: remove tabs, make SlotMachine do lazy
initialization so we don't scan large Modules/Functions needlessly, tighten
up restrictions on what can be put in SlotMachine (no Constants that aren't
GlobalValues).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13796 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0d1b77e2824115d97f8392c3f4ec257b27ebbd7a 26-May-2004 Reid Spencer <rspencer@reidspencer.com> Part of bug 122. Removed dependency of AsmWriter on SlotCalculator by
incorporating a significantly simpler "SlotMachine" into this file. The
SlotMachine is tailored for use by only the AsmWriter whose requirements
for slot numbers are vastly different than from the Bytecode/Writer. Code
change passes all Feature and Regression tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13784 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fa452c05504ebee698e00050d04e1a43b0f21045 25-May-2004 Reid Spencer <rspencer@reidspencer.com> Document a couple functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13761 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9231ac8b6f2c3f9877bdb7a223f7392061258ab6 25-May-2004 Reid Spencer <rspencer@reidspencer.com> Convert to SymbolTable's new iteration interface.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e5242def97c52077b4e0a77a501f324867f7bce5 28-Apr-2004 Misha Brukman <brukman+llvm@gmail.com> class AssemblyWriter:
* Make contained ostream pointer, not reference
* Allow setting of that ostream via setStream()

class CachedWriter:
* setStream() in turn calls setStream() on the AssemblyWriter


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13247 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5cf1acff3c32e52d79ea8b0b47e341d4e975ed8c 28-Apr-2004 Misha Brukman <brukman+llvm@gmail.com> * Add ability to print out type as symbolic
* Add Module accessor to AssemblyWriter


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13227 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cfdd148972c049291ee6f24f3201a573d9ac5809 12-Mar-2004 Chris Lattner <sabre@nondot.org> Print select instructions correctly


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12320 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9f717ef279f4b82e28c341c98a9aa602f01f9b27 08-Mar-2004 Chris Lattner <sabre@nondot.org> Adjust to new interface


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ab5c6003d23c19d23bbff1054900d208c55e0188 02-Mar-2004 Misha Brukman <brukman+llvm@gmail.com> Doxygenify comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9d0802e7dd165dd9b7372f12799f248e7f133287 01-Mar-2004 Misha Brukman <brukman+llvm@gmail.com> * If a badref has a name, print it out for ease of debugging
* Doxygenify (some) comments


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
de512b5b2edebe9c9021a92c7c7a9ae9fbc380d6 15-Feb-2004 Chris Lattner <sabre@nondot.org> Adjustments to support the new ConstantAggregateZero class


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11474 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d21cd809b656d3011ec089536857e048e037159c 09-Feb-2004 Chris Lattner <sabre@nondot.org> Adjust to the changed StructType interface. In particular, getElementTypes() is gone.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11228 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d5d89967206e1153d24abdb7b22002f7533f55c7 09-Feb-2004 Chris Lattner <sabre@nondot.org> Start using the new and improve interface to FunctionType arguments


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11224 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a306d3720a7a77141b2d4761a16be5ae7412a82d 08-Feb-2004 Chris Lattner <sabre@nondot.org> vi failed me again. :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11206 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f37a4268d86754a9ae3b32810268bc8762deb12d 08-Feb-2004 Chris Lattner <sabre@nondot.org> Rename the invoke 'except' destination to the 'unwind' destination


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11205 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
aeb2a1d70807aa626f335fb23d47bc604ffeaa15 08-Feb-2004 Chris Lattner <sabre@nondot.org> rename the "exceptional" destination of an invoke instruction to the 'unwind' dest


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11202 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f2d577b27a56a928fa3e77ab0cd83e7597751313 20-Jan-2004 Chris Lattner <sabre@nondot.org> SlotCalculator.h moved


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2ff95b6b4e9bcc0167a32f0ed09120298b5a3713 18-Jan-2004 Chris Lattner <sabre@nondot.org> Eliminate special case handling for CPR's
Fix some problem cases where I was building the slot calculator in bytecode
writer mode instead of asmwriter mode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10911 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8ce750145db529a3f5f09aeffba52194e879c7a3 14-Jan-2004 Chris Lattner <sabre@nondot.org> The only clients of the slot calculator are now the asmwriter and bcwriter.
Since this really only makes sense for these two, change hte instance variable
to reflect whether we are writing a bytecode file or not. This makes it
reasonable to add bcwriter specific stuff to it as necessary.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10837 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
31f8499e83dc4dccbb57ea7e76d1fd49b7010d0c 21-Nov-2003 Chris Lattner <sabre@nondot.org> Finegrainify namespacification


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4e4d8624c5c44578d64fe1344670520cceec03f2 20-Nov-2003 Chris Lattner <sabre@nondot.org> Don't crash if we are printing an orphaned basic block!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10100 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
41495a21f9e881a2bea017caad9eed731f8f37e8 17-Nov-2003 Chris Lattner <sabre@nondot.org> Be a bit more tolerant of broken code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cd4a398c25a72ff307b48b78f813bb23e7a3a9ca 17-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> When you hand WriteAsOperand a type, it now prints out its symbolic name.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10042 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
40efcec8e879b3470b3c0ad9d8124abce2cd8915 16-Nov-2003 Chris Lattner <sabre@nondot.org> Don't print 'No predecessors!' on the entry block


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10038 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d0fde30ce850b78371fd1386338350591f9ff494 11-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Put all LLVM code into the llvm namespace, as per bug 109.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
54baafd28649a93c7c16ada4529b9212dc03aa05 09-Nov-2003 Chris Lattner <sabre@nondot.org> Add an assertion


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
95e5a2cc3fc55b262d2baa1cc417115dfa4a18ea 31-Oct-2003 Chris Lattner <sabre@nondot.org> Make use of the new AssemblyAnnotationWriter interface


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9619 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
88c17380646dbb7c0c5054a392de5a46d17620ba 30-Oct-2003 Chris Lattner <sabre@nondot.org> Print the names of more opaque types


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9598 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
daf2a492a7eef1d4f68b1ed04b401ca6140c191f 30-Oct-2003 Chris Lattner <sabre@nondot.org> Make sure to print opaque types names if they are available.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9597 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b576c94c15af9a440f69d9d03c2afead7971118c 20-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4d45bd007d0c3a3a6e5b3876b67fd495acb0db2b 18-Oct-2003 Chris Lattner <sabre@nondot.org> Add support for the new varargs intrinsics and instructions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
60596382aa6d2f54949684a07f5ab0ab881896d7 17-Oct-2003 Alkis Evlogimenos <alkis@evlogimenos.com> Eliminate some extraneous code in SlotCalculator::insertVal().

Rename SlotCalculator::getValSlot() to SlotCalculator::getSlot(),
SlotCalculator::insertValue() to SlotCalculator::getOrCreateSlot(),
SlotCalculator::insertVal() to SlotCalculator::insertValue(), and
SlotCalculator::doInsertVal() to SlotCalculator::doInsertValue().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9190 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
72ac148d4964fbff950fe11a0eeeda73973b849b 16-Oct-2003 Chris Lattner <sabre@nondot.org> Add support for 'weak' linkage.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9171 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6b63452c3ad26678b32f93dbca55902a313ee4e9 10-Oct-2003 Misha Brukman <brukman+llvm@gmail.com> Fix spelling/grammar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9023 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e5e475e09d1e8a9ea1bda58b536867ff16600399 08-Sep-2003 Chris Lattner <sabre@nondot.org> Add support for volatile loads/stores


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b8565e3918d2e5d43a8e53f545a8a1c587582fd3 03-Sep-2003 Chris Lattner <sabre@nondot.org> Fix bug where we couldn't print a function without a name


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8341 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
eb5d3a1526b2604feb07fe874907e30c8d2fcd6d 24-Aug-2003 Chris Lattner <sabre@nondot.org> Support new 'any' support for pointer size and endianness


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8119 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
24b8a5d6e7c67b0fdfe98a5b6c3791b313dc904b 22-Aug-2003 Chris Lattner <sabre@nondot.org> If an "LLVM name" has wierd characters in it, print it out in double quotes instead of prefixing it with %


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8049 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7a012299ced5cff02cec47055a63d3b2a78bb36f 05-Aug-2003 Chris Lattner <sabre@nondot.org> Implement TODO: print out short form of Invoke if possible


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7595 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
949a3628024248db01d5b13e03c415e0c88e90e4 23-Jul-2003 Chris Lattner <sabre@nondot.org> Remove redundant const qualifiers from cast<> expressions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c07736a397012499e337c994f7f952b07c709544 23-Jul-2003 Chris Lattner <sabre@nondot.org> Simplify code by using ConstantInt::getRawValue instead of checking to see
whether the constant is signed or unsigned, then casting


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
bc0e998c497446f5448425b3cbd7f8f19a458764 14-Jul-2003 Misha Brukman <brukman+llvm@gmail.com> The word `separate' only has one `e'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7173 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e9a64ea38e6701f76d2767d8e467083e8ba35920 28-Jun-2003 Chris Lattner <sabre@nondot.org> Avoid printing out huge structures or arrays if they are just filled with zeros


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6938 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b471a23a8506b7476890ee34a25ffbd1b553f3ff 18-Jun-2003 Brian Gaeke <gaeke@uiuc.edu> lib/CWriter/Writer.cpp: Copy AsmWriter's ConstantFP checking code here
into a new function FPCSafeToPrint(), and use it in printConstant()
and printFunction() to decide whether we should output ConstantFPs as
floating-point constants or as references to stack-allocated variables.

lib/VMCore/AsmWriter.cpp: Fix an apparent typo in the code mentioned above.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6762 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
26c6915539bbe3393450ece5d82d7d9ea546d417 01-Jun-2003 Chris Lattner <sabre@nondot.org> Don't print out unique identifier for opaque types


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6511 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9e094c40df10d928a1242f8652dc56ebd41d38fd 14-May-2003 Chris Lattner <sabre@nondot.org> Print opaque types


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8f77daef04355c00b78b645f5aae5694e7a8b631 08-May-2003 Chris Lattner <sabre@nondot.org> Add support for the new va_arg instruction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6029 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7b13f56c36eb7572e1053974e5487a5f1c3080aa 08-May-2003 Chris Lattner <sabre@nondot.org> Remove using declarations


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6022 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
61a909a6fd618a17f9d28f5ab2237f7fb179f8a8 22-Apr-2003 Chris Lattner <sabre@nondot.org> Emit information about target


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5844 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
4ad02e726d9b634372b037d4b352d8b63bb9e849 16-Apr-2003 Chris Lattner <sabre@nondot.org> Add new linkage types to support a real frontend


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5786 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ffd9bf404cd36c93d82b0080113ccc6d230915b3 16-Apr-2003 Chris Lattner <sabre@nondot.org> Improve the efficiency and cleanup writing a bit


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5782 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
38d877365030f90b099d53ab6a66bd62271e330f 07-Mar-2003 Chris Lattner <sabre@nondot.org> Clean up cruft


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5720 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6e6026b46569b01f8f6d4dcdb6c899c3a9c76b3e 20-Nov-2002 Chris Lattner <sabre@nondot.org> - Eliminated the deferred symbol table stuff in Module & Function, it really
wasn't an optimization and it was causing lots of bugs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
69da5cf26143e4542d4bf8c78ffac6d079efe5c9 13-Oct-2002 Chris Lattner <sabre@nondot.org> - Change Function's so that their argument list is populated when they are
constructed. Before, external functions would have an empty argument list,
now a Function ALWAYS has a populated argument list.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0c5e36211801f14d02d7fec1393bed450b68c79f 07-Oct-2002 Chris Lattner <sabre@nondot.org> Global variables are now external if they don't have initializers, not
"uninitialized"


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4052 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
061269be9723f842931f18ad207acf9a66e0cf76 02-Oct-2002 Chris Lattner <sabre@nondot.org> - Print the predecessors of a basic block instead of the number of uses of
the block in the AsmWriter


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3bc06b33dac11e9372b06484139b4d4c11788273 10-Sep-2002 Chris Lattner <sabre@nondot.org> Add support for printing constpointerrefs more nicely


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3654 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1c93e5bd26cf1b41ed7bdf5561b8f20607488b0f 16-Aug-2002 Chris Lattner <sabre@nondot.org> Changed parser to always use parenthesis on ConstExprs to be consistent


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
95586b8c833aeca112907e69f545a6ea6e2103ff 15-Aug-2002 Chris Lattner <sabre@nondot.org> Write constexpr casts using the cast X to Y notation, not using the implicit
type result


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
fc94446777fcdff03fdc09539bab25200936b43e 01-Aug-2002 Chris Lattner <sabre@nondot.org> Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llx


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3195 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c188eeb08c873da142a47398be6c405ce3f34f51 30-Jul-2002 Chris Lattner <sabre@nondot.org> Cleanup ConstantExpr handling:
* Correctly delete TypeHandles in AsmParser. In addition to not leaking
memory, this prevents a bug that could have occurred when a type got
resolved that the constexpr was using
* Check for errors in the AsmParser instead of hitting assertion failures
deep in the code
* Simplify the interface to the ConstantExpr class, removing unneccesary
parameters to the ::get* methods.
* Rename the 'getelementptr' version of ConstantExpr::get to
ConstantExpr::getGetElementPtr


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a6275ccdf5e1aa208afde56c498e2b13e16442f0 26-Jul-2002 Chris Lattner <sabre@nondot.org> * Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that
are to show up in opt or analyze
* Register Analyses now
* Change optimizations to use RegisterOpt instead of RegisterPass
* Remove getPassName implementations from various subclasses


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3113 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c1b2718acf9d566c26188f2968dece0bf3f187e3 25-Jul-2002 Chris Lattner <sabre@nondot.org> Fix typeo that caused bug:
test/Regression/Assembler/2002-07-25-ReturnPtrFunction.llx


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3103 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
54d10c87157820351827a2f9cff6060b7e69d09d 25-Jul-2002 Chris Lattner <sabre@nondot.org> Fix bug: test/Regression/Assembler/2002-07-25-QuoteInString.llx


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3099 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f082b80828c13dcb7fb29ad5167ed161c1031534 23-Jul-2002 Chris Lattner <sabre@nondot.org> Register Writer passes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3017 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b4dbb4445c67fc46e56765035c2787028a66a614 15-Jul-2002 Vikram S. Adve <vadve@cs.uiuc.edu> Added support to write out ConstantExpr nodes.
Also, avoid asserting out when writing out an invalid tree
since the assembly writer is used when debugging.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2902 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
607dc6880ecfd4807de2163d37f2fa8877b7f62d 10-Jul-2002 Chris Lattner <sabre@nondot.org> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2852 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7e70829632f82de15db187845666aaca6e04b792 25-Jun-2002 Chris Lattner <sabre@nondot.org> MEGAPATCH checkin.

For details, See: docs/2002-06-25-MegaPatchInfo.txt


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9e77f77687bdeece2a66ed9103379f6da3bbc46e 26-May-2002 Chris Lattner <sabre@nondot.org> Support opaque type printing a little bit at least


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
68e0278815836ca414ceb9b6087bf3cdc051947a 23-May-2002 Chris Lattner <sabre@nondot.org> Print out function name with % style instead of "" style


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
afc38686b426645ad10562c7eddfd6785663f1bb 14-May-2002 Chris Lattner <sabre@nondot.org> Avoid emitting a useless comment for a basic block with no uses (which
often happens for the entry basic block of a function)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2624 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
03e2acb37f675b62c66a8cc78965e8b2623972ec 06-May-2002 Chris Lattner <sabre@nondot.org> Print functions with curly braces instead of begin/end


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2469 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b05ca44eb9489d65fde77e93968e04acc8c700ea 02-May-2002 Chris Lattner <sabre@nondot.org> The implementation keyword is no longer neccesary


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2434 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
3eb59c0074978cb4687779365dbe664e2e18e0b2 29-Apr-2002 Chris Lattner <sabre@nondot.org> Changes so that iMemory.h doesn't include DerivedTypes.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2404 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c6f3ae5c66c8e0dab6a2bd9601d0e253ef9ba794 29-Apr-2002 Chris Lattner <sabre@nondot.org> Eliminate duplicate or unneccesary #include's


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2397 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9d73279ec8b38732bc1cfc3921de4949606cd0bf 28-Apr-2002 Chris Lattner <sabre@nondot.org> Todo has been implemented, remove it


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2387 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
31bcdb822fe9133b1973de51519d34e5813a6184 28-Apr-2002 Chris Lattner <sabre@nondot.org> Split ConstantVals.h into Constant.h and Constants.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5240dac674f9b7104d799180d48ca85e13d95502 28-Apr-2002 Chris Lattner <sabre@nondot.org> Module's are no longer values


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
66e810be9f97fa744ca949d54b5d54358add84b8 18-Apr-2002 Chris Lattner <sabre@nondot.org> Pull all of the getStrValue implementation cruft out of Constants.cpp and
put it into the AsmWriter. This code is kinda gross and could probably be
cleaned up, but not now.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2299 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7a716addedc4938fa0ec6b77e5eeaced6eafc5d0 16-Apr-2002 Chris Lattner <sabre@nondot.org> Changes to:
* Fix bug printing method types (oops when converting previous code)
* Move some of the code from Constant::getStrValue implementations here.
This allows us to do a MUCH MUCH better job printing out complex constant
values (think an array of structure pointers), because we print symbolic
type names instead of structural. The assistance when debugging is immense

Eventually, Constant::getStrValue should be removed (it existed before because
the asmwriter file was not in VMCore), and everyone should go through the
asmwriter that want's equivalent functionality.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2268 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ff5c296498b3b1182e8d5e2515d0c15a7b558d4b 13-Apr-2002 Chris Lattner <sabre@nondot.org> Minor bugfix for previous checkin


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2241 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
2761e9f076bbe6c961629aece62db4b836a41ef8 13-Apr-2002 Chris Lattner <sabre@nondot.org> * Remove obselete code for unsized arrays
* Add new function printTypeAtLeastOneLevel used to...
* Print the symbol table *WITH SYMBOLIC TYPES*. Now we get:
%tree = type { int, %tree*, %tree* }
in the type definition section of the disassembled output instead of
%tree = type { int, \2*, \2* }
the different for the health benchmark and power are simply amazing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2240 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
94dc1f29cd1dc669680b7d3caa1f59862a656b83 13-Apr-2002 Chris Lattner <sabre@nondot.org> * Clean up code to use isa & dyncast instead of poking directly into instructions
* Do not print the allocation size for a non array allocation (this used to work,
but was broken).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2235 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
02b9399baef2afc1a0c8c83152d2f28145658bbc 12-Apr-2002 Chris Lattner <sabre@nondot.org> * Add comment
* Do not print a space before the * in a pointer type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2232 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
73e214244f2403b5ba0ef81b8839600f3c8ffebc 09-Apr-2002 Chris Lattner <sabre@nondot.org> Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
75cf7cf00d391ac6ca22d6240fa9d99ed427d1d5 09-Apr-2002 Chris Lattner <sabre@nondot.org> * Narrow AsmWriter interface
* Implement Value::print methods here instead of WriteToAssembly


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b579400cd72f274607f4964a9649ea4d38e04c46 08-Apr-2002 Chris Lattner <sabre@nondot.org> * Move include/llvm/Analysis/SlotCalculator.h to include/llvm/SlotCalculator.h
because the slot calculator is already part of the VMCore library.
* Rename incorporateMethod and purgeMethod to *Function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2154 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8da78afce3609f8ac31bef9d1310744a47bbd0cc 08-Apr-2002 Chris Lattner <sabre@nondot.org> Update comments
Implement Value::dump here.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
6bfd6a578a3a4fa95c585c988ee712ba880f9923 29-Mar-2002 Chris Lattner <sabre@nondot.org> s/Method/Function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2034 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
79df7c0aaa18129e55968c8783ef8346807bd4af 26-Mar-2002 Chris Lattner <sabre@nondot.org> Change references from Method to Function
change references from MethodARgument to FunctionArgument


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
697954c15da58bd8b186dbafdedd8b06db770201 20-Jan-2002 Chris Lattner <sabre@nondot.org> Changes to build successfully with GCC 3.02


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f7a551fd929a4a849883cde04cfe54e0590a38b7 14-Dec-2001 Chris Lattner <sabre@nondot.org> Don't waste as much horizontal space on #uses flag when printing


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7a1767520611d9ff6face702068de858e1cadf2c 04-Dec-2001 Chris Lattner <sabre@nondot.org> Renamed inst_const_iterator -> const_inst_iterator
Renamed op_const_iterator -> const_op_iterator
Renamed PointerType::getValueType() -> PointerType::getElementType()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e9bb2df410f7a22decad9a883f7139d5857c1520 03-Dec-2001 Chris Lattner <sabre@nondot.org> Rename ConstPoolVal -> Constant
Rename ConstPool* -> Constant*
Rename ConstPoolVals.h -> ConstantVals.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7061dc50b2513731d7b346ab16183cda4a44619f 03-Dec-2001 Chris Lattner <sabre@nondot.org> Split the PHINode class out from the iOther.h file into the iPHINode.h file


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1405 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cee8f9ae67104576b2028125b56e9ba4856a1d66 27-Nov-2001 Chris Lattner <sabre@nondot.org> Create a new #include "Support/..." directory structure to move things
from "llvm/Support/..." that are not llvm dependant.

Move files and fix #includes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
dda719665ba2ffd2eb1c32a0d2daa3921448db7c 26-Nov-2001 Chris Lattner <sabre@nondot.org> Implement support for internal methods


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
da1fbcc5c389e86840f6131afc22b45ce7e9ad08 07-Nov-2001 Chris Lattner <sabre@nondot.org> Implement CachedWriter class to allow module level printing of various components very quickly


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1168 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
268de0464ee9f0938bfa145fdd5e7f1a46b21cf7 06-Nov-2001 Chris Lattner <sabre@nondot.org> Print out the abridged form of the call instruction.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1159 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
eed1fc79735c3ade3dddc0d45eec2c9811969e21 06-Nov-2001 Chris Lattner <sabre@nondot.org> Give me PHI's space back


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
8f410cac044a21a94afece41345ccd9b72047675 06-Nov-2001 Chris Lattner <sabre@nondot.org> Print PHI nodes with zero operands even if they are illegal


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1145 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e51e03b3c649ed9419bd0e920c03ef9023ccee48 31-Oct-2001 Chris Lattner <sabre@nondot.org> Initial version of GCC cleanup pass: just removes extraneous global symbol table entries for types


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7b8660d72f35f5ddea0c81eb71f2bdd60fd62832 29-Oct-2001 Chris Lattner <sabre@nondot.org> Fix blatent bugs in checkin


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1032 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
207b5bc6a15e12a87c3c861da680b8b23559a34c 29-Oct-2001 Chris Lattner <sabre@nondot.org> Expose the WriteTypeSymbolic function from the library. Refactor code to make
this function explicit. Cause WriteAsOperand to use symbolic types as available.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1031 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c1824996451d5ea93864fcd34ba8ea5e5f03e368 29-Oct-2001 Chris Lattner <sabre@nondot.org> Be careful to output symbolic type name if possible for a type. This makes
debugging the Olden/health benchmark actually possible.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1029 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
f434cd1b30a77afa26de46a3e7afb8a07b536c6f 20-Oct-2001 Chris Lattner <sabre@nondot.org> Fix shift printing when using a ubyte LHS


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@925 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e02fa8551d20081534afa46e0976811687e5183a 13-Oct-2001 Chris Lattner <sabre@nondot.org> * Support writing GlobalVariables with info comments by them
* Print out prototypes correctly in cases that we weren't before
* Use new style casts more
* Support printing new invoke instruction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@759 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
ef9c23f2812322ae5c5f3140bfbcf92629d7ff47 03-Oct-2001 Chris Lattner <sabre@nondot.org> * Both Method & GlobalVariable now subclass GlobalValue
* ConstPoolPointerReference now represents a pointer to a GlobalValue
* Methods name references are now explicit pointers to methods
* Rename Value::GlobalVal to Value::GlobalVariableVal to avoid confusion


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@703 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b00c582b6d40e6b9ff2d1ed4f5eaf7930e792ace 02-Oct-2001 Chris Lattner <sabre@nondot.org> Commit more code over to new cast style


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@697 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1d87bcf4909b06dcd86320722653341f08b8b396 01-Oct-2001 Chris Lattner <sabre@nondot.org> Convert more code to use new style casts
Eliminate old style casts from value.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@696 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
cfe26c930ae691ff3012736555846c45087e1a9e 01-Oct-2001 Chris Lattner <sabre@nondot.org> Add more support for new style casts
Convert more code to use them


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
9636a91649f168f41b477cba705287665e054f79 01-Oct-2001 Chris Lattner <sabre@nondot.org> Add support for new style casts


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
5efa3ccbd17e81358f87474e53492871b1c83e41 18-Sep-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Moved DebugValue to Value.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d70684f7585a85c4248c1c224059478108741c70 18-Sep-2001 Chris Lattner <sabre@nondot.org> Add support for global constants, and for initializers for constants


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@598 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b0e4523624fbe493a945ea73a8f3c6d6526f3f27 10-Sep-2001 Chris Lattner <sabre@nondot.org> Add support for printing globals


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
70cc3397f84c2e1fd69c059a0ef89e398e847b00 10-Sep-2001 Chris Lattner <sabre@nondot.org> Implement global variable support


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@530 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
007377f381e253cc559db8d3c94fa89b0eb55fad 07-Sep-2001 Chris Lattner <sabre@nondot.org> * Assembly writer is not a module analyzer anymore
* There is no constant pool anymore


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@447 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
81e29632f70bcd789af6d27b4622ea3cba162aba 28-Jul-2001 Chris Lattner <sabre@nondot.org> * Fix bugs


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
1333ed5b4fd3d30ba9ef56741af4d345a9e43953 26-Jul-2001 Chris Lattner <sabre@nondot.org> Don't write out constants that do not have a name, they will be inlined.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
e5a57ee363ecceb1f0047da7d8e72460965ec102 26-Jul-2001 Chris Lattner <sabre@nondot.org> Add support for extern varargs methods & varargs method calls


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
622f740a7dcf0b3520244e58b2233898fd4a46e4 20-Jul-2001 Chris Lattner <sabre@nondot.org> Factor out WriteAsOperand.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
739a56d26ddd76f7d073745d8be25c53cf39dce5 15-Jul-2001 Chris Lattner <sabre@nondot.org> Implement forward/external declarations for methods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
54d56e3a995352784e290f97f11d1cf277080410 14-Jul-2001 Chris Lattner <sabre@nondot.org> The parent of a constant pool is a symtabvalue, not a value.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
d8c2e42aeff8bdb3ac905b4721b3d3ca1f904cfa 13-Jul-2001 Chris Lattner <sabre@nondot.org> Add DebugValue member.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9 08-Jul-2001 Chris Lattner <sabre@nondot.org> Neg instruction removed. Cast instruction implemented.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
a41f50dea8573e4a610b5aa5e45b5c368559b084 07-Jul-2001 Chris Lattner <sabre@nondot.org> Broad superficial changes:
* Renamed getOpcode to getOpcodeName
* Changed getOpcodeName to return a const char * instead of string
* Added a getOpcode method to replace getInstType
* Changed code to use getOpcode instead of getInstType


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c8b25d40cbec063b1ca99cc1adf794399c6d05c0 07-Jul-2001 Chris Lattner <sabre@nondot.org> Changed the fundemental architecture of Operands for Instructions. Now
Operands are maintained as a vector<Use> in the User class, and operator
iterators are provided as before. Getting an operand no longer requires
a virtual function call.

WARNING: getOperand(x) where x >= getNumOperands() will now assert instead
of returning null!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
7fc9fe34390c66ca58646d09a87f7dbaacb6c1f8 28-Jun-2001 Chris Lattner <sabre@nondot.org> Miscellaneous cleanups:
* Convert post to pre-increment for for loops
* Use generic programming more
* Use new Value::cast* instructions
* Use new Module, Method, & BasicBlock forwarding methods
* Use new facilities in STLExtras.h
* Use new Instruction::isPHINode() method


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
28d480b31623371e9d738d17a62dd0bd6cdce1cd 21-Jun-2001 Chris Lattner <sabre@nondot.org> Add a space to the PHI node output code to make it look nicer


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
c24d2088dc3d79e3b7e38a358b4a71f156c06836 11-Jun-2001 Chris Lattner <sabre@nondot.org> Updates to support
* Changes in PHI node structure
* Change to PHI syntax


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
b9a4578df5e240d2e2e5d3f1f538188a054d70b4 07-Jun-2001 Chris Lattner <sabre@nondot.org> Fixed to print slightly differently. Added use counts for labels


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp
009505452b713ed2e3a8e99c5545a6e721c65495 06-Jun-2001 Chris Lattner <sabre@nondot.org> Initial revision


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/VMCore/AsmWriter.cpp