• Home
  • History
  • Annotate
  • only in /external/llvm/lib/Transforms/Instrumentation/
History log of /external/llvm/lib/Transforms/Instrumentation/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
563c712a3905bd86b1c895ecddb528a810fd89b9 23-May-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> Use zero-based shadow by default on Android.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157317 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
cf5a1461acaace0f3e7d11fbbcfbf635b8c8ea9d 24-Apr-2012 Shih-wei Liao <sliao@google.com> Merge with LLVM upstream r155090.

Conflicts:
lib/Support/Unix/PathV2.inc

Change-Id: I7b89833849f6cbcfa958a33a971d0f7754c9cb2c
cff60c1409e36079b4bc6ecbda84565143bf00af 11-Apr-2012 Kostya Serebryany <kcc@google.com> [tsan] two more compile-time optimizations:
- don't isntrument reads from constant globals.
Saves ~1.5% of instrumented instructions on CPU2006
(counting static instructions, not their execution).
- don't insrument reads from vtable (which is a global constant too).
Saves ~5%.

I did not measure the run-time impact of this,
but it is certainly non-negative.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154444 91177308-0d34-0410-b5e6-96231b3b80d8
hreadSanitizer.cpp
2076af0184bd38185a719ea07cb10a90e8565a89 10-Apr-2012 Kostya Serebryany <kcc@google.com> [tsan] compile-time instrumentation: do not instrument a read if
a write to the same temp follows in the same BB.
Also add stats printing.

On Spec CPU2006 this optimization saves roughly 4% of instrumented reads
(which is 3% of all instrumented accesses):
Writes : 161216
Reads : 446458
Reads-before-write: 18295



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154418 91177308-0d34-0410-b5e6-96231b3b80d8
hreadSanitizer.cpp
52eb699220aa00696b5c4a1a67141a8bcc8a4e68 26-Mar-2012 Kostya Serebryany <kcc@google.com> [tsan] treat vtable pointer updates in a special way (requires tbaa); fix a bug (forgot to return true after instrumenting); make sure the tsan tests are run

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153448 91177308-0d34-0410-b5e6-96231b3b80d8
hreadSanitizer.cpp
3770f605b522e34ef4a1fabb4dcaa2e76a7a2d96 22-Mar-2012 Shih-wei Liao <sliao@google.com> Migrate external/llvm to LLVM-153224-20120321.

Change-Id: I93619a538c59e5b1280d46534dac322fbccd14f7
ndroid.mk
c59a7995d22e2889706810c90a20a51ecfec278b 24-Mar-2012 Shih-wei Liao <sliao@google.com> Merge branch 'upstream' into sliao_d
208a4ff2b56f453910bb817540f34b8169f7702a 21-Mar-2012 Kostya Serebryany <kcc@google.com> [asan] fix one more bug related to long double

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153189 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
8c0134a77615b66f57250f0662bc899e4574551e 19-Mar-2012 Kostya Serebryany <kcc@google.com> [asan] don't emit __asan_mapping_offset/__asan_mapping_scale by default -- they are currently used only for experiments

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153040 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
6e590e3f61b101554f97d6ab257c802c9ec49862 15-Mar-2012 Kostya Serebryany <kcc@google.com> [tsan] use FunctionBlackList

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152755 91177308-0d34-0410-b5e6-96231b3b80d8
hreadSanitizer.cpp
a1c45044099cf7fb4a072f1326f164706d5bb2e2 15-Mar-2012 Kostya Serebryany <kcc@google.com> [asan] rename class BlackList to FunctionBlackList and move it into a separate file -- we will need the same functionality in ThreadSanitizer

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152753 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
MakeLists.txt
unctionBlackList.cpp
unctionBlackList.h
8019aac390baf43b3907d92928bad7fbe62588c6 06-Mar-2012 Stephen Hines <srhines@google.com> Merge with upstream LLVM @152063

Removed call to getsid() from LockFileManager.cpp, since bionic doesn't have
support for it.

Build updates
+TableGenAction.cpp
+X86ModRMFilters.cpp
-InstrEnumEmitter.cpp
-JITDebugRegisterer.cpp
-MCLoggingStreamer.cpp
+Hashing.cpp
-ElfCodeEmitter.cpp
-ElfWriter.cpp
-ObjectCodeEmitter.cpp
+DataStream.cpp
+StreamableMemoryObject.cpp
+CmpInstAnalysis.cpp
+LockFileManager.cpp
+IntrusiveRefCntPtr.cpp
+ThreadSanitizer.cpp
+ARMMachineFunctionInfo.cpp
+ARMELFObjectWriter.cpp
+MipsAnalyzeImmediate.cpp
+MipsMachineFunction.cpp
+X86MachineFunctionInfo.cpp
+X86ELFObjectWriter.cpp
+X86WinCOFFObjectWriter.cpp
+ResourcePriorityQueue.cpp
+ScheduleDAGVLIW.cpp
+MachineCopyPropagation.cpp
+MachineScheduler.cpp
+RegAllocBase.cpp
+libLLVMVectorize

Change-Id: I69e700fe357e275ec509af1daaa7408cd3cde3a1
ndroid.mk
c02a5c5e8d9c1fd2a20ad4aed40f328564e95b40 05-Mar-2012 Stephen Hines <srhines@google.com> Merge branch 'upstream' into merge-20120305

Conflicts:
lib/Support/Atomic.cpp

Change-Id: I563b3bc2a82942ccbae5bed42e53b9149a8bf3a0
d8313be41031e4d768f5b38199904d4debff88cd 02-Mar-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> ASan: use getTypeAllocSize instead of getTypeStoreSize.

This change replaces getTypeStoreSize with getTypeAllocSize in AddressSanitizer
instrumentation for stack allocations.

One case where old behaviour produced undesired results is an optimization in
InstCombine pass (PromoteCastOfAllocation), which can replace alloca(T) with
alloca(S), where S has the same AllocSize, but a smaller StoreSize. Another
case is memcpy(long double => long double), where ASan will poison bytes 10-15
of a stack-allocated long double (StoreSize 10, AllocSize 16,
sizeof(long double) = 16).

See http://llvm.org/bugs/show_bug.cgi?id=12047 for more context.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151887 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
3eccaa6625a8032bee6b84706cb46ed8eb915acf 14-Feb-2012 Kostya Serebryany <kcc@google.com> [tsan] fix compiler warnings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150449 91177308-0d34-0410-b5e6-96231b3b80d8
hreadSanitizer.cpp
60ebb1947faed42e493179e569c5db0c01d38a2a 13-Feb-2012 Kostya Serebryany <kcc@google.com> ThreadSanitizer, a race detector. First LLVM commit.
Clang patch (flags) will follow shortly.
The run-time library will also follow, but not immediately.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150423 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
nstrumentation.cpp
hreadSanitizer.cpp
95e3cf44a9d4672655dee3bd558bfeefa631dd55 08-Feb-2012 Kostya Serebryany <kcc@google.com> [asan] unpoison the stack before every noreturn call. Fixes asan issue 37. llvm part

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150102 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
858143816d43e58b17bfd11cb1b57afbd7f0f893 07-Feb-2012 Craig Topper <craig.topper@gmail.com> Convert assert(0) to llvm_unreachable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149967 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.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
ddressSanitizer.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
ddressSanitizer.cpp
6a89228faca4b30c4abc29b5dec98bdac011ea4c 31-Jan-2012 Chris Lattner <sabre@nondot.org> eliminate the "string" form of ConstantArray::get, using
ConstantDataArray::getString instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149365 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
a1a8a323f43a95620fc4c6b5aad8d5ff5e5eb590 31-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] fix the ObjC support (asan Issue #33)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149300 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
8375bc923638299410e75e8f668524fc1aa113bd 30-Jan-2012 Alexander Potapenko <glider@google.com> Fix compilation of ASan tests on OS X Lion (see http://code.google.com/p/address-sanitizer/issues/detail?id=32)
The redzones emitted by AddressSanitizer for CFString instances confuse the linker and are of little use, so we shouldn't add them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149243 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
f1639abf1aaba1448f719f595156cd0f4cd560cc 28-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] correctly use ConstantExpr::getGetElementPtr. Catch by NAKAMURA Takumi

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149172 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
0307b9a88574d7e54459181afaa656ac92971847 24-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] enable asan only for the functions that have Attribute::AddressSafety

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148846 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
25878042030e85c244b41bfcdfad27c32360e2ec 23-Jan-2012 Alexander Potapenko <glider@google.com> Implemented AddressSanitizer::getPassName()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148697 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
bcb55ce3862bbbedac4e09d7099c9e0efc434e4b 11-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] extend the workaround for http://llvm.org/bugs/show_bug.cgi?id=11395: don't instrument the function at all on x86_32 if it has a large asm blob

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147953 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
3c7faae346f548c55cad86d82a2e242443001f23 06-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] cleanup: remove the SIGILL-related code (compiler part)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147667 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
a1e6e241a813f81be2d2f36ab60c950ca297574b 16-Dec-2011 Logan Chien <loganchien@google.com> Merge with LLVM upstream r146714 (Dec 16th 2011)

Change-Id: Ied458adb08bf9a69250cbcee9b14b44d17e8701a
a4b2b1d8fbb84b0b6fac5abce21a2a5c5e907282 15-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] add the name of the module to the description of a global variable. This improves the readability of global-buffer-overflow reports.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146698 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
7bcfc9950bac0f411f9671e8d6ce483bd219727e 15-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. compiler part.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146688 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
bd7910d158ad2e2a3cb17f2b3f160a9c39dd6b0f 14-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] remove .preinit_array from the compiler module (it breaks .so builds). This should be done in the run-time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146527 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
085cb8f0b957841ab667a46be0c49ce4ee8c9c79 13-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] report an error if blacklist file contains a malformed regex. fixes asan issue 17

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146503 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
4ab406d7fc06b1272d02cd8be46f0c5ebe51a3da 12-Dec-2011 Daniel Dunbar <daniel@zuster.org> LLVMBuild: Remove trailing newline, which irked me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146409 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
9b02741d2284d9516a59666c211fe1f57e8803ad 12-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] use .preinit_array only on linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146379 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
25a8b809a074941e52cf357674b4382437aabb08 09-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] call __asan_init from .preinit_array. This simplifies __asan_init vs malloc chicken-and-egg situation on Android and probably on other flavours of Linux. Patch by eugenis@google.com.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146284 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
7c0674100443b4115d2fd6472e59cd8dcb9cc6d4 06-Dec-2011 Nick Lewycky <nicholas@mxc.ca> Expose a switch for the new gcov format.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145880 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
cc1d856d8e8e11407b3c6c1d08768f77c3722e38 01-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] two minor fixes: use UnreachableInst after the neverreturn function call; use report_fatal_error when blacklist file can not be found

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145611 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
d782bae970e888572f0458ac05369bbd7752f05a 29-Nov-2011 Daniel Dunbar <daniel@zuster.org> build/CMake: Finish removal of add_llvm_library_dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145420 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
bba40db07234cef7867b45c67f50632e684cbb15 28-Nov-2011 Nick Lewycky <nicholas@mxc.ca> Place the "cfg checksum" around a test. This was recently added in April 2011 to
gcc, though I thought it was older (my gcc 4.4 has it as a local patch. Whoops!)
This fixes PR10589.

Also add some debugging statements.

Remove GcnoFiles, the mapping from CompilationUnit to raw_ostream. Now that we
start by iterating over each CU and descending into them, there's no need to
maintain a mapping.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145208 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
b170fad25ac66976b67eaab820e466db22a7f07d 25-Nov-2011 Logan Chien <loganchien@google.com> Apply changes to migrate to llvm upstream r145126 (Nov 25th 2011)

Change-Id: Idf8adbb0c3bbd1048a042189484913bd2b6e286f
ndroid.mk
1429059dc0129c1cec938c29d6fce89e14293241 25-Nov-2011 Logan Chien <loganchien@google.com> Merge with LLVM upstream r145126 (Nov 25th 2011)

Change-Id: I30d08ae004a4c3c74092ad2537ab30cce4280e1d
d2703dec271d82c8c9d22afb835c07730fd25d47 23-Nov-2011 Kostya Serebryany <kcc@google.com> [asan] do not instrument threadlocal globals, this is buggy

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145092 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
5a3a9c937198084498a196dae856ac5a5a005bcc 18-Nov-2011 Kostya Serebryany <kcc@google.com> [asan] workaround for reg alloc bug 11395: don't instrument functions with large chunks of inline assembler

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144962 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
2e7fb2f73641f1f1ca385fe7777075945bf4ca24 18-Nov-2011 Kostya Serebryany <kcc@google.com> quick fix: remove GlobalVariable::GlobalVariable mistakenly commited at r144933. For some reason this compiles on linux

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144936 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
7cf2a04361e8613264498e50babe52d65c070473 18-Nov-2011 Kostya Serebryany <kcc@google.com> fall back to explicit list of allowed linkages when instrumenting globals in asan; add a test check that asan does not touch linkonce_odr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144933 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
800e03f59896ef4b26d988f1878370bb5aeec0d8 16-Nov-2011 Kostya Serebryany <kcc@google.com> AddressSanitizer, first commit (compiler module only)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144758 91177308-0d34-0410-b5e6-96231b3b80d8
ddressSanitizer.cpp
MakeLists.txt
nstrumentation.cpp
a7b0cb759433c715065440ee2a963a04db7f2b0b 15-Nov-2011 Benjamin Kramer <benny.kra@googlemail.com> Remove all remaining uses of Value::getNameStr().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144648 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
athProfiling.cpp
00ade8bab0045bde35b13d2489021b8642aeb0cc 03-Nov-2011 Daniel Dunbar <daniel@zuster.org> build: Add initial cut at LLVMBuild.txt files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143634 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
a3a2dfd4a2a8265a9a0c962cb776e2e6ba123956 03-Nov-2011 Daniel Dunbar <daniel@zuster.org> build: Add initial cut at LLVMBuild.txt files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143634 91177308-0d34-0410-b5e6-96231b3b80d8
LVMBuild.txt
0ebc07a576037e4e36f68bf5cece32740ca120c0 19-Oct-2011 Logan Chien <loganchien@google.com> Merge with LLVM upstream 2011/10/20 (r142530)

Conflicts:
lib/Support/Unix/Host.inc

Change-Id: Idc00db3b63912dca6348bddd9f8a1af2a8d5d147
d2351e5c088147b5d71d5745cf07b5085a7f0073 19-Oct-2011 Logan Chien <loganchien@google.com> Add build rules for llc, opt, and llvm-link on target device.

Change-Id: I42f35da6f5ce77ab8969746131f5e6fdd42e5afa
ndroid.mk
680018ff8965610b3f1c976b0be1dfd45116b218 20-Sep-2011 Devang Patel <dpatel@apple.com> If simple ownership works then friendship is not required.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140169 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
16c19a155c65fd41865562fe4e678ef32728510b 20-Sep-2011 Devang Patel <dpatel@apple.com> Update GCOVLines to provide interfaces to write line table and calculate complete length.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140167 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
29d9610f2349676aa6a6e85449f4511812dafbcf 20-Sep-2011 Devang Patel <dpatel@apple.com> Update comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140156 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
68155d31cd0175be89e26ee68387cb411fca537b 20-Sep-2011 Devang Patel <dpatel@apple.com> Use StringRef instead of std::string.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140154 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
865375ca7f68e60c0234916dd6bb365bb674bddb 20-Sep-2011 Devang Patel <dpatel@apple.com> Eliminate unnecessary copy of FileName from GCOVLines.
GCOVLines is always accessed through a StringMap where the key is FileName.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140151 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
ec6f2559fe1e257d221c9b4ce6c32584f7cc99b2 20-Sep-2011 Devang Patel <dpatel@apple.com> There is no need to write a local utility routine to find subprogram info if the utility routine is already available in DebugInfo.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140145 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
89d4411cef736898047aa7e3bc159da39cacf8e6 25-Aug-2011 Bill Wendling <isanbard@gmail.com> When inserting new instructions, use getFirstInsertionPt instead of
getFirstNonPHI so that it will skip over the landingpad instructions as well.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138537 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
rofilingUtils.cpp
58e2cdfabd7b7c9a780dc086add162262c671ac4 18-Aug-2011 Nick Lewycky <nicholas@mxc.ca> The edge from DISubprogram to DICompileUnit has been removed in recent versions
of debug info.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137972 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
f6d3a4c7c4d14ad7a4e07e9f80f94f73651960d8 18-Aug-2011 Devang Patel <dpatel@apple.com> Do not use DebugInfoFinder. Extract debug info directly from llvm.dbg.cu named mdnode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137890 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
5b6f42f57e730c2d968c313a27fa505a3c3e5efa 16-Aug-2011 Bill Wendling <isanbard@gmail.com> Use the getFirstInsertionPt() method instead of getFirstNonPHI + an 'isa<>'
check for a LandingPadInst.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137745 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
05d0023a95a11cde1247920d61d26cc82216f566 16-Aug-2011 Bill Wendling <isanbard@gmail.com> A few places where we want to skip the landingpad instruction for insertion.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137712 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
ac03e736c77bcf7e8deb515fc16a7e55d343dc8d 29-Jul-2011 Chandler Carruth <chandlerc@gmail.com> Rewrite the CMake build to use explicit dependencies between libraries,
specified in the same file that the library itself is created. This is
more idiomatic for CMake builds, and also allows us to correctly specify
dependencies that are missed due to bugs in the GenLibDeps perl script,
or change from compiler to compiler. On Linux, this returns CMake to
a place where it can relably rebuild several targets of LLVM.

I have tried not to change the dependencies from the ones in the current
auto-generated file. The only places I've really diverged are in places
where I was seeing link failures, and added a dependency. The goal of
this patch is not to start changing the dependencies, merely to move
them into the correct location, and an explicit form that we can control
and change when necessary.

This also removes a serialization point in the build because we don't
have to scan all the libraries before we begin building various tools.
We no longer have a step of the build that regenerates a file inside the
source tree. A few other associated cleanups fall out of this.

This isn't really finished yet though. After talking to dgregor he urged
switching to a single CMake macro to construct libraries with both
sources and dependencies in the arguments. Migrating from the two macros
to that style will be a follow-up patch.

Also, llvm-config is still generated with GenLibDeps.pl, which means it
still has slightly buggy dependencies. The internal CMake
'llvm-config-like' macro uses the correct explicitly specified
dependencies however. A future patch will switch llvm-config generation
(when using CMake) to be based on these deps as well.

This may well break Windows. I'm getting a machine set up now to dig
into any failures there. If anyone can chime in with problems they see
or ideas of how to solve them for Windows, much appreciated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136433 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
726f1b90a9e9149227a9aa37a2219f167776f804 26-Jul-2011 Bill Wendling <isanbard@gmail.com> Use the correct for for the version. It's little endian and my brain is
obviously big endian. :-)
PR10502


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136111 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
a9203109f4ac95aa7e9624f2838e3d89623ec902 25-Jul-2011 Jay Foad <jay.foad@gmail.com> Convert GetElementPtrInst to use ArrayRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135904 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
0a2a60ace9b79164b71794ce7ff981171c61e442 22-Jul-2011 Jay Foad <jay.foad@gmail.com> Convert IRBuilder::CreateGEP and IRBuilder::CreateInBoundsGEP to use
ArrayRef.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135761 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
dab3d29605a5c83db41b28176273ef55961120c1 21-Jul-2011 Jay Foad <jay.foad@gmail.com> Convert ConstantExpr::getGetElementPtr and
ConstantExpr::getInBoundsGetElementPtr to use ArrayRef.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135673 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
ebf5f0962932032481ae306b42c96c68c3a0be95 20-Jul-2011 Logan Chien <loganchien@google.com> Merge with LLVM upstream r135568 (Jul 20th 2011)

Conflicts:
lib/Bitcode/Reader/BitcodeReader.cpp

Change-Id: Iebed76d2f7d281e742947e31d9a0b78174daf2d6
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
dgeProfiling.cpp
COVProfiling.cpp
ptimalEdgeProfiling.cpp
athProfiling.cpp
rofilingUtils.cpp
a71642b2a4944eaa269d881cf71b02b8e8fe5638 16-Jul-2011 Nowar Gu <nowar100@gmail.com> Merge upstream to r135343 at Sat. 16th July 2011.
a3efbb15ddd5aa9006564cd79086723640084878 15-Jul-2011 Jay Foad <jay.foad@gmail.com> Convert CallInst and InvokeInst APIs to use ArrayRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135265 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
rofilingUtils.cpp
5fdd6c8793462549e3593890ec61573da06e3346 12-Jul-2011 Jay Foad <jay.foad@gmail.com> Second attempt at de-constifying LLVM Types in FunctionType::get(),
StructType::get() and TargetData::getIntPtrType().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134982 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
rofilingUtils.cpp
2280ebd61416b73d0b6137f275b25af82e268d1f 12-Jul-2011 Bill Wendling <isanbard@gmail.com> Revert r134893 and r134888 (and related patches in other trees). It was causing
an assert on Darwin llvm-gcc builds.

Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file /Users/buildslave/zorg/buildbot/smooshlab/slave-0.8/build.llvm-gcc-i386-darwin9-RA/llvm.src/lib/VMCore/Instructions.cpp, li\
ne 2067.
etc.

http://smooshlab.apple.com:8013/builders/llvm-gcc-i386-darwin9-RA/builds/2354

--- Reverse-merging r134893 into '.':
U include/llvm/Target/TargetData.h
U include/llvm/DerivedTypes.h
U tools/bugpoint/ExtractFunction.cpp
U unittests/Support/TypeBuilderTest.cpp
U lib/Target/ARM/ARMGlobalMerge.cpp
U lib/Target/TargetData.cpp
U lib/VMCore/Constants.cpp
U lib/VMCore/Type.cpp
U lib/VMCore/Core.cpp
U lib/Transforms/Utils/CodeExtractor.cpp
U lib/Transforms/Instrumentation/ProfilingUtils.cpp
U lib/Transforms/IPO/DeadArgumentElimination.cpp
U lib/CodeGen/SjLjEHPrepare.cpp
--- Reverse-merging r134888 into '.':
G include/llvm/DerivedTypes.h
U include/llvm/Support/TypeBuilder.h
U include/llvm/Intrinsics.h
U unittests/Analysis/ScalarEvolutionTest.cpp
U unittests/ExecutionEngine/JIT/JITTest.cpp
U unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
U unittests/VMCore/PassManagerTest.cpp
G unittests/Support/TypeBuilderTest.cpp
U lib/Target/MBlaze/MBlazeIntrinsicInfo.cpp
U lib/Target/Blackfin/BlackfinIntrinsicInfo.cpp
U lib/VMCore/IRBuilder.cpp
G lib/VMCore/Type.cpp
U lib/VMCore/Function.cpp
G lib/VMCore/Core.cpp
U lib/VMCore/Module.cpp
U lib/AsmParser/LLParser.cpp
U lib/Transforms/Utils/CloneFunction.cpp
G lib/Transforms/Utils/CodeExtractor.cpp
U lib/Transforms/Utils/InlineFunction.cpp
U lib/Transforms/Instrumentation/GCOVProfiling.cpp
U lib/Transforms/Scalar/ObjCARC.cpp
U lib/Transforms/Scalar/SimplifyLibCalls.cpp
U lib/Transforms/Scalar/MemCpyOptimizer.cpp
G lib/Transforms/IPO/DeadArgumentElimination.cpp
U lib/Transforms/IPO/ArgumentPromotion.cpp
U lib/Transforms/InstCombine/InstCombineCompares.cpp
U lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
U lib/Transforms/InstCombine/InstCombineCalls.cpp
U lib/CodeGen/DwarfEHPrepare.cpp
U lib/CodeGen/IntrinsicLowering.cpp
U lib/Bitcode/Reader/BitcodeReader.cpp



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134949 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
rofilingUtils.cpp
eeb64ae6e52ac2a7980884fe89c01508014af6a9 11-Jul-2011 Jay Foad <jay.foad@gmail.com> De-constify Types in StructType::get() and TargetData::getIntPtrType().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134893 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
f362affa3a695164a94d275fb44d18f44ebb855a 11-Jul-2011 Jay Foad <jay.foad@gmail.com> De-constify Types in FunctionType::get().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134888 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
bb5c18c80e7ae4ce49eb9067b664f0559ec50965 23-Jun-2011 Nowar Gu <nowar100@gmail.com> Merge upstream to r133679 at Thu. 23th Jun 2011.
267010864e139781ef5949939e081c41f954de0a 22-Jun-2011 Jay Foad <jay.foad@gmail.com> Replace the existing forms of ConstantArray::get() with a single form
that takes an ArrayRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133615 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
2a73c7f188f16049faa9282c9bd1217f878bd5d2 17-Jun-2011 Nowar Gu <nowar100@gmail.com> Fix source list of Android.mk.
ndroid.mk
907af0f20f58f2ea26da7ea64e1f094cd6880db7 17-Jun-2011 Nowar Gu <nowar100@gmail.com> Merge upstream to r133240 at Fri. 17th Jun 2011.

Conflicts:
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/ARM/ARMCodeEmitter.cpp
b065b06c12dba6001b8140df2744d0c856ef6ea1 20-Jun-2011 Chris Lattner <sabre@nondot.org> Revamp the "ConstantStruct::get" methods. Previously, these were scattered
all over the place in different styles and variants. Standardize on two
preferred entrypoints: one that takes a StructType and ArrayRef, and one that
takes StructType and varargs.

In cases where there isn't a struct type convenient, we now add a
ConstantStruct::getAnon method (whose name will make more sense after a few
more patches land).

It would be "really really nice" if the ConstantStruct::get and
ConstantVector::get methods didn't make temporary std::vectors.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133412 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
b2318662b6d2e6d9ea9917fd280dde0ba9a938ad 19-Jun-2011 Chris Lattner <sabre@nondot.org> fix the varargs version of StructType::get to not require an LLVMContext, making usage
much cleaner.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133364 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
f5c95b889f270f170ff4f6a24b082be5bb68296e 18-May-2011 Bill Wendling <isanbard@gmail.com> Conditionalize the format of the GCOV files by target type. Darwin uses the 4.2
format.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131503 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
d363ff334d796c7f3df834d928a10d88ed758454 06-May-2011 Nick Lewycky <nicholas@mxc.ca> The computation of string length is not that complicated. Fix it, again. :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130967 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
5409a188328d9de3755febc23558d4fc1797d04e 05-May-2011 Nick Lewycky <nicholas@mxc.ca> Update the gcov version used slightly, to make it stop causing modern gcov's to
crash.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130911 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
7a75a9ade80540e919027f15ac91c5406af8504b 05-May-2011 Nick Lewycky <nicholas@mxc.ca> Remove dead function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130903 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
fcf74ed5a2bc10570dec2084a2db1f6580b1210d 05-May-2011 Nick Lewycky <nicholas@mxc.ca> When the path wasn't emitted by the frontend, discard any path on the source
filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130897 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
269687fa350c1aa044bc063c64362a04ecabaa33 04-May-2011 Nick Lewycky <nicholas@mxc.ca> Emit gcov data files to the directory specified in the metadata produced by the
frontend, if applicable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130835 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
d2189bf12af59fa59aef375ce05d4ba9122ca287 03-May-2011 Benjamin Kramer <benny.kra@googlemail.com> Remove unused variables caught by GCC's -Wunused-but-set-variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130755 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
7a2ba2fbe4b0ccaacc2cedbc1bfd2a3764170efe 28-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Only read *predecessor once so as to fix a theoretical issue where it changes
between two reads (threading).

Fix an off-by-one in the indirect counter table that I meant to revert after an
earlier experiment. Whoops!

Implement GCOV_PREFIX. Doesn't handle GCOV_PREFIX_STRIP yet.

Fix an off-by-one in string emission. Extra whoops!

Tolerate DISubprograms that have null Function*'s attached to them. I don't yet
understand what this means, but it happens when you have a global static with
a non-trivial constructor/destructor.

Fix a crash on switch statements with a single successor (default-only).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130443 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
1790c9cbb6714e81eab1412909a2320acaecc43b 26-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Rename everything to follow LLVM style ... I think.

Add support for switch and indirectbr edges. This works by densely numbering
all blocks which have such terminators, and then separately numbering the
possible successors. The predecessors write down a number, the successor knows
its own number (as a ConstantInt) and sends that and the pointer to the number
the predecessor wrote down to the runtime, who looks up the counter in a
per-function table.

Coverage data should now be functional, but I haven't tested it on anything
other than my 2-file synthetic test program for coverage.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130186 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.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
ptimalEdgeProfiling.cpp
athProfiling.cpp
a4c4c0e1298f4dd9791eff2bae857e7be6d0ab56 21-Apr-2011 Nick Lewycky <nicholas@mxc.ca> In gcov profiling, give all functions an extra unified return block. This is
necessary since gcov counts transitions between blocks. It can't see if you've
run every line in a straight-line function, so we add an edge for it to notice.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129905 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
17df2c3240837b4382898ead8c3ead407a338520 21-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Fix think-o: emit all 8 bytes of the EOF marker. Also reflow a line in a
comment for 80 columns.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129904 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
a61e52c9b7cf874b46cef687c1c4627a35952542 21-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Add independent controls for whether GCOV profiling should emit .gcno files or
instrument the program to emit .gcda.
TODO: we should emit slightly different .gcda files when .gcno emission is off.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129903 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
3b55a372d4c457d65dadd9a04c2b2d310f1bab83 18-Apr-2011 Chandler Carruth <chandlerc@gmail.com> Mark some functions as used which are used within debug-only code. This
silences Clang's -Wunused-function when building in release mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129709 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
86837e8745bdfc49bd1c5d762170631704c8cf93 16-Apr-2011 Rafael Espindola <rafael.espindola@gmail.com> Fix cmake build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129632 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
0c4de8a4eb5fd6437b571611794ef84427fc4755 16-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Move the re-stemming function up top and use it where it's currently inlined.
Break the arc-profile code out to a function like the notes emission code is,
and reorder the functions in the file.

The only functionality change is that we no longer modify the Module when the
Module has no debug info to use.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129631 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
b1928704201034c785a26296a49f69355eb56a05 16-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Rename LineProfiling to GCOVProfiling to more accurately represent what it
does. Also mostly implement it. Still a work-in-progress, but generates legal
output on crafted test cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129630 91177308-0d34-0410-b5e6-96231b3b80d8
COVProfiling.cpp
nstrumentation.cpp
ineProfiling.cpp
7a2bdde0a0eebcd2125055e0eacaca040f0b766c 15-Apr-2011 Chris Lattner <sabre@nondot.org> Fix a ton of comment typos found by codespell. Patch by
Luis Felipe Strano Moraes!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129558 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
39df9b5920add48007e27a3fea681d440156d006 12-Apr-2011 NAKAMURA Takumi <geek4civic@gmail.com> lib/Transforms/Instrumentation/CMakeLists.txt: Add LineProfiling.cpp to fix up r129340.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129343 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
93b68b20d46f52e2df6914343f1c54c96d6bdf3d 12-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Add support for line profiling. Very work-in-progress.

Use debug info in the IR to find the directory/file:line:col. Each time that location changes, bump a counter.

Unlike the existing profiling system, we don't try to look at argv[], and thusly don't require main() to be present in the IR. This matches GCC's technique where you specify the profiling flag when producing each .o file.

The runtime library is minimal, currently just calling printf at program shutdown time. The API is designed to make it possible to emit GCOV data later on.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129340 91177308-0d34-0410-b5e6-96231b3b80d8
nstrumentation.cpp
ineProfiling.cpp
ceb465a8a4ce2101bd7dd50db99cbc6b82757bd6 12-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Consider ConstantAggregateZero as well as ConstantArray/Struct.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129338 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
562b84b3aea359d1f918184e355da82bf05eb290 11-Apr-2011 Jay Foad <jay.foad@gmail.com> Don't include Operator.h from InstrTypes.h.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129271 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
8feda7ee332f1f91e4d3a42d9f7ad729012ed174 09-Apr-2011 Jush Lu <jush.msn@gmail.com> Merge upstream r129128
918035f802be7840177f77389d0b70415f84b06f 09-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Add a function for profiling to run at shutdown. Unlike the existing API, this
can be used even when main() isn't present in the Module, but it means that you
don't get to read argv[].


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129163 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
rofilingUtils.h
06d2b4223ff8e3776d059598a553c08525715311 05-Apr-2011 Nick Lewycky <nicholas@mxc.ca> Fix typos. Adjust some whitespace for style. No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128924 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.h
ptimalEdgeProfiling.cpp
3ecfc861b4365f341c5c969b40e1afccde676e6f 30-Mar-2011 Jay Foad <jay.foad@gmail.com> Remove PHINode::reserveOperandSpace(). Instead, add a parameter to
PHINode::Create() giving the (known or expected) number of operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128537 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
d8b4fb4aab4d6fedb2b14bed1b846451b17bde7c 30-Mar-2011 Jay Foad <jay.foad@gmail.com> (Almost) always call reserveOperandSpace() on newly created PHINodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128535 91177308-0d34-0410-b5e6-96231b3b80d8
athProfiling.cpp
cc7665f5895e1dd9682ee21d1e755d0de28c161b 09-Mar-2011 Jush Lu <jush.msn@gmail.com> Update build scripts after merge r127116
ndroid.mk
b5530586d68bd25831a6796b5d3199cb0769a35c 09-Mar-2011 Jush Lu <jush.msn@gmail.com> Merge upstream r127116
4d03e416be8cf1f0f502118826b7cbaeec0b79b2 28-Feb-2011 jush <jush.msn@gmail.com> Merge LLVM upstream r119309 into honey
04317cc618aeae28910916469e074d8ce0fcaa03 29-Jan-2011 Andrew Trick <atrick@apple.com> Implementation of path profiling.
Modified patch by Adam Preuss.

This builds on the existing framework for block tracing, edge profiling and optimal edge profiling.
See -help-hidden for new flags.
For documentation, see the technical report "Implementation of Path Profiling..." in llvm.org/pubs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124515 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
dgeProfiling.cpp
nstrumentation.cpp
ptimalEdgeProfiling.cpp
athProfiling.cpp
rofilingUtils.cpp
rofilingUtils.h
42c32daadbb1bd0626cced08c418d1b7a0b16fb4 14-Jan-2011 Logan <tzuhsiang.chien@gmail.com> Add LOCAL_MODULE_TAGS := optional

Change-Id: I292f6297b06f97360c15884677057d624e73fbf6
ndroid.mk
a65d6a686e6ad865c61aec70c5bdfb30bf6f5b22 19-Oct-2010 Owen Anderson <resistor@mac.com> Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which
must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize
the pass's dependencies.

Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the
CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h
before parsing commandline arguments.

I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems
with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass
registration/creation, please send the testcase to me directly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116820 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
081c34b725980f995be9080eaec24cd3dfaaf065 19-Oct-2010 Owen Anderson <resistor@mac.com> Get rid of static constructors for pass registration. Instead, every pass exposes an initializeMyPassFunction(), which
must be called in the pass's constructor. This function uses static dependency declarations to recursively initialize
the pass's dependencies.

Clients that only create passes through the createFooPass() APIs will require no changes. Clients that want to use the
CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h
before parsing commandline arguments.

I have tested this with all standard configurations of clang and llvm-gcc on Darwin. It is possible that there are problems
with the static dependencies that will only be visible with non-standard options. If you encounter any crash in pass
registration/creation, please send the testcase to me directly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116820 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
cdb0c03397e05fb01ed67a7caaa5f82ec993c564 12-Oct-2010 Owen Anderson <resistor@mac.com> Begin adding static dependence information to passes, which will allow us to
perform initialization without static constructors AND without explicit initialization
by the client. For the moment, passes are required to initialize both their
(potential) dependencies and any passes they preserve. I hope to be able to relax
the latter requirement in the future.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116334 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
2ab36d350293c77fc8941ce1023e4899df7e3a82 12-Oct-2010 Owen Anderson <resistor@mac.com> Begin adding static dependence information to passes, which will allow us to
perform initialization without static constructors AND without explicit initialization
by the client. For the moment, passes are required to initialize both their
(potential) dependencies and any passes they preserve. I hope to be able to relax
the latter requirement in the future.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116334 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
1434dfa8cead98bd1e63411fcb9424e1d37f61ac 08-Oct-2010 Owen Anderson <resistor@mac.com> Now with fewer extraneous semicolons!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115996 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
ce665bd2e2b581ab0858d1afe359192bac96b868 08-Oct-2010 Owen Anderson <resistor@mac.com> Now with fewer extraneous semicolons!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115996 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
aaa8d878f0357b27f02a4f7a088d355209d8c78d 07-Oct-2010 Owen Anderson <resistor@mac.com> Add initialization routines for Instrumentation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115971 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
nstrumentation.cpp
aa4897fa1323ef78d5e72a80c74e96eb21f72057 07-Oct-2010 Owen Anderson <resistor@mac.com> Add initialization routines for Instrumentation.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115971 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
nstrumentation.cpp
f318164d18455fe44fcc9e03329036917f303edc 14-Sep-2010 Michael J. Spencer <bigcheesegs@gmail.com> Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."

This reverts commit r113632

Conflicts:

cmake/modules/AddLLVM.cmake

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113819 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
3a210e2d302758101ac06946e86027b327c7d0f3 14-Sep-2010 Michael J. Spencer <bigcheesegs@gmail.com> Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."

This reverts commit r113632

Conflicts:

cmake/modules/AddLLVM.cmake

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113819 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
da61c1662bd86ea1f7fad601e9966f1b700636c1 11-Sep-2010 Shih-wei Liao <sliao@google.com> Merge commit '69494cf8102cf872e9cb76662e9960be7c112112' into HEAD

Conflicts:
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/ARM/ARMCodeEmitter.cpp
lib/Target/ARM/ARMJITInfo.cpp
lib/Target/ARM/ARMRelocations.h
lib/Transforms/IPO/MergeFunctions.cpp

Change-Id: I23d40983717e072fa49334c1fa54f2cf961476c7
338c97baad1444a4158a7d99162e0e654f058c43 10-Sep-2010 Michael J. Spencer <bigcheesegs@gmail.com> CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113632 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
4e9c939312ff73bd0c6a6485fd5f97012f5910fa 10-Sep-2010 Michael J. Spencer <bigcheesegs@gmail.com> CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113632 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
28c238c9ded0b5c91e122c94b5a02d76a5245c11 20-Aug-2010 Ying Wang <wangying@google.com> Fix sim build.

Note that this only makes the sim build green, but the built images won't work for sure:
No libbcc.so, which depends on something else that can not build in sim mode.
No x86 bitcode is generated as well, I believe.

Change-Id: Idca8378427196622ac77cd56a38c6a160f03ba22
ndroid.mk
7569322765651f19eea0609fb082e6b267d5d2b5 06-Aug-2010 Owen Anderson <resistor@mac.com> Reapply r110396, with fixes to appease the Linux buildbot gods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110460 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
90c579de5a383cee278acc3f7e7b9d0a656e6a35 06-Aug-2010 Owen Anderson <resistor@mac.com> Reapply r110396, with fixes to appease the Linux buildbot gods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110460 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
619acdc63ab0a47d125dca0591285c8ac4c9ed20 06-Aug-2010 Owen Anderson <resistor@mac.com> Revert r110396 to fix buildbots.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110410 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
1f74590e9d1b9cf0f1f81a156efea73f76546e05 06-Aug-2010 Owen Anderson <resistor@mac.com> Revert r110396 to fix buildbots.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110410 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
0e63653ab0d25d579ad99948db606d8723d271dd 06-Aug-2010 Owen Anderson <resistor@mac.com> Don't use PassInfo* as a type identifier for passes. Instead, use the address of the static
ID member as the sole unique type identifier. Clean up APIs related to this change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110396 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
9ccaf53ada99c63737547c0235baeb8454b04e80 06-Aug-2010 Owen Anderson <resistor@mac.com> Don't use PassInfo* as a type identifier for passes. Instead, use the address of the static
ID member as the sole unique type identifier. Clean up APIs related to this change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110396 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
6374c3d4d7b1fece8ed9acb590f809a0e6fb17ee 22-Jul-2010 Owen Anderson <resistor@mac.com> Fix batch of converting RegisterPass<> to INTIALIZE_PASS().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109045 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
d13db2c59cc94162d6cf0a04187d408bfef6d4a7 22-Jul-2010 Owen Anderson <resistor@mac.com> Fix batch of converting RegisterPass<> to INTIALIZE_PASS().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109045 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
e65ac2e75d693930b7f7988e8be09fc157f68cab 14-Jul-2010 Shih-wei Liao <sliao@google.com> Add opt.

Change-Id: Icecd0b98914256237f5e34cb0b5e53b5dcac53e7
ndroid.mk
b38b9f6bcb08d87d6d77ee6fe27b63712fba2f35 28-Jun-2010 Gabor Greif <ggreif@gmail.com> use setArgOperand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107004 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
18c383f87fb5d999398f949f53b1642c431aaf63 28-Jun-2010 Gabor Greif <ggreif@gmail.com> use setArgOperand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107004 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
559d513348a11936bc90b64aad75e2540b26c6a4 22-Jun-2010 Dan Gohman <gohman@apple.com> Use pre-increment instead of post-increment when the result is not used.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106542 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
fe60104ac97f3a8736dcfbfdf9547c7b7cc7b951 22-Jun-2010 Dan Gohman <gohman@apple.com> Use pre-increment instead of post-increment when the result is not used.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106542 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
fbf918ba42cda25ba57d28eecd0aee89a83a1ecc 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
rofilingUtils.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
rofilingUtils.cpp
b86413602e2d1d0d510016044092949168ac4d3f 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
rofilingUtils.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
rofilingUtils.cpp
ab05d8fcf61f7b926cf3e08f111794c69ca60690 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
rofilingUtils.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
rofilingUtils.cpp
763153ef8466ad11db0c5bb55647483cc5d69a2a 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
rofilingUtils.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
rofilingUtils.cpp
52f155ee5d607b3773c2bc19fa688758f8887e35 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
rofilingUtils.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
rofilingUtils.cpp
d46fdb45387f46beeadc04472b3a66ad1da3aca1 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
rofilingUtils.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
rofilingUtils.cpp
e4454320b3cfffe926a487c33fbeb454366de2f8 07-Apr-2010 Shih-wei Liao <sliao@google.com> libbcc

Change-Id: Ieaa3ebd5a38f370752495549f8870b534eeedfc5
rofilingUtils.cpp
e92dee17fa016e12fa9fad042f3d19bf9322908b 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
rofilingUtils.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
rofilingUtils.cpp
e264f62ca09a8f65c87a46d562a4d0f9ec5d457e 10-Feb-2010 Shih-wei Liao <sliao@google.com> Check in LLVM r95781.
MakeLists.txt
dgeProfiling.cpp
akefile
aximumSpanningTree.h
ptimalEdgeProfiling.cpp
rofilingUtils.cpp
rofilingUtils.h
e9a40677cd1fd95ed7e9b75a1df19449f432ad9e 24-Jan-2010 Chris Lattner <sabre@nondot.org> make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
43b5f9312d56be400af031f7487a99b75b7b0f97 24-Jan-2010 Chris Lattner <sabre@nondot.org> make -fno-rtti the default unless a directory builds with REQUIRES_RTTI.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94378 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
5c804558fe5a69a7534b8a3bb7420ec1a483a1c8 22-Jan-2010 Chris Lattner <sabre@nondot.org> Stop building RTTI information for *most* llvm libraries. Notable
missing ones are libsupport, libsystem and libvmcore. libvmcore is
currently blocked on bugpoint, which uses EH. Once it stops using
EH, we can switch it off.

This #if 0's out 3 unit tests, because gtest requires RTTI information.
Suggestions welcome on how to fix this.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94164 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
e73a31f667ad2fe03e25c97ac45b58c30d7f07c3 22-Jan-2010 Chris Lattner <sabre@nondot.org> Stop building RTTI information for *most* llvm libraries. Notable
missing ones are libsupport, libsystem and libvmcore. libvmcore is
currently blocked on bugpoint, which uses EH. Once it stops using
EH, we can switch it off.

This #if 0's out 3 unit tests, because gtest requires RTTI information.
Suggestions welcome on how to fix this.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94164 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
e2232b7781a0521f0c24d8f9a0475421ba22843d 21-Jan-2010 Chris Lattner <sabre@nondot.org> simplify this code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94048 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
05273448533565cf14d70e10f88919ee51755bc8 21-Jan-2010 Chris Lattner <sabre@nondot.org> simplify this code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94048 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
f0e83d2fd7d71ba3f18fffdb36cf9b70dc1f8490 05-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Move remaining stuff to the isInteger predicate.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92771 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
8c65f6e71c1d46d823b9a884819992a9255edd54 05-Jan-2010 Benjamin Kramer <benny.kra@googlemail.com> Move remaining stuff to the isInteger predicate.


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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92607 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
0aaf62daaf7cb374fcc031b240783a389c17a5ab 02-Jan-2010 Chris Lattner <sabre@nondot.org> remove the random sampling framework, which is not maintained anymore.
If there is interest, it can be resurrected from SVN. PR4912.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92422 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
MakeLists.txt
SProfiling.cpp
SProfiling.h
5fadf1770901ae9ce231d9a68cb68da7bc4f2a91 02-Jan-2010 Chris Lattner <sabre@nondot.org> remove the random sampling framework, which is not maintained anymore.
If there is interest, it can be resurrected from SVN. PR4912.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92422 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
MakeLists.txt
SProfiling.cpp
SProfiling.h
00e637ba6ff6e9749f67cbed852462839d14241b 02-Dec-2009 Andreas Neustifter <astifter@gmx.at> Cheap, mostly strict, stable sorting.

This is necessary for tests so the results are comparable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90320 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.h
059a983531dd13618fc671c70a175bdb4e87ec47 02-Dec-2009 Andreas Neustifter <astifter-llvm@gmx.at> Cheap, mostly strict, stable sorting.

This is necessary for tests so the results are comparable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90320 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.h
5a44ef9fd5f7c3964ad79b94778261175dea5c33 25-Oct-2009 Nick Lewycky <nicholas@mxc.ca> Remove includes of Support/Compiler.h that are no longer needed after the
VISIBILITY_HIDDEN removal.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85043 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
SProfiling.cpp
f5a86f45e75ec744c203270ffa03659eb0a220c1 25-Oct-2009 Nick Lewycky <nicholas@mxc.ca> Remove includes of Support/Compiler.h that are no longer needed after the
VISIBILITY_HIDDEN removal.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85043 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
SProfiling.cpp
492d06efde44a4e38a6ed321ada4af5a75494df6 25-Oct-2009 Nick Lewycky <nicholas@mxc.ca> Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.
Chris claims we should never have visibility_hidden inside any .cpp file but
that's still not true even after this commit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85042 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
SProfiling.cpp
6726b6d75a8b679068a58cb954ba97cf9d1690ba 25-Oct-2009 Nick Lewycky <nicholas@mxc.ca> Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.
Chris claims we should never have visibility_hidden inside any .cpp file but
that's still not true even after this commit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85042 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
ptimalEdgeProfiling.cpp
SProfiling.cpp
f2519d6193d736ee7f2b9cc24e0143cfa933f79e 06-Oct-2009 Duncan Sands <baldrick@free.fr> Introduce and use convenience methods for getting pointer types
where the element is of a basic builtin type. For example, to get
an i8* use getInt8PtrTy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83379 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
ac53a0b272452013124bfc70480aea5e41b60f40 06-Oct-2009 Duncan Sands <baldrick@free.fr> Introduce and use convenience methods for getting pointer types
where the element is of a basic builtin type. For example, to get
an i8* use getInt8PtrTy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83379 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
c94270c382320cb3fe9c4dc7bf31d56c94e9643d 27-Sep-2009 Nick Lewycky <nicholas@mxc.ca> Instruction::clone does not need to take an LLVMContext&. Remove that and
update all the callers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82889 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
6776064d190701c5bae4d5403939eed2e480d1cd 27-Sep-2009 Nick Lewycky <nicholas@mxc.ca> Instruction::clone does not need to take an LLVMContext&. Remove that and
update all the callers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82889 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
ec139a0819923967e3c2b8a8e5fafa8859056b8b 16-Sep-2009 Andreas Neustifter <astifter@gmx.at> Reapplied r81355 with the problems fixed.
(See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090907/086737.html and
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090907/086746.html)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82039 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
923327267949b537d7a2fdad5b7a919bd90ce085 16-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Reapplied r81355 with the problems fixed.
(See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090907/086737.html and
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090907/086746.html)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82039 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
920911d1e9f01bca349c9cf90fe78712491a4766 09-Sep-2009 Chris Lattner <sabre@nondot.org> revert r81335, which breaks the build.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81347 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
273a488cdfe27aee58a3774579376d4b8f791012 09-Sep-2009 Chris Lattner <sabre@nondot.org> revert r81335, which breaks the build.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81347 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
20bfe16d937eb797d4248dec6c2a57b691779e35 09-Sep-2009 Andreas Neustifter <astifter@gmx.at> Updated ProfileInfo to have clean seperation between different sentinels.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81335 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
1f3b00272a4aa5a69bffb018bc449c84167b6bf8 09-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Updated ProfileInfo to have clean seperation between different sentinels.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81335 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
68eca1aeb53324309e2cc7ec68a91423ec2e41e3 04-Sep-2009 Andreas Neustifter <astifter@gmx.at> Converted MaximumSpanningTree algorithm to a generic template, this could go
into llvm/ADT.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81001 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
aximumSpanningTree.cpp
aximumSpanningTree.h
ptimalEdgeProfiling.cpp
ed1ac4ae8eadb907ec6a41bb74cae1777a4e28d2 04-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Converted MaximumSpanningTree algorithm to a generic template, this could go
into llvm/ADT.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81001 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
aximumSpanningTree.cpp
aximumSpanningTree.h
ptimalEdgeProfiling.cpp
34dd111c5c8a54d2b512999eb5179d42a746cf30 03-Sep-2009 Andreas Neustifter <astifter@gmx.at> Code Cleanup.

Removed inverted flag form MaximumSpanningTree, also do not handle so much
information to MaximumSpanningTree.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80911 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
ptimalEdgeProfiling.cpp
39859438715fc8f9ff16d7cec6cf2a9cb2ac0803 03-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Code Cleanup.

Removed inverted flag form MaximumSpanningTree, also do not handle so much
information to MaximumSpanningTree.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80911 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
ptimalEdgeProfiling.cpp
46ef7bea5c421a06f05d376742413c18d82e35f6 02-Sep-2009 Andreas Neustifter <astifter@gmx.at> Sort edges in MaximumSpanningTree more stable in case of equal weight.
(See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090824/085890.html)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80789 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
2252d481d66ddc3462acbd7473d9a1d4702b64ee 02-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Sort edges in MaximumSpanningTree more stable in case of equal weight.
(See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090824/085890.html)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80789 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
f73818861a527851de1f63c34803548dc4844416 02-Sep-2009 Andreas Neustifter <astifter@gmx.at> Changed set of BlocksToInstrument to set of InsertedBlocks that do not have to
be instrumented.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80788 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
8f123b85c63c35d9838d971cd9e62cc8c8082dd5 02-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Changed set of BlocksToInstrument to set of InsertedBlocks that do not have to
be instrumented.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80788 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
98004cce823f3ae209052fb1229d516dfc0b22df 02-Sep-2009 Andreas Neustifter <astifter@gmx.at> Code cleanups and added comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80781 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
9341cdc217249b16d42cdab98a07b9d302d1cb78 02-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Code cleanups and added comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80781 91177308-0d34-0410-b5e6-96231b3b80d8
ptimalEdgeProfiling.cpp
10dd7a2d9c1c123260c8afd730be1c109a20bb2c 01-Sep-2009 Andreas Neustifter <astifter@gmx.at> OptimalEdgeProfiling: Creation of profiles.
This adds the instrumentation and runtime part of OptimalEdgeProfiling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80712 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ptimalEdgeProfiling.cpp
f771dae69aee00a16dbfb7e712bf26ab2b9d9cde 01-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> OptimalEdgeProfiling: Creation of profiles.
This adds the instrumentation and runtime part of OptimalEdgeProfiling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80712 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ptimalEdgeProfiling.cpp
3efbb51978df6a37350f8d9d8c67ff3a988ad585 01-Sep-2009 Ted Kremenek <kremenek@apple.com> Update CMake files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80680 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
eed51b04e3ea4305ebb19c8c7688713dab554268 01-Sep-2009 Ted Kremenek <kremenek@apple.com> Update CMake files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80680 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
204b27e24b13676075ab11b149b3a67db3c59f03 01-Sep-2009 Andreas Neustifter <astifter@gmx.at> Preparation for Optimal Edge Profiling:
Add statistics for regular edge profiling, this enables the comparation of the
number of edges inserted by regular and optimal edge profiling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80668 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
62353a8d1323b42e4c28ea3a6f5cca39acac3195 01-Sep-2009 Andreas Neustifter <astifter-llvm@gmx.at> Preparation for Optimal Edge Profiling:
Add statistics for regular edge profiling, this enables the comparation of the
number of edges inserted by regular and optimal edge profiling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80668 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
ac09afaf40216429fad53899cce2f9fde8e267d4 29-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Inline empty destructor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80431 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
ac6f73a2e7115328fdd2c656a38f08d38b9dc87d 29-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Inline empty destructor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80431 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
3c5374802712a3d28cd13207ed3979a95457075c 29-Aug-2009 Bill Wendling <isanbard@gmail.com> Fix warning about non-virtual destructor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80429 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
d1e1d39b852a331d870ea33d48409e64e26c4e33 29-Aug-2009 Bill Wendling <isanbard@gmail.com> Fix warning about non-virtual destructor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80429 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
3f10e8664f46c60e4153da5da0ce33cd6b0b2ea3 28-Aug-2009 Andreas Neustifter <astifter@gmx.at> Preparation for Optimal Edge Profiling:
This implements the maximum spanning tree algorithm on CFGs according to
weights given by the ProfileEstimator. This is then used to implement Optimal
Edge Profiling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80358 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
6ef116d9dc29990b44939bad37458bf9d7f6846f 28-Aug-2009 Andreas Neustifter <astifter-llvm@gmx.at> Preparation for Optimal Edge Profiling:
This implements the maximum spanning tree algorithm on CFGs according to
weights given by the ProfileEstimator. This is then used to implement Optimal
Edge Profiling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80358 91177308-0d34-0410-b5e6-96231b3b80d8
aximumSpanningTree.cpp
aximumSpanningTree.h
0588d2da0980b653e2862e8742e0fa7923b9f170 23-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Kill off more cerr/cout uses and prune includes a bit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79852 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
cfa6ec92e61a1ab040c2b79db5de3a39df732ff6 23-Aug-2009 Benjamin Kramer <benny.kra@googlemail.com> Kill off more cerr/cout uses and prune includes a bit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79852 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
35b4707edb32008b1a7976dcbf3920b1160fc1c6 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
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.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
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.cpp
4ae20278018af959091a3dcd990dc2f78bf632d0 08-Aug-2009 Daniel Dunbar <daniel@zuster.org> More ProfileInfo improvements.
- Part of optimal static profiling patch sequence by Andreas Neustifter.

- Store edge, block, and function information separately for each functions
(instead of in one giant map).

- Return frequencies as double instead of int, and use a sentinel value for
missing information.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78477 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
caaa49336b47b542d7255a8455fbab2e14a20ec5 08-Aug-2009 Daniel Dunbar <daniel@zuster.org> More ProfileInfo improvements.
- Part of optimal static profiling patch sequence by Andreas Neustifter.

- Store edge, block, and function information separately for each functions
(instead of in one giant map).

- Return frequencies as double instead of int, and use a sentinel value for
missing information.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78477 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
aac2837c17cafaf4ff6487a54bab42e6618b5945 31-Jul-2009 Owen Anderson <resistor@mac.com> Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are
metadata related, which I'm waiting on to avoid conflicting with Devang.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77721 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.cpp
a7235ea7245028a0723e8ab7fd011386b3900777 31-Jul-2009 Owen Anderson <resistor@mac.com> Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are
metadata related, which I'm waiting on to avoid conflicting with Devang.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77721 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.cpp
b99ecca4954cbc3fbff77ffb252952cc19c4d799 31-Jul-2009 Owen Anderson <resistor@mac.com> Move more code back to 2.5 APIs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77635 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
9e9a0d5fc26878e51a58a8b57900fcbf952c2691 31-Jul-2009 Owen Anderson <resistor@mac.com> Move more code back to 2.5 APIs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77635 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
6b6e2d9392782724c48110bcca4bee2c8fbbd7b9 30-Jul-2009 Owen Anderson <resistor@mac.com> Move types back to the 2.5 API.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77516 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
debcb01b0f0a15f568ca69e8f288fade4bfc7297 30-Jul-2009 Owen Anderson <resistor@mac.com> Move types back to the 2.5 API.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77516 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
02b48c3be2112c64d8fc9cf5419c9c8d4ec30b71 29-Jul-2009 Owen Anderson <resistor@mac.com> Move ConstantExpr to 2.5 API.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77494 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
baf3c404409d5e47b13984a7f95bfbd6d1f2e79e 29-Jul-2009 Owen Anderson <resistor@mac.com> Move ConstantExpr to 2.5 API.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77494 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
005975c04c5ffc4ee07107ad60dd7d465464e6f7 25-Jul-2009 Daniel Dunbar <daniel@zuster.org> More migration to raw_ostream, the water has dried up around the iostream hole.
- Some clients which used DOUT have moved to DEBUG. We are deprecating the
"magic" DOUT behavior which avoided calling printing functions when the
statement was disabled. In addition to being unnecessary magic, it had the
downside of leaving code in -Asserts builds, and of hiding potentially
unnecessary computations.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77019 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
ce63ffb52f249b62cdf2d250c128007b13f27e71 25-Jul-2009 Daniel Dunbar <daniel@zuster.org> More migration to raw_ostream, the water has dried up around the iostream hole.
- Some clients which used DOUT have moved to DEBUG. We are deprecating the
"magic" DOUT behavior which avoided calling printing functions when the
statement was disabled. In addition to being unnecessary magic, it had the
downside of leaving code in -Asserts builds, and of hiding potentially
unnecessary computations.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77019 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
eacb44d0bb89c608c4465b7900eea3afc0f0be0d 25-Jul-2009 Owen Anderson <resistor@mac.com> Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks to contexts-on-types. More to come.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77011 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
eed707b1e6097aac2bb6b3d47271f6300ace7f2e 25-Jul-2009 Owen Anderson <resistor@mac.com> Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks to contexts-on-types. More to come.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77011 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
175b6540352920afd47979cecb8c2667a3f7fdd3 22-Jul-2009 Owen Anderson <resistor@mac.com> Get rid of the Pass+Context magic.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76702 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.cpp
e922c0201916e0b980ab3cfe91e1413e68d55647 22-Jul-2009 Owen Anderson <resistor@mac.com> Get rid of the Pass+Context magic.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76702 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.cpp
140166dfcd14dc05ebca646f41d1dfe155718182 16-Jul-2009 Owen Anderson <resistor@mac.com> Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75863 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
50dead06ffc107edb7e84857baaeeb09039c631c 16-Jul-2009 Owen Anderson <resistor@mac.com> Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75863 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
9f5b2aa7fba203469386acc413c23dd41a713bc9 15-Jul-2009 Owen Anderson <resistor@mac.com> Move EVER MORE stuff over to LLVMContext.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75703 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
9adc0abad3c3ed40a268ccbcee0c74cb9e1359fe 15-Jul-2009 Owen Anderson <resistor@mac.com> Move EVER MORE stuff over to LLVMContext.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75703 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
bd448e3ca993226084d7f53445388fcd8e46b996 14-Jul-2009 Edwin Török <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
SProfiling.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
SProfiling.cpp
675d56222b6b98d2c22a17aaf69a036e57d5426a 11-Jul-2009 Edwin Török <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
SProfiling.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
SProfiling.cpp
6601fcdc38a21a39ac124f2bd8794846519b6455 10-Jul-2009 Owen Anderson <resistor@mac.com> This started as a small change, I swear. Unfortunately, lots of things call the [I|F]CmpInst constructors. Who knew!?


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75200 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
333c40096561218bc3597cf153c0a3895274414c 10-Jul-2009 Owen Anderson <resistor@mac.com> This started as a small change, I swear. Unfortunately, lots of things call the [I|F]CmpInst constructors. Who knew!?


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75200 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
e17fc1d7a2bcc05efc0ebe943254b273c99d77fd 08-Jul-2009 Owen Anderson <resistor@mac.com> Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75025 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
e9b11b431308f4766b73cda93e38ec930c912122 08-Jul-2009 Owen Anderson <resistor@mac.com> Switch GlobalVariable ctors to a sane API, where *either* a context or a module is required.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75025 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
e0f136d9637981bbc5096ca396e4df383c59eafe 08-Jul-2009 Owen Anderson <resistor@mac.com> Push LLVMContext through GlobalVariables and IRBuilder.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74985 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
3d29df3e8a203b167d8071ea6f805b21db18a5af 08-Jul-2009 Owen Anderson <resistor@mac.com> Push LLVMContext through GlobalVariables and IRBuilder.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74985 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
5349f05e4c7c8a54751db96006d811752644011b 07-Jul-2009 Owen Anderson <resistor@mac.com> "LLVMContext* " --> "LLVMContext *"


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74878 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
07cf79ef537caff6d39145f190a28a336e629b6f 07-Jul-2009 Owen Anderson <resistor@mac.com> "LLVMContext* " --> "LLVMContext *"


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74878 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
d4d90a0e0d307a0ecd4ed48564b71d9bf90ae023 06-Jul-2009 Owen Anderson <resistor@mac.com> Thread LLVMContext through the constant folding APIs, which touches a lot of files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74844 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.cpp
508955156a25a9abc470a29e1760aa176d341cf9 06-Jul-2009 Owen Anderson <resistor@mac.com> Thread LLVMContext through the constant folding APIs, which touches a lot of files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74844 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
SProfiling.cpp
8fd520a034ec6a7948c8e2791548823ccf196eed 16-Jun-2009 Dan Gohman <gohman@apple.com> Support vector casts in more places, fixing a variety of assertion
failures.

To support this, add some utility functions to Type to help support
vector/scalar-independent code. Change ConstantInt::get and
ConstantFP::get to support vector types, and add an overload to
ConstantInt::get that uses a static IntegerType type, for
convenience.

Introduce a new getConstant method for ScalarEvolution, to simplify
common use cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73431 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
6de29f8d960505421d61c80cdb738e16720b6c0e 16-Jun-2009 Dan Gohman <gohman@apple.com> Support vector casts in more places, fixing a variety of assertion
failures.

To support this, add some utility functions to Type to help support
vector/scalar-independent code. Change ConstantInt::get and
ConstantFP::get to support vector types, and add an overload to
ConstantInt::get that uses a static IntegerType type, for
convenience.

Introduce a new getConstant method for ScalarEvolution, to simplify
common use cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73431 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
9b8f542e2746b28721b3ec603c3aaaa10ea708fc 09-Jan-2009 Misha Brukman <brukman+llvm@gmail.com> Removed trailing whitespace from Makefiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61991 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
e025bcca322301af5c4a5178b1a64080cb900ec1 09-Jan-2009 Misha Brukman <brukman+llvm@gmail.com> Removed trailing whitespace from Makefiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61991 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
0db69dcc87f62d85c782efcab4321f55f44dadb5 21-Oct-2008 Dan Gohman <gohman@apple.com> Use Function::getEntryBlock() instead of Function::front(), for clarity.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57870 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
1045412e882f59ba965e28d72c90d520186b38af 21-Oct-2008 Dan Gohman <gohman@apple.com> Use Function::getEntryBlock() instead of Function::front(), for clarity.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57870 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
3d01fc7de86c75926e4e5ac7cc49f0116018893d 22-Sep-2008 Oscar Fuentes <ofv@wanadoo.es> Initial support for the CMake build system.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56419 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
00905d5339fd277781c7393112f80febe86b2945 22-Sep-2008 Oscar Fuentes <ofv@wanadoo.es> Initial support for the CMake build system.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56419 91177308-0d34-0410-b5e6-96231b3b80d8
MakeLists.txt
ae73dc1448d25b02cabc7c64c86c64371453dda8 04-Sep-2008 Dan Gohman <gohman@apple.com> Tidy up several unbeseeming casts from pointer to intptr_t.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55779 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
SProfiling.cpp
26f8c27c34b44f7d87de74d1de2128c1a02855bf 04-Sep-2008 Dan Gohman <gohman@apple.com> Tidy up several unbeseeming casts from pointer to intptr_t.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55779 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
SProfiling.cpp
8f613f30a78aa9d93d08a209b6c159c2000d8d6c 05-Aug-2008 Dan Gohman <gohman@apple.com> Trim #includes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54350 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
c154449b3b3c6ec60c7e7a766b88155b9889f7e9 05-Aug-2008 Dan Gohman <gohman@apple.com> Trim #includes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54350 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
02dea8b39f3acad5de1df36273444d149145e7fc 23-May-2008 Dan Gohman <gohman@apple.com> Tidy up BasicBlock::getFirstNonPHI, and change a bunch of places to
use it instead of duplicating its functionality.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51499 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
514277c1fcda11378730fd10e884f3b4860a60a8 23-May-2008 Dan Gohman <gohman@apple.com> Tidy up BasicBlock::getFirstNonPHI, and change a bunch of places to
use it instead of duplicating its functionality.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51499 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
7cbd8a3e92221437048b484d5ef9c0a22d0f8c58 16-May-2008 Gabor Greif <ggreif@gmail.com> API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51200 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
a645dd3694fe06586679809ad2ded420666b4665 16-May-2008 Gabor Greif <ggreif@gmail.com> API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51200 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
b1dbcd886a4b5597a839f299054b78b33fb2d6df 15-May-2008 Gabor Greif <ggreif@gmail.com> Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51143 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
b91ea9d5ae92622ca2100feb19af1bc7e784abbd 15-May-2008 Gabor Greif <ggreif@gmail.com> Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51143 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
844731a7f1909f55935e3514c9e713a62d67662e 13-May-2008 Dan Gohman <gohman@apple.com> Clean up the use of static and anonymous namespaces. This turned up
several things that were neither in an anonymous namespace nor static
but not intended to be global.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51017 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
089efffd7d1ca0d10522ace38d36e0a67f4fac2d 13-May-2008 Dan Gohman <gohman@apple.com> Clean up the use of static and anonymous namespaces. This turned up
several things that were neither in an anonymous namespace nor static
but not intended to be global.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51017 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
4a3f6c88820a204f80ca0fa3f1f2fe09ca10b02f 06-May-2008 Dan Gohman <gohman@apple.com> Make several variable declarations static.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50696 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
2c37da52902a619dc12b5dd46040fd223ee7d2eb 06-May-2008 Dan Gohman <gohman@apple.com> Make several variable declarations static.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50696 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
e2c4304654442ca353b307d73c86dce2a4acadbf 07-Apr-2008 Duncan Sands <baldrick@free.fr> Use Intrinsic::getDeclaration in more places.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49338 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
3c81269349934a51dc02c6a67442ef5e59cfca8e 07-Apr-2008 Duncan Sands <baldrick@free.fr> Use Intrinsic::getDeclaration in more places.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49338 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
051a950000e21935165db56695e35bade668193b 06-Apr-2008 Gabor Greif <ggreif@gmail.com> API changes for class Use size reduction, wave 1.
Specifically, introduction of XXX::Create methods
for Users that have a potentially variable number of
Uses.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49277 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
d6da1d0d17e2605363504f044664696f4d85b30f 06-Apr-2008 Gabor Greif <ggreif@gmail.com> API changes for class Use size reduction, wave 1.
Specifically, introduction of XXX::Create methods
for Users that have a potentially variable number of
Uses.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49277 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
29d8aa78773f0956c9b33170382403e5a61036f1 06-Mar-2008 Gabor Greif <ggreif@gmail.com> fix typos

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47994 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
rofilingUtils.h
4750dacd16efbfe7d232839466b1d5062ed33001 06-Mar-2008 Gabor Greif <ggreif@gmail.com> fix typos

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47994 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
rofilingUtils.h
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
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
rofilingUtils.h
SProfiling.cpp
SProfiling.h
081ce940e7351e90fff829320b7dc6738a6b3815 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
lockProfiling.cpp
dgeProfiling.cpp
rofilingUtils.cpp
rofilingUtils.h
SProfiling.cpp
SProfiling.h
fc643c5e88c596f217750dd91fcc66488dfed73d 29-Dec-2007 Chris Lattner <sabre@nondot.org> remove attribution from lib Makefiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45415 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
80455b86f2c6c56b56f690db3c1fdd3a401f9df3 29-Dec-2007 Chris Lattner <sabre@nondot.org> remove attribution from lib Makefiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45415 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
43ad6b3e0d6ada51e9b23aab3e061187f1f5710c 17-Dec-2007 Christopher Lamb <christopher.lamb@gmail.com> Change the PointerType api for creating pointer types. The old functionality of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45082 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
bb2f2222b45179d8ddd0c7d481ad9dc068c82b6c 17-Dec-2007 Christopher Lamb <christopher.lamb@gmail.com> Change the PointerType api for creating pointer types. The old functionality of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45082 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
915c656a745ea9a580ebb6a23cfe404d27e08d32 13-Dec-2007 Chris Lattner <sabre@nondot.org> Fix for edge profiling, patch by 'Marc' for PR1857


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44965 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
a0b4c94f7fed612873cc59864b0bd152c5f9f509 13-Dec-2007 Chris Lattner <sabre@nondot.org> Fix for edge profiling, patch by 'Marc' for PR1857


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44965 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
55cbec317d9c30c8ae1d35eaa008ca63d1f2fce9 26-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> More fleshing out of docs/Passes.html, plus some typo fixes and
improved wording in source files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43377 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
9adadb4a2a9d7d3a4399216c12c08efee0460ae9 26-Oct-2007 Gordon Henriksen <gordonhenriksen@mac.com> More fleshing out of docs/Passes.html, plus some typo fixes and
improved wording in source files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43377 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
52eec548206d0b135b55ba52dd0e82e978f15ae5 01-Aug-2007 David Greene <greened@obbligato.org> New CallInst interface to address GLIBCXX_DEBUG errors caused by
indexing an empty std::vector.

Updates to all clients.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40660 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
b1c4a7b210b9a8aa98fcffae8a84a0a20860ec7a 01-Aug-2007 David Greene <greened@obbligato.org> New CallInst interface to address GLIBCXX_DEBUG errors caused by
indexing an empty std::vector.

Updates to all clients.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40660 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc 18-Jul-2007 Dan Gohman <djg@cray.com> It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
akefile
rofilingUtils.cpp
rofilingUtils.h
SProfiling.cpp
SProfiling.h
ecd94c804a563f2a86572dcf1d2e81f397e19daa 06-May-2007 Nick Lewycky <nicholas@mxc.ca> Fix typo in comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36873 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
SProfiling.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
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
SProfiling.h
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
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
SProfiling.h
c718288f4939258a51ec5ae0c5be7b1a05eb6898 02-May-2007 Lauro Ramos Venancio <lauro.venancio@gmail.com> Fix build error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36648 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.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
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
SProfiling.h
e24c92a6984e0ddcf565bba23de4d5cb531c6c17 17-Apr-2007 Chris Lattner <sabre@nondot.org> remove use of BasicBlock::getNext


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36202 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
a0e1b0e98da65db930dcd40af662e49f0257a269 17-Apr-2007 Chris Lattner <sabre@nondot.org> eliminate use of Instruction::getNext()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36200 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
bed2946a96ecb15b0b636fa74cb26ce61b1c648e 16-Apr-2007 Anton Korobeynikov <asl@math.spbu.ru> Removed tabs everywhere except autogenerated & external files. Add make
target for tabs checking.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36146 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
bb9a0411007d9bb7a60313fe427e2ef1fc98c22a 20-Feb-2007 Chris Lattner <sabre@nondot.org> remove reoptimizer-specific passes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34439 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
raceBasicBlocks.cpp
ec1f752ae49b053231288a8c429d076b5855fc7c 19-Feb-2007 Chris Lattner <sabre@nondot.org> eliminate use of deprecated apis


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34417 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
93e985f1b17aef62d58e3198a4604f9f6cfe8d19 13-Feb-2007 Chris Lattner <sabre@nondot.org> Eliminate use of ctors that take vectors.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34219 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
9133fe28954d498fc4de13064c7d65bd811de02c 06-Feb-2007 Reid Spencer <rspencer@reidspencer.com> Apply the VISIBILITY_HIDDEN field to the remaining anonymous classes in
the Transforms library. This reduces debug library size by 132 KB, debug
binary size by 376 KB, and reduces link time for llvm tools slightly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33939 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
mitFunctions.cpp
SProfiling.cpp
raceBasicBlocks.cpp
688b0490e22eb67623f5aaa24406209be74efcb2 05-Feb-2007 Reid Spencer <rspencer@reidspencer.com> For PR411:
Adjust to changes in Module interface:
getMainFunction() -> getFunction("main")
getNamedFunction(X) -> getFunction(X)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33922 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
raceBasicBlocks.cpp
6734b57d1bcd743491b627979f7801f94c97a970 04-Feb-2007 Reid Spencer <rspencer@reidspencer.com> For PR1163:
Make the Module's dependent library use a std::vector instead of SetVector
adjust #includes in .cpp files because SetVector.h is no longer included.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33855 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.h
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
lockProfiling.cpp
mitFunctions.cpp
SProfiling.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
SProfiling.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
SProfiling.cpp
ba8b327f6757bfc5ecb754a927b3317c1f53085e 07-Jan-2007 Chris Lattner <sabre@nondot.org> this pass is unused


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32998 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
febe5f1b3c43c217e4c32155cda9bcc9e1e50e11 07-Jan-2007 Chris Lattner <sabre@nondot.org> relax some types


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32982 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
SProfiling.cpp
raceBasicBlocks.cpp
raceValues.cpp
c5b206b6be61d0d933b98b6af5e22f42edd48ad1 31-Dec-2006 Reid Spencer <rspencer@reidspencer.com> For PR950:
This patch replaces signed integer types with signless ones:
1. [US]Byte -> Int8
2. [U]Short -> Int16
3. [U]Int -> Int32
4. [U]Long -> Int64.
5. Removal of isSigned, isUnsigned, getSignedVersion, getUnsignedVersion
and other methods related to signedness. In a few places this warranted
identifying the signedness information from other sources.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32785 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
mitFunctions.cpp
rofilingUtils.cpp
SProfiling.cpp
raceBasicBlocks.cpp
raceValues.cpp
e4d87aa2de6e52952dca73716386db09aad5a8fd 23-Dec-2006 Reid Spencer <rspencer@reidspencer.com> For PR950:
This patch removes the SetCC instructions and replaces them with the ICmp
and FCmp instructions. The SetCondInst instruction has been removed and
been replaced with ICmpInst and FCmpInst.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32751 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
06e3f4ee7eaf84538d2a3eaaf335e360bdf90122 21-Dec-2006 Reid Spencer <rspencer@reidspencer.com> Remove isSigned calls via foreknowledge of main's argument types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32730 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
61bc8f8ca4a5a8277b9c46486e5acd5648b9b9a3 19-Dec-2006 Chris Lattner <sabre@nondot.org> remove dead statistic


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32695 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
8a903db4990d57aadea5cdad601ff26e92899103 18-Dec-2006 Reid Spencer <rspencer@reidspencer.com> Convert the last uses of CastInst::createInferredCast to a normal cast
creation. These changes are still temporary but at least this pushes
knowledge of signedness out closer to where it can be determined properly
and allows signedness to be removed from VMCore.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32654 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
7b06bd532d3324a2f76bbc856ae20ff89d8e0e92 13-Dec-2006 Reid Spencer <rspencer@reidspencer.com> Replace CastInst::createInferredCast calls with more accurate cast
creation calls.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32521 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
raceValues.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
lockProfiling.cpp
dgeProfiling.cpp
raceBasicBlocks.cpp
ac0b6ae358944ae8b2b5a11dc08f52c3ed89f2da 06-Dec-2006 Chris Lattner <sabre@nondot.org> Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32279 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.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
rofilingUtils.cpp
raceValues.cpp
62c804a3ea537a83f307ed9c2788138cc47cc2ed 26-Nov-2006 Bill Wendling <isanbard@gmail.com> Removed #include <iostream> and used the llvm_cerr/DOUT streams instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31922 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
SProfiling.cpp
raceBasicBlocks.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
SProfiling.cpp
raceBasicBlocks.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
mitFunctions.cpp
rofilingUtils.cpp
SProfiling.cpp
raceBasicBlocks.cpp
a5370172b64bed5daf8e2869d7bf7cb52f80d6b7 28-Aug-2006 Chris Lattner <sabre@nondot.org> simplify AnalysisGroup registration, eliminating one typeid call.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29932 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
SProfiling.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
lockProfiling.cpp
dgeProfiling.cpp
mitFunctions.cpp
SProfiling.cpp
raceBasicBlocks.cpp
raceValues.cpp
d74ea2bbd8bb630331f35ead42d385249bd42af8 24-May-2006 Chris Lattner <sabre@nondot.org> Patches to make the LLVM sources more -pedantic clean. Patch provided
by Anton Korobeynikov! This is a step towards closing PR786.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28447 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
SProfiling.h
86a5484079abc8a20f24066aaf3f5efcccebb673 22-Jan-2006 Chris Lattner <sabre@nondot.org> Add explicit #includes of <iostream>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25509 91177308-0d34-0410-b5e6-96231b3b80d8
raceBasicBlocks.cpp
8dc2d509885679a6a2f0d8dab48bbb9b02b610d4 28-Nov-2005 Andrew Lenharth <andrewl@lenharth.org> a few more comments on the interfaces and functions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24500 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
bb227c1b798f6d91dd946a0a9db79d1941911fab 28-Nov-2005 Andrew Lenharth <andrewl@lenharth.org> Added documented rsprofiler interface. Also remove new profiler passes, the
old ones have been updated to implement the interface.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24499 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
SProfiling.cpp
SProfiling.h
3523f6e7a4aba0a2699b0293c95728dc2f949c9d 28-Nov-2005 Jeff Cohen <jeffc@jolt-lang.org> Fix VC++ warning.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24496 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
701f5ac73c782da45d5007f72f7d3dc514166acd 28-Nov-2005 Andrew Lenharth <andrewl@lenharth.org> Random sampling (aka Arnold and Ryder) profiling. This is still preliminary, but it works on spec on x86 and alpha. The idea is to allow profiling passes to remember what profiling they inserted, then a random sampling framework is inserted which consists of duplicated basic blocks (without profiling), such that at each backedge in the program and entry into every function, the framework chooses whether to use the instrumented code or the instrumentation free code. The goal of such a framework is to make it reasonably cheap to do random sampling of very expensive profiling products (such as load-value profiling).

The code is organized into 3 parts (2 passes)
1) a linked set of profiling passes, which implement an analysis group (linked, like alias analysis are). These insert profiling into the program, and remember what they inserted, so that at a later time they can be queried about any instruction.

2) a pass that handles inserting the random sampling framework. This also has options to control how random samples are choosen. Currently implemented are Global counters, register allocated global counters, and read cycle counter (see? there was a reason for it).

The profiling passes are almost identical to the existing ones (block, function, and null profiling is supported right now), and they are valid passes without the sampling framework (hence the existing passes can be unified with the new ones, not done yet).

Some things are a bit ugly still, but that should be fixed up soon enough.

Other todo? making the counter values not "magic 2^16 -1" values, but dynamically choosable.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24493 91177308-0d34-0410-b5e6-96231b3b80d8
SProfiling.cpp
SProfiling.h
d00a3cee80b34e9c8ebbe18ef4ae95ab4cd369d0 24-Oct-2005 Chris Lattner <sabre@nondot.org> Remove some beta code that no longer has an owner.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23944 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/Makefile
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
a66459095c7f1118c6cdefde429c492a0f212ada 24-Oct-2005 Chris Lattner <sabre@nondot.org> Do not build the ProfilePaths directory anymore


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23943 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
f36aeedaa30b34b044c20e8ef5d43bd8c6c0e342 24-Oct-2005 Chris Lattner <sabre@nondot.org> DONT_BUILD_RELINKED is gone and implied by BUILD_ARCHIVE now


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23940 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
ab0ed3592b0837c31aaaab65edd9bac8746f899e 24-Oct-2005 Chris Lattner <sabre@nondot.org> Only build .a file versions of these libraries, instead of .a and .o versions.
This should speed up build times.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23933 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
66c5fd6c537269eaef0f630fa14360dcaff6a295 23-Oct-2005 Jeff Cohen <jeffc@jolt-lang.org> When a function takes a variable number of pointer arguments, with a zero
pointer marking the end of the list, the zero *must* be cast to the pointer
type. An un-cast zero is a 32-bit int, and at least on x86_64, gcc will
not extend the zero to 64 bits, thus allowing the upper 32 bits to be
random junk.

The new END_WITH_NULL macro may be used to annotate a such a function
so that GCC (version 4 or newer) will detect the use of un-casted zero
at compile time.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23888 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilingUtils.cpp
raceBasicBlocks.cpp
raceValues.cpp
9d80930e950214d026afd3a3d18cda32629efdb9 23-Apr-2005 Jeff Cohen <jeffc@jolt-lang.org> Eliminate tabs and trailing spaces


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21480 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
rofilePaths/CombineBranch.cpp
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/RetracePath.cpp
raceBasicBlocks.cpp
raceValues.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
lockProfiling.cpp
dgeProfiling.cpp
mitFunctions.cpp
rofilePaths/CombineBranch.cpp
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
rofilingUtils.cpp
rofilingUtils.h
raceBasicBlocks.cpp
raceValues.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
rofilingUtils.cpp
raceValues.cpp
193904a6633e9919e5d426123de3133028196821 25-Jan-2005 Alkis Evlogimenos <alkis@evlogimenos.com> Add a dependency to the trace library so that it gets pulled in
automatically.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19828 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
60766f7d4180cce859f58a49ecd6066dc9b40b4f 07-Jan-2005 Misha Brukman <brukman+llvm@gmail.com> Convert tabs to spaces


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19320 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
d9ed8c888016d15eded298c25bc8bdeffcb8d155 07-Jan-2005 Jeff Cohen <jeffc@jolt-lang.org> Add missing createXxxPass functions


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19319 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilePaths/ProfilePaths.cpp
raceBasicBlocks.cpp
30becbda10d5c6f63348571e317c6420e1ca1d5b 07-Jan-2005 Jeff Cohen <jeffc@jolt-lang.org> Add missing include


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19315 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/InstLoops.cpp
8ca7191599bc04b73bf8d1688f4fc07742b0dafa 06-Jan-2005 Jeff Cohen <jeffc@jolt-lang.org> Add missing include


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19305 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
9d975476804f321ad2ff81520ca025e1034e2136 13-Dec-2004 Brian Gaeke <gaeke@uiuc.edu> Fix link error in PPC optimized build of 'opt'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18913 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
17a213ad8b095f6372c1d5f8231a7dbe6e262b08 08-Dec-2004 Chris Lattner <sabre@nondot.org> Add support for compilers without argument dependent name lookup, contributed
by Bjørn Wennberg


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18627 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
f2fd400258c401acb746531a2caea5c9488d3de5 08-Dec-2004 Chris Lattner <sabre@nondot.org> Remove unneeded class qualifier, contributed by Bjørn Wennberg


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18625 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
4a389b697ce6dc9444161ed5aabbeb164eceab9d 19-Nov-2004 Chris Lattner <sabre@nondot.org> CPR is dead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17992 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.h
183f2eb860a6c97523d0f7f13ebdb5126167ceb6 05-Nov-2004 Chris Lattner <sabre@nondot.org> Remove dead vars


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17482 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
6cb21d443eff9369e4f9035af28efd627e8f3909 28-Oct-2004 Reid Spencer <rspencer@reidspencer.com> Change Library Names Not To Conflict With Others When Installed


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17286 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
rofilePaths/Makefile
cac731ecbe6a80e0c607ece2833525a92601db99 22-Oct-2004 Reid Spencer <rspencer@reidspencer.com> We won't use automake


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17155 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.am
akefile.in
rofilePaths/Makefile.am
rofilePaths/Makefile.in
a30dd79be8d76e8571557fd4524b6201e21a83c7 20-Oct-2004 Brian Gaeke <gaeke@uiuc.edu> Explain what this pass does.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17146 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
86d341b204171d53a470c361ee58811bfc22bf1a 19-Oct-2004 Reid Spencer <rspencer@reidspencer.com> Initial automake generated Makefile template


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17136 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.in
rofilePaths/Makefile.in
17e6e44298d8da4cd97ba0be66225cdad4670276 18-Oct-2004 Reid Spencer <rspencer@reidspencer.com> Correction to allow compilation with Visual C++.

Patch contributed by Morten Ofstad. Thanks Morten!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17123 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
d96cb6eaa0a878467d9594a12dfe3a55466706f0 13-Oct-2004 Reid Spencer <rspencer@reidspencer.com> Update to reflect changes in Makefile rules.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16950 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.am
rofilePaths/Makefile.am
81f76b324e0b22731d06ed34641032de983428b1 11-Oct-2004 Reid Spencer <rspencer@reidspencer.com> Initial version of automake Makefile.am file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16893 91177308-0d34-0410-b5e6-96231b3b80d8
akefile.am
rofilePaths/Makefile.am
f098ced8486cad297ee633433709ed1424a745d3 30-Sep-2004 Brian Gaeke <gaeke@uiuc.edu> Add accessor function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16622 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
rofilePaths/InstLoops.cpp
b3b1e33632056459a7454f3bc3b3f142a7ea94df 30-Sep-2004 Brian Gaeke <gaeke@uiuc.edu> Correct type of accessor functions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16621 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
ccb87cdf07f5e3c0ac1e42467a76130bce2fbecd 30-Sep-2004 Brian Gaeke <gaeke@uiuc.edu> Namespacify. Add accessor function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16620 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
b12914bfc0f76a7a48357162d5f4c39a1343e69b 20-Sep-2004 Chris Lattner <sabre@nondot.org> 'Pass' should now not be derived from by clients. Instead, they should derive
from ModulePass. Instead of implementing Pass::run, then should implement
ModulePass::runOnModule.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16436 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
mitFunctions.cpp
raceBasicBlocks.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
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
raceBasicBlocks.cpp
raceValues.cpp
47b14a4a6a455c7be169cfd312fcbe796f0ad426 29-Jul-2004 Misha Brukman <brukman+llvm@gmail.com> Fix #includes of i*.h => Instructions.h as per PR403.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15334 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
raceBasicBlocks.cpp
raceValues.cpp
7848e68c1635ccba5a08d55314d4e5aed5ab54b9 21-Jul-2004 Brian Gaeke <gaeke@uiuc.edu> These files don't need to include <iostream> since they include "Support/Debug.h".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15089 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
raceBasicBlocks.cpp
518310cb0d136906ff0a99d7a24cb460794de5bf 18-Jul-2004 Reid Spencer <rspencer@reidspencer.com> bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14953 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
mitFunctions.cpp
rofilingUtils.cpp
rofilingUtils.h
raceValues.cpp
954da37bb492b519f5c31dc360f2a142567e08b4 04-Jul-2004 Reid Spencer <rspencer@reidspencer.com> Add #include <iostream> since Value.h does not #include it any more.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14622 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
dgeProfiling.cpp
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/RetracePath.cpp
raceBasicBlocks.cpp
39c2a8ead58605999328801e6ef2cdf97aca69b4 29-Jun-2004 Vikram S. Adve <vadve@cs.uiuc.edu> Restoring this file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14478 91177308-0d34-0410-b5e6-96231b3b80d8
raceBasicBlocks.cpp
e0e12ac377baa3f7ffbe3f4990a12df3bd17b94e 24-Jun-2004 Vikram S. Adve <vadve@cs.uiuc.edu> This file is unused, and duplicates functionality in TraceValues.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14369 91177308-0d34-0410-b5e6-96231b3b80d8
raceBasicBlocks.cpp
f36b5f0fb6867c4dfbfbc6f966eee55039d3b441 03-Jun-2004 Brian Gaeke <gaeke@uiuc.edu> Expand head-of-file comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13982 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
dfb2e7d7c97990f5f3d6edbb204870ea8289642d 01-Jun-2004 Brian Gaeke <gaeke@uiuc.edu> Use new form of unconditional branch constructor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13930 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
cc9620ca29752214b1b9e2840b156ace7c6c2b7f 14-May-2004 Brian Gaeke <gaeke@uiuc.edu> Clean up this pass somewhat:

Add better comments, including a better head-of-file comment.
Prune #includes.
Fix a FIXME that Chris put here by using doInitialization().
Use DEBUG() to print out debug msgs.
Give names to basic blocks inserted by this pass.
Expand tabs.
Use InsertProfilingInitCall() from ProfilingUtils to insert the initialize call.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13581 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/InstLoops.cpp
96e68f9ab1b3dfcf3be9c8a18d82adef0ad7f3d8 04-May-2004 Brian Gaeke <gaeke@uiuc.edu> Fix typo


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13340 91177308-0d34-0410-b5e6-96231b3b80d8
raceBasicBlocks.cpp
ebbc0e9bbf51e4ee583d7603b033813566c62c3f 04-May-2004 Brian Gaeke <gaeke@uiuc.edu> In InsertProfilingInitCall(), make it legal to pass in a null array, in
which case you'll get a null array and zero passed to the profiling function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13336 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
rofilingUtils.h
c03eb7b923d4ba40a647ffd364cd2e89fc22301d 04-May-2004 Brian Gaeke <gaeke@uiuc.edu> Add initial implementation of basic-block tracing instrumentation pass.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13335 91177308-0d34-0410-b5e6-96231b3b80d8
raceBasicBlocks.cpp
28977af72a11fcad5d1b54d7a96b3df02828f6fc 05-Apr-2004 Chris Lattner <sabre@nondot.org> Support getelementptr instructions which use uint's to index into structure
types and can have arbitrary 32- and 64-bit integer types indexing into
sequential types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12653 91177308-0d34-0410-b5e6-96231b3b80d8
rofilingUtils.cpp
87fa610ee0474e02c90e605a59d49a97afd12442 30-Mar-2004 Brian Gaeke <gaeke@uiuc.edu> Start cleaning up this pass so that I can debug it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12548 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
b2f12a2c38faaa1d0919b4ebb0b2bf3666fb672d 08-Mar-2004 Chris Lattner <sabre@nondot.org> Initial support for edge profiling


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12225 91177308-0d34-0410-b5e6-96231b3b80d8
dgeProfiling.cpp
467dd2ec6192fca6fe1d2a4b339fbc9b45ca3b17 08-Mar-2004 Chris Lattner <sabre@nondot.org> Split utility functions out of BlockProfiling.cpp


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12224 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
rofilingUtils.cpp
rofilingUtils.h
c51733c7b503e8724f45bf601a239a6c8a3230e9 08-Mar-2004 Chris Lattner <sabre@nondot.org> finegrainify namespacification


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12221 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
04d1fb6df9799009c1ad7d7c5a6419d48c916ff7 15-Feb-2004 Chris Lattner <sabre@nondot.org> Remove dependence on return type of ConstantStruct::get


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11466 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
371064481a9b15b1f73b7b021ec1c808c6fa5d1f 15-Feb-2004 Chris Lattner <sabre@nondot.org> Remove dependence on the return type of ConstantArray::get


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11463 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
81d1a2207d96163a81afc6a7ad11cba41ea72dff 10-Feb-2004 Chris Lattner <sabre@nondot.org> initialization calls now return argc. If the program uses the argc value
passed into main, make sure they use the return value of the init call
instead of the one passed in.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11262 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
f7703df4968084c18c248c1feea9961c19a32e6a 09-Jan-2004 Chris Lattner <sabre@nondot.org> Finegrainify namespacification


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
raceValues.cpp
f8485c643412dbff46fe87ea2867445169a5c28e 20-Nov-2003 Chris Lattner <sabre@nondot.org> Start using the nicer terminator auto-insertion API


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10111 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
rofilePaths/EdgeCode.cpp
rofilePaths/InstLoops.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
lockProfiling.cpp
mitFunctions.cpp
rofilePaths/CombineBranch.cpp
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
raceValues.cpp
646f8d7457e2f8e459b17df1b3750579e0352a47 05-Nov-2003 Chris Lattner <sabre@nondot.org> Be gcc 3.4 clean


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9725 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.h
942457564d37cdc1c96bcc9e022e8d77628d6520 29-Oct-2003 Chris Lattner <sabre@nondot.org> Refactor code, initial implementation of -insert-block-profiling pass


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9593 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
c0204e0b730c8aea661d6ff0fd504f45959e51e2 28-Oct-2003 Chris Lattner <sabre@nondot.org> Pass in argc & argv


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9563 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
baa2007fae24930d9a309b74c63c1d0286fb5b76 28-Oct-2003 Chris Lattner <sabre@nondot.org> Initial checkin of profiling instrumentation pass. So far, despite the
file name, we only support function profiling. This will be fixed in the
near future.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9547 91177308-0d34-0410-b5e6-96231b3b80d8
lockProfiling.cpp
7b6dd2950f07ec9921bd9e90244a1d56d5ba6506 27-Oct-2003 Chris Lattner <sabre@nondot.org> Eliminate using declarations


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9543 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
856ba76200ec2302f2fe500bc507f426c7d566c8 21-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM copyright header.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9321 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.h
e488e9360b1a865ba604330965edcf139e590b65 21-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM copyright notice to Makefiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9312 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
rofilePaths/Makefile
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
mitFunctions.cpp
rofilePaths/CombineBranch.cpp
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
raceValues.cpp
3b237fcd385a734b49bb54893ce256ba181e36f9 19-Oct-2003 Chris Lattner <sabre@nondot.org> Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9269 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
cf3056db0fee1db7921214b1f25cea04e959e105 13-Oct-2003 Chris Lattner <sabre@nondot.org> Regularize header file comments


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9071 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
rofilePaths/CombineBranch.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
raceValues.cpp
21fb3afe73726f3c250e821c0862be73b1d63720 13-Oct-2003 Chris Lattner <sabre@nondot.org> Regularize header file comment, eliminate using's


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9069 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
17634f7668f275d3c3ac97d4b476443b2528648d 10-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Include <cstdio> instead of <stdio.h>.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9032 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
e24b616faa7fc4242f807669d502a544e9b042fd 10-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Don't include Config/stdio.h or <stdio.h>.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9031 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
cf00c4ab3ba308d45d98c5ccab87362cf802facb 10-Oct-2003 Misha Brukman <brukman+llvm@gmail.com> Fix spelling.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9027 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/ProfilePaths.cpp
9c9c90df8fd215bf75bd97dc80c80ac7b75e4cd4 10-Oct-2003 Misha Brukman <brukman+llvm@gmail.com> Fixing the spelling of this filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9009 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxillary.cpp
23ed9c1c97911d65f90759e0ef74769d27d57429 25-Sep-2003 Chris Lattner <sabre@nondot.org> Use global *_iterator


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8703 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
f8b5b6ddb49df916bccdcff0d7e8a2bf8a6bc3a3 25-Sep-2003 Chris Lattner <sabre@nondot.org> Do not use BasicBlock::*_iterator, just use *_iterator itself.
Isn't updating copy and pasted code a joy


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8702 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
02a3be020a6b4eedb4b489959997d23a22cdf22e 20-Sep-2003 Chris Lattner <sabre@nondot.org> Rename Function::getEntryNode -> getEntryBlock


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8625 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
raceValues.cpp
1df2998451793ba5afae6972af242c4c36ac133d 10-Sep-2003 Chris Lattner <sabre@nondot.org> Update for new UnifyFunction... API
Remove using decl


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8458 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
4ea31ca3912ae2ac586a21c599fb4eb039a9478f 10-Sep-2003 Chris Lattner <sabre@nondot.org> Remove #include


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8457 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
85ce5f3ccc3a8d1c7eac934d1713c64413a7d209 05-Sep-2003 Brian Gaeke <gaeke@uiuc.edu> Correct comments
Don't include InstLoops.h
Don't export factory functions for these passes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8373 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
rofilePaths/InstLoops.cpp
034636444b77c82c420c7f6d8c4014aa559b28e2 31-Aug-2003 Chris Lattner <sabre@nondot.org> Use the new interface, simplifies code

NOTE that these two files are _BUGGY_ and need to be fixed, just not by me :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8241 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
30aef423d16f351b311557743e12d2686b722243 31-Aug-2003 Chris Lattner <sabre@nondot.org> Use the new interface, simplifies code
Delete a bunch of commented out code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8240 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
5f07c877b38a5914859da6c51c5064fb60a11483 31-Aug-2003 Chris Lattner <sabre@nondot.org> Use the new interface, simplifies code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8239 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
aee2fdf0690f1e074a5193bb73005f10abba8d4b 13-Aug-2003 Brian Gaeke <gaeke@uiuc.edu> Give std::map<BasicBlock *, BasicBlock *> the short name BBMap, because
it's used 7 different times.
Rename `getBackEdges' to `findAndInstrumentBackEdges', for clarity.
Remove some excess whitespace and commented-out code.
Use shorter forms of CallInst ctors.
Do not make `reopt_threshold' visible to the LLVM program, and do not
pass it to the call to `reoptimizerInitialize'. Don't pass the
GlobalVariable representing it to any of our helper methods.
`reopt_threshold' is an internal parameter of the reoptimizer, which
InstLoops does not need to know about.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7794 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/InstLoops.cpp
6806f5614d2ec260fda954c951d33f58e77ed610 02-Aug-2003 Chris Lattner <sabre@nondot.org> DEBUG got moved to Support/Debug.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7492 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
a235e14eaf7997acf7ba8f7088bc77428d52ff1e 18-Jul-2003 Anand Shukla <ashukla@cs.uiuc.edu> Added check for inlinable function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7206 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
0df7ddbd31397356ef2ac0b44a2f188353ceeed9 18-Jul-2003 Anand Shukla <ashukla@cs.uiuc.edu> A pass to combine multiple backedges that go to same target


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7201 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/CombineBranch.cpp
919fc8c367bb875326a2420041a385a3f5f6ad4f 11-Jul-2003 Vikram S. Adve <vadve@cs.uiuc.edu> Trace loads and stores as they happen (stores were being
remembered in valuesStoredInFunction, but never traced at function return,
and that's too late to be finding the error anyway).
Stores trace both the value and the address being stored to,
but after some experience I think only values should be traced.
The pointer hash table just fills up far too quickly if every
store address were traced.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7169 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
666ff520e6b0a7a3c9f11e7a86d7bf8eebb4e24a 10-Jul-2003 Anand Shukla <ashukla@cs.uiuc.edu> Added functionality to instrmentation pass


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7161 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/InstLoops.cpp
7a73b80b9052136c8cd2234eb3433a07df7cf38e 30-Jun-2003 John Criswell <criswell@uiuc.edu> Merged in autoconf branch. This provides configuration via the autoconf
system.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/ProfilePaths.cpp
cd0cc613293b2e2d0964dca95a4c0f63708e0f64 05-Jun-2003 Anand Shukla <ashukla@cs.uiuc.edu> Fixed a bug so initialization code is always inserted in main


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6622 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/ProfilePaths.cpp
d3646f158656bf47bc9a6dd86d79f1b7d4a0c7f7 05-Jun-2003 Chris Lattner <sabre@nondot.org> Use a constant expr GEP instead of an actual instruction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6620 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
fa9ee73a7dfe3f73c0058bf2c5842ff1adef5a15 04-Jun-2003 Chris Lattner <sabre@nondot.org> Make this work with counter > 127


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6613 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
619754fb180a39d5a1b76518938ec140a37d1c91 01-Jun-2003 Anand Shukla <ashukla@cs.uiuc.edu> Added the #(internal functions) to output


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6502 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
de579f11ff018aeac07ca28e7c94dd477f342b9c 23-May-2003 Chris Lattner <sabre@nondot.org> Remove using declarations


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6306 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
e408e25132b8de8c757db1e3ddcd70432dfeb24d 23-Apr-2003 Chris Lattner <sabre@nondot.org> Remove unnecesary &*'s


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5872 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/InstLoops.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
raceValues.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
mitFunctions.cpp
rofilePaths/ProfilePaths.cpp
raceValues.cpp
af7ccd9bba91deb87dd7c6bcb4c86f9492002d30 13-Apr-2003 Chris Lattner <sabre@nondot.org> Make help message more clear


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5775 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
92d5e30e762601ce1076e548d2281fac39e40fe3 14-Feb-2003 Anand Shukla <ashukla@cs.uiuc.edu> Changes to runtime framework


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5572 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
dab73bef8970074e16d118141d98faeb957c0be2 10-Feb-2003 Chris Lattner <sabre@nondot.org> Revert Anand's patch which broke the build


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5525 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.h
f013d3d40b491408cd646a403f54ecc7acbad0fd 09-Feb-2003 Anand Shukla <ashukla@cs.uiuc.edu> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5522 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.h
c56d239510e110db990d42a0f24a828c5528ecdf 14-Jan-2003 Chris Lattner <sabre@nondot.org> Rename include/llvm/Transforms/Instrumentation/TraceFunctions.h to Instrumentation.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5281 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
raceValues.cpp
4b208dc5999a766615507817ec3c64a0b5cb796e 14-Jan-2003 Chris Lattner <sabre@nondot.org> Fix typeo


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5278 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/InstLoops.cpp
e9e55131e8aed0b9f6ef9c4f4caf5f0e3f9bb844 14-Jan-2003 Chris Lattner <sabre@nondot.org> Remove unused header and function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5277 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
b117fb57a6af2015625436e812851b543dd6d1b0 14-Jan-2003 Chris Lattner <sabre@nondot.org> Clean up #includes
Move graph.h into local directory


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5276 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
rofilePaths/ProfilePaths.cpp
rofilePaths/RetracePath.cpp
80e5ed9f77d1f9c2fe1b35602ce96dc4612d4710 13-Jan-2003 Chris Lattner <sabre@nondot.org> Make sure to handle %'s in strings correctly so that the names of BB's and functions are actually printed!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5234 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
0006bd75201f340b95c1dbf71e50dc5de5ed9425 09-Nov-2002 Chris Lattner <sabre@nondot.org> Fix warning


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4649 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
93d545e691ef8c7c802a0c83dfb046e81d38e5d8 03-Nov-2002 Anand Shukla <ashukla@cs.uiuc.edu> code to lightly instrument at branches


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4511 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/InstLoops.cpp
cb2610ea037a17115ef3a01a6bdaab4e3cfdca27 21-Oct-2002 Chris Lattner <sabre@nondot.org> - Rename AnalysisUsage::preservesAll to getPreservesAll & preservesCFG to
setPreservesCFG to be less confusing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4255 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
1a33e3175893a1edcb2d255d24f2127c3a14fbf8 17-Oct-2002 Chris Lattner <sabre@nondot.org> * Apparently string::find doesn't work right on our sun boxes. Work around this.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4219 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
0b16ae209a1d0876a7ea6800bb567d925443cba3 13-Oct-2002 Chris Lattner <sabre@nondot.org> - Rename Instruction::First*Op to *OpsBegin, and Num*Ops to *OpsEnd to
reflect the fact that it's a range being defined.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4147 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
3383b1d3bb3bdbc39a0a057d83f0db26ea4440b0 12-Oct-2002 Anand Shukla <ashukla@cs.uiuc.edu> Changed to external global var


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4120 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
e68bf61f6f6d267ebe3c6b65e59a32754981edab 02-Oct-2002 Chris Lattner <sabre@nondot.org> Changes to work with Statistics rework
* Renamed StatisticReporter.h/cpp to Statistic.h/cpp
* Broke constructor to take two const char * arguments instead of one, so
that indendation can be taken care of automatically.
* Sort the list by pass name when printing
* Make sure to print all statistics as a group, instead of randomly when
the statistics dtors are called.
* Updated ProgrammersManual with new semantics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4004 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.h
6ee6bbeb04b0213b3f2d60db3ba36fa71d6d9251 02-Oct-2002 Chris Lattner <sabre@nondot.org> Updates to work with recent Statistic's changes:
* Renamed StatisticReporter.h/cpp to Statistic.h/cpp
* Broke constructor to take two const char * arguments instead of one, so
that indendation can be taken care of automatically.
* Sort the list by pass name when printing
* Make sure to print all statistics as a group, instead of randomly when
the statistics dtors are called.
* Updated ProgrammersManual with new semantics.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4001 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
249be915df110099df2ea99657c7ccbf4e9c564c 02-Oct-2002 Chris Lattner <sabre@nondot.org> Build subdirs in parallel


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4000 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
590df88d824f9616990d1a6793b5b3e1d135e70a 20-Sep-2002 Anand Shukla <ashukla@cs.uiuc.edu> Added checking threshold


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3864 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
rofilePaths/ProfilePaths.cpp
6689b06697ddb207fd17626f3b69d393ceda3be7 18-Sep-2002 Anand Shukla <ashukla@cs.uiuc.edu> split retracing into a separate file


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3809 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/RetracePath.cpp
bfb472447e19b61659bbe2d08959d6cc47eb740d 18-Sep-2002 Misha Brukman <brukman+llvm@gmail.com> Removed unnecessary #includes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3802 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
cb16c654261e9bab7c829792804c494aac755891 18-Sep-2002 Chris Lattner <sabre@nondot.org> There is a #define in some header that conflicts with INFINITY, rename it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3797 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
6641995564bd49562b0699c73b5e299a16d7f906 16-Sep-2002 Anand Shukla <ashukla@cs.uiuc.edu> Incorporated changes in alloca and getElementPointer instruction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3733 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
ada50a5c1df1f06687356a3bc4849507ab74c28e 16-Sep-2002 Anand Shukla <ashukla@cs.uiuc.edu> Incorporated changes in alloca instruction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3732 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
b2a0fbea11e4996a613cb264cff6edbc7626e7e5 14-Sep-2002 Chris Lattner <sabre@nondot.org> Fix bug I introduced


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3719 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
106ff4551c9c35bb6bcbdd6ca50543b100a7658e 11-Sep-2002 Chris Lattner <sabre@nondot.org> - Change getelementptr instruction to use long indexes instead of uint
indexes for sequential types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3681 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
raceValues.cpp
2a7c23ef9156a97f426a3fe8d1f5935b75d076d1 10-Sep-2002 Chris Lattner <sabre@nondot.org> Simplify code (somtimes dramatically), by using the new "auto-insert" feature
of instruction constructors.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3656 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
3ea5cb0df1a992b900b6eefb9da2505792c2c819 10-Sep-2002 Chris Lattner <sabre@nondot.org> Simplify code (somtimes dramatically), by using the new "auto-insert" feature
of instruction constructors.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3655 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
65ad37205ef6958e07f57f85d1b5070ed1d93d1d 03-Sep-2002 Chris Lattner <sabre@nondot.org> - Renamed Type::isIntegral() to Type::isInteger()
- Added new method Type::isIntegral() that is the same as isInteger, but
also accepts bool.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3573 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
8e4fc2598dbadd7e3c7c22367d6b7ffae3107851 23-Aug-2002 Chris Lattner <sabre@nondot.org> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3483 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
b63b29d9b030beb00df59bc9f0d80f90cdfc6aab 22-Aug-2002 Chris Lattner <sabre@nondot.org> Do not generate loads/stores with indexing


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3422 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
25ba05972f0a9fd9f8dc2480c3d8af67845a42ce 22-Aug-2002 Chris Lattner <sabre@nondot.org> Remove extraneous #includes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3421 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
dd5b49512976df3225b67f9685642253186cde3d 08-Aug-2002 Chris Lattner <sabre@nondot.org> - Cleaned up the interface to AnalysisUsage to take analysis class names
instead of ::ID's.
- Pass::getAnalysis<> now no longer takes an optional argument


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3264 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.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
mitFunctions.cpp
raceValues.cpp
1e43516dcf4aa152432447397334cd43744d63e1 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@3112 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
f629309f74cf1a64aa7fd1cd5784fd7db9a8f59e 23-Jul-2002 Chris Lattner <sabre@nondot.org> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3016 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
rofilePaths/ProfilePaths.cpp
11982667780c40f0640408e78da1ba06a35c183e 23-Jul-2002 Chris Lattner <sabre@nondot.org> * Cleanup the pass a bit more, making it more object oriented.
* Split the two behaviors of the InsertTraceCode class into two subclasses
* Register Passes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3014 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
56d27019e6aebd7cfa5d031c832193eb66d75830 23-Jul-2002 Chris Lattner <sabre@nondot.org> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3002 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
rofilePaths/Makefile
4689728cdf557fb979d0a5464b9b24f18630be2e 22-Jul-2002 Chris Lattner <sabre@nondot.org> Hide extra argument


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2986 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
5ff62e90d0bc321206023897edc1e2691cb0fbb6 22-Jul-2002 Chris Lattner <sabre@nondot.org> *** empty log message ***


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
5585f53d7c24e9d7674711c32fb652cde6720794 21-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> comeented out debug printing


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2980 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
e617f927413b052c4912b05b2297ef348498511d 18-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> minor corrections


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2971 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/Graph.h
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
rofilePaths/ProfilePaths.cpp
260fc14568e41ed43a1121e79fbf9b684c2b28c3 17-Jul-2002 Chris Lattner <sabre@nondot.org> Anand forgot to check in the makefile corresponding to his previous change
which eliminated the EmitFunctions directory


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2937 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Makefile
e0b514259c649e0363373da2b301ee92866d3a5d 16-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> Moved over EmitFunctions to this library


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2928 91177308-0d34-0410-b5e6-96231b3b80d8
mitFunctions.cpp
f080ec7dcd3a7bec57b82bc5be28ed5203248e03 16-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> removed this directory


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2927 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EmitFunctions/Makefile
11870879ec5247c4defdaecd28863a8b57f50905 16-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> Moved EmitFunctions.cpp up to instrumentation directory


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2926 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EmitFunctions/EmitFunctions.cpp
9713c4ef4670c3128c8d7be9a9621828ab89ed14 16-Jul-2002 Chris Lattner <sabre@nondot.org> * Cleanup pass
* The global variable cannot be internal or else we cannot use it!
* Always add a function to the table, even if it only has a single basic
block.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2921 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EmitFunctions/EmitFunctions.cpp
135b75db498e6eaba9f0ad675e7f86bd171cffb6 12-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> Added EmitFunctions directory


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2883 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Makefile
41059bc5306678e88ce469c9c9f9c978ac41ce16 12-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> Initial makefile


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2882 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EmitFunctions/Makefile
09ba7b34c4832233acf66657f4e94aa34fac7cab 12-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> Initial version: adds a function table to output code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2881 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EmitFunctions/EmitFunctions.cpp
f86b4c1982975c01e8a3c434ba8d649c9dc68435 09-Jul-2002 Vikram S. Adve <vadve@cs.uiuc.edu> Fix iteration and InsertPos bugs introduced when Chris changed over to ilist.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2840 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
ec07c755fc135b482e11808029f7e517101cd535 08-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> changes BBsorting and oredering


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2817 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
82f40e8210445b436481537738d909e4ed9e968c 08-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> small corrections


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2816 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
d4d79067c0c33875b00ad98afd569a77187bae1e 08-Jul-2002 Anand Shukla <ashukla@cs.uiuc.edu> changed function numbering


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2815 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
5cafcfbab42e0160149a3390ee7aae12bbfded27 25-Jun-2002 Anand Shukla <ashukla@cs.uiuc.edu> additions and bug fixes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2794 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
rofilePaths/ProfilePaths.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
raceValues.cpp
0b12b5f50ec77a8bd01b92d287c52d748619bb4b 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@2778 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/ProfilePaths.cpp
c43fa80e1fd1fa319f050a2906ca1726d8d51cf1 25-Jun-2002 Anand Shukla <ashukla@cs.uiuc.edu> Relocating Graph.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2770 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.h
f09c74c3859f3c97dfe36d22d9ff1c536fc825ed 22-May-2002 Chris Lattner <sabre@nondot.org> Convert code to use the DEBUG macro so that debug code can simply be
enabled with the -debug command line option.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2721 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
rofilePaths/ProfilePaths.cpp
2e0769ea16d695f77a030c5ce3a34f5848954cca 20-May-2002 Chris Lattner <sabre@nondot.org> * Change commandline options a bit to be nicer
* Insert accurate prototypes for functions
* Insert casts to use accurate prototypes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2677 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
1e2ddcf74123d58ce06091a8d517a36b90dfa46e 19-May-2002 Vikram S. Adve <vadve@cs.uiuc.edu> Hash pointer values to a sequence number to get identical results from
lli and llc. This is controlled with options -tracehash on|off.

Also, added an option to specify which functions should be traced.
Particularly useful to reduce output volume in basic-block tracing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2646 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
fc514f40a63126bbda9404c717890f8dd6cbbcad 07-May-2002 Chris Lattner <sabre@nondot.org> Move UnifyFunctionExitNodes to Utils library: final resting place this time


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2531 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
c8cc4cb03bd90f89be7fe1649542a2d5ae689632 07-May-2002 Chris Lattner <sabre@nondot.org> Updates to move some header files out of include/llvm/Transforms into
the Scalar and Utils subdirectories


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2523 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.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
rofilePaths/ProfilePaths.cpp
96c466b06ab0c830b07329c1b16037f585ccbe40 29-Apr-2002 Chris Lattner <sabre@nondot.org> Add new optional getPassName() virtual function that a Pass can override
to make debugging output a lot nicer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2395 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
raceValues.cpp
97e52e43361e77963145b95a576db11b4d14d309 28-Apr-2002 Chris Lattner <sabre@nondot.org> Tighten up the AnalysisUsage of lots of passes, primarily to correctly indicate whether or not they invalidate the CFGA


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2386 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.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
rofilePaths/EdgeCode.cpp
rofilePaths/ProfilePaths.cpp
raceValues.cpp
483e14ee0412a98db1fb0121528d8d621ae3dfdb 27-Apr-2002 Chris Lattner <sabre@nondot.org> s/Method/Function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2336 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
f57b845547302d24ecb6a9e79d7bc386f761a6c9 27-Apr-2002 Chris Lattner <sabre@nondot.org> * Rename MethodPass class to FunctionPass
- Rename runOnMethod to runOnFunction
* Transform getAnalysisUsageInfo into getAnalysisUsage
- Method is now const
- It now takes one AnalysisUsage object to fill in instead of 3 vectors
to fill in
- Pass's now specify which other passes they _preserve_ not which ones
they modify (be conservative!)
- A pass can specify that it preserves all analyses (because it never
modifies the underlying program)
* s/Method/Function/g in other random places as well


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2333 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
raceValues.cpp
649f5dd77aed380f9f7e404bda6cb4abaf5557d9 14-Apr-2002 Chris Lattner <sabre@nondot.org> * s/Method/Function
* Fix bug where the character after a % was being discarded


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2248 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.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
raceValues.cpp
42a412711c000d175d992dd1b85cfd04fd345e5b 09-Apr-2002 Chris Lattner <sabre@nondot.org> Add #includes to make up for #includes pruned out of header files.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2207 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
raceValues.cpp
237e6d10f24863cf48821b601b4164794e89d847 09-Apr-2002 Chris Lattner <sabre@nondot.org> s/Method/Function
Remove extraneous #includes of llvm/Assembly/Writer


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2178 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
2fbfdcffd3e0cf41422aaa6c526c37cb02b81341 07-Apr-2002 Chris Lattner <sabre@nondot.org> Change references to the Method class to be references to the Function
class. The Method class is obsolete (renamed) and all references to it
are being converted over to Function.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2144 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
2aac6bf66a4f4486e14ee5bdc96277ec770afdc7 05-Apr-2002 Chris Lattner <sabre@nondot.org> s/MethodType/FunctionType


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2115 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
89851077da34f052819b2da026bf881f3ae0eac7 29-Mar-2002 Chris Lattner <sabre@nondot.org> Simplify code a bit by using Module::getOrInsertFunction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2032 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.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
raceValues.cpp
e7506a366e8bd56c97d10beb68e4db953aebaeca 23-Mar-2002 Chris Lattner <sabre@nondot.org> Rename Method to Function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1957 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
524185af3f0b243b94e4593f642645de7825a2da 18-Mar-2002 Vikram S. Adve <vadve@cs.uiuc.edu> Just a comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1908 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
bd0ef77cde9c9e82f2b4ad33e4982c46274d6540 26-Feb-2002 Chris Lattner <sabre@nondot.org> Change over to use new style pass mechanism, now passes only expose small
creation functions in their public header file, unless they can help it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1816 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
eded4916d6679a8c42e5f16d022afe0252c2df8e 26-Feb-2002 Chris Lattner <sabre@nondot.org> Move ProfilePaths class into ProfilePaths library, only expose a creation function


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1812 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
905ac5ee67380e138314c645acb7b4330ffd6caf 26-Feb-2002 Chris Lattner <sabre@nondot.org> Pass stuff by reference instead of by copy. Copying entire graphs seems like
a bad idea


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1810 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
5fb52fbf9e84ed09f7746679bdaf5b68a4374927 26-Feb-2002 Chris Lattner <sabre@nondot.org> Move processGraph down lower in the file so all of the forward declarations
can be eliminated.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1809 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
fd1717d03bf3fb5b44e49d9d53bd2fb7236937e1 26-Feb-2002 Chris Lattner <sabre@nondot.org> * Changes to compile successfully with GCC 3.0
* Eliminated memory leak in processGraph
* Pass vectors by const reference to moveDummyCode instead of by copy


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1808 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
rofilePaths/ProfilePaths.cpp
2d9bbfdfc432519f22263e7c5c7b421419becfee 26-Feb-2002 Anand Shukla <ashukla@cs.uiuc.edu> Makefile for profile-paths


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1807 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Makefile
c3e69696acbdb7e38dadfe6e36849645194846fb 26-Feb-2002 Anand Shukla <ashukla@cs.uiuc.edu> Initial checkin: functions on Graph used for path profile pass


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1806 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/GraphAuxiliary.cpp
rofilePaths/GraphAuxillary.cpp
070834a040c75c11f2c2d068d0e6d3b8c64e116b 26-Feb-2002 Anand Shukla <ashukla@cs.uiuc.edu> Initial checkin: instrument code to get path execution frequency


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1805 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/ProfilePaths.cpp
0b8066c14948b436f7ab488bb963c56cc4b02734 26-Feb-2002 Anand Shukla <ashukla@cs.uiuc.edu> Initial checkin: helper file to insert instrumentation code along edges


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1804 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/EdgeCode.cpp
d940c7d1129da90419ba6e4342c8b6ed8b7596cb 26-Feb-2002 Anand Shukla <ashukla@cs.uiuc.edu> Initial check in of graph.cpp: implements graph interface used in path profiles


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1803 91177308-0d34-0410-b5e6-96231b3b80d8
rofilePaths/Graph.cpp
fb1d93c716933a2e2a88cb10dd1e179894faedad 26-Feb-2002 Anand Shukla <ashukla@cs.uiuc.edu> New makefile to include ProfilePaths dir


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1799 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
fcc93d2c0aece88c79648be3b76f98ee9e29e826 31-Jan-2002 Chris Lattner <sabre@nondot.org> MethodPass's are now guaranteed to not be run on external methods!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1611 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
f4de63f65fa995e68e3cd268117ab065068be413 21-Jan-2002 Chris Lattner <sabre@nondot.org> Implement a more powerful, simpler, pass system. This pass system can figure
out how to run a collection of passes optimially given their behaviors and
charactaristics.

Convert code to use it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1507 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.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
raceValues.cpp
29c147302f2681516fdc74ab9eaa03ce953dfef3 14-Dec-2001 Chris Lattner <sabre@nondot.org> * Refactor trace values to work as a proper pass. Before it used to add
methods while the pass was running which was a no no. Now it adds the
printf method at pass initialization
* Revamp code to use printf calls instead of the old style print_<type>
calls.
* Simplify code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1457 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.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
raceValues.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
raceValues.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
raceValues.cpp
9e0057922848de80c7b2058655df670ad52b77f6 26-Nov-2001 Chris Lattner <sabre@nondot.org> Make strings be internal


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1384 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
7c54b4a067ba181da846a4a787fa57a18fc7245b 26-Nov-2001 Chris Lattner <sabre@nondot.org> Support array indexing


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1345 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
2ed5ccd5128f80791c81f6875c5a9393bc1f584c 15-Nov-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Print incoming arguments and return values.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1315 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
65ea171409e8c25db20806fb09e820f46e3d11a2 14-Nov-2001 Chris Lattner <sabre@nondot.org> Remove much cruft from the MemAccessInst instruction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
8e7f4091695aad705f84398ede1fccc3796b1fad 04-Nov-2001 Chris Lattner <sabre@nondot.org> Minor method rename


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1119 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
111bd01c11752479de119f8bf961ba2b1960b7ca 29-Oct-2001 Chris Lattner <sabre@nondot.org> Fix broken assertion. Didn't allow for pointer case


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1034 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
c426c63b39adaf6ac5fc16835622a2dbe810eac0 28-Oct-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Make newlines be newlines! This should now work in both lli and native code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1016 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
d889330869aa89c4db309965a52dc82bf3ebfd97 28-Oct-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Use separate functions for printing values of each type.
Put trace code before condition-generating instruction in basic blocks
that end in a conditional branch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1002 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
b81a0bff042728f445ae67c078897f0b6acf7997 18-Oct-2001 Chris Lattner <sabre@nondot.org> Refix bugs, stop using deprecated strstream header


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@898 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
631b9a3523f883cd2c018d4082a8e90ad89be941 18-Oct-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Only print values live at BB or method exit, and insert loads at each
BB exit to read and print values stored in that BB. Note that only
these stored values are live at method exit!. Also, print messages at
method entry and exit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@892 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
bedb00d6dcc22c84f001fefca0bc379bec696e25 18-Oct-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Handle multiple exit blocks correctly.
Restore string variable cache.
Resurrect code to use formatted printing instead of PrintVal
but leave it turned off for now.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@888 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
4457163bc40b5ef94fb478f7c33dce6a51fa8d01 18-Oct-2001 Chris Lattner <sabre@nondot.org> Convert to be compatible with lli.
Need to eliminate duplicate \n entries


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@883 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
8d9e3776d81492672e8816421aa3fd6eaa7eb010 18-Oct-2001 Chris Lattner <sabre@nondot.org> Massive hacks to try to fix subtle logic bugs. I think it's all working now,
at least what used to. I should disable method exit code completely because
it's broken (doesn't insert just post dominating values)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@881 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
c18545dc9e5c8d98ea9089af8702a6cf563a8dfd 15-Oct-2001 Chris Lattner <sabre@nondot.org> Rename ConstPoolPointerReference to ConstPoolPointerRef - My fingers get tired typing that much


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@822 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
f84b9bc33b931e3fca3ad7d4c5c94e153c974273 15-Oct-2001 Chris Lattner <sabre@nondot.org> * getExitNode() doesn't exist in method anymore
* Make local functions static


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@820 91177308-0d34-0410-b5e6-96231b3b80d8
raceValues.cpp
df1892fee24fe1f051c77df196ae14d3e24afaf3 15-Oct-2001 Vikram S. Adve <vadve@cs.uiuc.edu> Insert code to trace values at basic block and method exits.
Current version does not check for liveness.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@800 91177308-0d34-0410-b5e6-96231b3b80d8
akefile
raceValues.cpp