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