<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm/tools/llc, branch testing</title>
<subtitle>http://llvm.org</subtitle>
<id>https://git.amat.us/llvm/atom/tools/llc?h=testing</id>
<link rel='self' href='https://git.amat.us/llvm/atom/tools/llc?h=testing'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/'/>
<updated>2013-01-07T01:37:14Z</updated>
<entry>
<title>Switch TargetTransformInfo from an immutable analysis pass that requires</title>
<updated>2013-01-07T01:37:14Z</updated>
<author>
<name>Chandler Carruth</name>
<email>chandlerc@gmail.com</email>
</author>
<published>2013-01-07T01:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=aeef83c6afa1e18d1cf9d359cc678ca0ad556175'/>
<id>urn:sha1:aeef83c6afa1e18d1cf9d359cc678ca0ad556175</id>
<content type='text'>
a TargetMachine to construct (and thus isn't always available), to an
analysis group that supports layered implementations much like
AliasAnalysis does. This is a pretty massive change, with a few parts
that I was unable to easily separate (sorry), so I'll walk through it.

The first step of this conversion was to make TargetTransformInfo an
analysis group, and to sink the nonce implementations in
ScalarTargetTransformInfo and VectorTargetTranformInfo into
a NoTargetTransformInfo pass. This allows other passes to add a hard
requirement on TTI, and assume they will always get at least on
implementation.

The TargetTransformInfo analysis group leverages the delegation chaining
trick that AliasAnalysis uses, where the base class for the analysis
group delegates to the previous analysis *pass*, allowing all but tho
NoFoo analysis passes to only implement the parts of the interfaces they
support. It also introduces a new trick where each pass in the group
retains a pointer to the top-most pass that has been initialized. This
allows passes to implement one API in terms of another API and benefit
when some other pass above them in the stack has more precise results
for the second API.

The second step of this conversion is to create a pass that implements
the TargetTransformInfo analysis using the target-independent
abstractions in the code generator. This replaces the
ScalarTargetTransformImpl and VectorTargetTransformImpl classes in
lib/Target with a single pass in lib/CodeGen called
BasicTargetTransformInfo. This class actually provides most of the TTI
functionality, basing it upon the TargetLowering abstraction and other
information in the target independent code generator.

The third step of the conversion adds support to all TargetMachines to
register custom analysis passes. This allows building those passes with
access to TargetLowering or other target-specific classes, and it also
allows each target to customize the set of analysis passes desired in
the pass manager. The baseline LLVMTargetMachine implements this
interface to add the BasicTTI pass to the pass manager, and all of the
tools that want to support target-aware TTI passes call this routine on
whatever target machine they end up with to add the appropriate passes.

The fourth step of the conversion created target-specific TTI analysis
passes for the X86 and ARM backends. These passes contain the custom
logic that was previously in their extensions of the
ScalarTargetTransformInfo and VectorTargetTransformInfo interfaces.
I separated them into their own file, as now all of the interface bits
are private and they just expose a function to create the pass itself.
Then I extended these target machines to set up a custom set of analysis
passes, first adding BasicTTI as a fallback, and then adding their
customized TTI implementations.

The fourth step required logic that was shared between the target
independent layer and the specific targets to move to a different
interface, as they no longer derive from each other. As a consequence,
a helper functions were added to TargetLowering representing the common
logic needed both in the target implementation and the codegen
implementation of the TTI pass. While technically this is the only
change that could have been committed separately, it would have been
a nightmare to extract.

The final step of the conversion was just to delete all the old
boilerplate. This got rid of the ScalarTargetTransformInfo and
VectorTargetTransformInfo classes, all of the support in all of the
targets for producing instances of them, and all of the support in the
tools for manually constructing a pass based around them.

Now that TTI is a relatively normal analysis group, two things become
straightforward. First, we can sink it into lib/Analysis which is a more
natural layer for it to live. Second, clients of this interface can
depend on it *always* being available which will simplify their code and
behavior. These (and other) simplifications will follow in subsequent
commits, this one is clearly big enough.

Finally, I'm very aware that much of the comments and documentation
needs to be updated. As soon as I had this working, and plausibly well
commented, I wanted to get it committed and in front of the build bots.
I'll be doing a few passes over documentation later if it sticks.

Commits to update DragonEgg and Clang will be made presently.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171681 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Convert the TargetTransformInfo from an immutable pass with dynamic</title>
<updated>2013-01-05T11:43:11Z</updated>
<author>
<name>Chandler Carruth</name>
<email>chandlerc@gmail.com</email>
</author>
<published>2013-01-05T11:43:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=7bdf6b00e04c177f22133b5d4be10cb246cb1e76'/>
<id>urn:sha1:7bdf6b00e04c177f22133b5d4be10cb246cb1e76</id>
<content type='text'>
interfaces which could be extracted from it, and must be provided on
construction, to a chained analysis group.

The end goal here is that TTI works much like AA -- there is a baseline
"no-op" and target independent pass which is in the group, and each
target can expose a target-specific pass in the group. These passes will
naturally chain allowing each target-specific pass to delegate to the
generic pass as needed.

In particular, this will allow a much simpler interface for passes that
would like to use TTI -- they can have a hard dependency on TTI and it
will just be satisfied by the stub implementation when that is all that
is available.

This patch is a WIP however. In particular, the "stub" pass is actually
the one and only pass, and everything there is implemented by delegating
to the target-provided interfaces. As a consequence the tools still have
to explicitly construct the pass. Switching targets to provide custom
passes and sinking the stub behavior into the NoTTI pass is the next
step.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171621 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Move all of the header files which are involved in modelling the LLVM IR</title>
<updated>2013-01-02T11:36:10Z</updated>
<author>
<name>Chandler Carruth</name>
<email>chandlerc@gmail.com</email>
</author>
<published>2013-01-02T11:36:10Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=0b8c9a80f20772c3793201ab5b251d3520b9cea3'/>
<id>urn:sha1:0b8c9a80f20772c3793201ab5b251d3520b9cea3</id>
<content type='text'>
into their new header subdirectory: include/llvm/IR. This matches the
directory structure of lib, and begins to correct a long standing point
of file layout clutter in LLVM.

There are still more header files to move here, but I wanted to handle
them in separate commits to make tracking what files make sense at each
layer easier.

The only really questionable files here are the target intrinsic
tablegen files. But that's a battle I'd rather not fight today.

I've updated both CMake and Makefile build systems (I think, and my
tests think, but I may have missed something).

I've also re-sorted the includes throughout the project. I'll be
committing updates to Clang, DragonEgg, and Polly momentarily.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171366 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Sort a few more #include lines in tools/... unittests/... and utils/...</title>
<updated>2013-01-02T10:26:28Z</updated>
<author>
<name>Chandler Carruth</name>
<email>chandlerc@gmail.com</email>
</author>
<published>2013-01-02T10:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=7f00f87767036e74445aad0164eea13cf2642610'/>
<id>urn:sha1:7f00f87767036e74445aad0164eea13cf2642610</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171363 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>llvm/tools: Add #include "llvm/TargetTransformInfo.h"</title>
<updated>2012-12-11T05:53:37Z</updated>
<author>
<name>NAKAMURA Takumi</name>
<email>geek4civic@gmail.com</email>
</author>
<published>2012-12-11T05:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=f2a68db4264690b0ccb197e54af3414054b42e51'/>
<id>urn:sha1:f2a68db4264690b0ccb197e54af3414054b42e51</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169817 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Sort the #include lines for tools/...</title>
<updated>2012-12-04T10:44:52Z</updated>
<author>
<name>Chandler Carruth</name>
<email>chandlerc@gmail.com</email>
</author>
<published>2012-12-04T10:44:52Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=f010c464a11444733ec67e31aace8bcebeaf2588'/>
<id>urn:sha1:f010c464a11444733ec67e31aace8bcebeaf2588</id>
<content type='text'>
Again, tools are trickier to pick the main module header for than
library source files. I've started to follow the pattern of using
LLVMContext.h when it is included as a stub for program source files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169252 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Add a -time-compilations=&lt;N&gt; option to llc.</title>
<updated>2012-11-30T21:42:47Z</updated>
<author>
<name>Jakob Stoklund Olesen</name>
<email>stoklund@2pi.dk</email>
</author>
<published>2012-11-30T21:42:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=882092808b7179e49ee5c52c07ce9c97e3128a81'/>
<id>urn:sha1:882092808b7179e49ee5c52c07ce9c97e3128a81</id>
<content type='text'>
This causes llc to repeat the module compilation N times, making it
possible to get more accurate information from -time-passes when
compiling small modules.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169040 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>One more step towards making doInitialization and doFinalization useful for</title>
<updated>2012-11-29T17:47:05Z</updated>
<author>
<name>Pedro Artigas</name>
<email>partigas@apple.com</email>
</author>
<published>2012-11-29T17:47:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=6eda0813459547fe8094dd5d31f7dd2214b5ca7a'/>
<id>urn:sha1:6eda0813459547fe8094dd5d31f7dd2214b5ca7a</id>
<content type='text'>
start up and clean up module passes, now that ASAN and TSAN are fixed the
tests pass



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168905 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Revert r168635 "Step towards implementation of pass manager with doInitialization and doFinalization per module detangled from runOn?? calls, still has temporary code not to break ASAN to be removed when that pass conforms to the proposed model".</title>
<updated>2012-11-27T00:53:24Z</updated>
<author>
<name>Owen Anderson</name>
<email>resistor@mac.com</email>
</author>
<published>2012-11-27T00:53:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=9780d352b9108d49097970f6686fd61aba58d7fc'/>
<id>urn:sha1:9780d352b9108d49097970f6686fd61aba58d7fc</id>
<content type='text'>
It appears to have broken at least one buildbot.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168654 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Step towards implementation of pass manager with doInitialization and doFinalization per module detangled from runOn?? calls, still has temporary code not to break ASAN to be removed when that pass conforms to the proposed model</title>
<updated>2012-11-26T23:54:47Z</updated>
<author>
<name>Owen Anderson</name>
<email>resistor@mac.com</email>
</author>
<published>2012-11-26T23:54:47Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=0d30d30d58253de6b8836a11effcfc38d7566841'/>
<id>urn:sha1:0d30d30d58253de6b8836a11effcfc38d7566841</id>
<content type='text'>
Patch by Pedro Artigas, with feedback from by Chandler Carruth.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168635 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
</feed>
