<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm/lib/Bitcode, branch release_31</title>
<subtitle>http://llvm.org</subtitle>
<id>https://git.amat.us/llvm/atom/lib/Bitcode?h=release_31</id>
<link rel='self' href='https://git.amat.us/llvm/atom/lib/Bitcode?h=release_31'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/'/>
<updated>2012-03-11T06:09:17Z</updated>
<entry>
<title>llvm::SwitchInst</title>
<updated>2012-03-11T06:09:17Z</updated>
<author>
<name>Stepan Dyatkovskiy</name>
<email>stpworld@narod.ru</email>
</author>
<published>2012-03-11T06:09:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=3d3abe0852d5f499bed7ab014519dd582a0a795d'/>
<id>urn:sha1:3d3abe0852d5f499bed7ab014519dd582a0a795d</id>
<content type='text'>
Renamed methods caseBegin, caseEnd and caseDefault with case_begin, case_end, and case_default.
Added some notes relative to case iterators.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152532 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Taken into account Duncan's comments for r149481 dated by 2nd Feb 2012:</title>
<updated>2012-03-08T07:06:20Z</updated>
<author>
<name>Stepan Dyatkovskiy</name>
<email>stpworld@narod.ru</email>
</author>
<published>2012-03-08T07:06:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=c10fa6c801e48771b5eade50afc2fe6abaf08227'/>
<id>urn:sha1:c10fa6c801e48771b5eade50afc2fe6abaf08227</id>
<content type='text'>
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120130/136146.html

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

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

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

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

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

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

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



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152297 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>BitstreamWriter: Change primary output buffer to be a SmallVector instead of an</title>
<updated>2012-02-29T20:31:09Z</updated>
<author>
<name>Daniel Dunbar</name>
<email>daniel@zuster.org</email>
</author>
<published>2012-02-29T20:31:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=acbceeae4d7bdfbbc3437c60a5a3e26449888a15'/>
<id>urn:sha1:acbceeae4d7bdfbbc3437c60a5a3e26449888a15</id>
<content type='text'>
std::vector.
 - Good for 1-2% speedup on writing PCH for Cocoa.h.
 - Clang side API match to follow shortly, there wasn't an easy way to make this
   non-breaking.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151750 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>BitcodeWriter: Expose less implementation details -- make BackpatchWord private</title>
<updated>2012-02-29T20:31:01Z</updated>
<author>
<name>Daniel Dunbar</name>
<email>daniel@zuster.org</email>
</author>
<published>2012-02-29T20:31:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=02a248afe310c86aea682302fc587f22bb999fa7'/>
<id>urn:sha1:02a248afe310c86aea682302fc587f22bb999fa7</id>
<content type='text'>
and remove getBuffer().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151748 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Bitcode: Don't expose WriteBitcodeToStream to clients.</title>
<updated>2012-02-29T20:30:56Z</updated>
<author>
<name>Daniel Dunbar</name>
<email>daniel@zuster.org</email>
</author>
<published>2012-02-29T20:30:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=fdc8f785cd52a4438d5bf914594253b7787ab80e'/>
<id>urn:sha1:fdc8f785cd52a4438d5bf914594253b7787ab80e</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151747 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Fix PR12080 by ensuring that MaterializeModule actually reads all the bitcode</title>
<updated>2012-02-29T00:07:09Z</updated>
<author>
<name>Derek Schuff</name>
<email>dschuff@google.com</email>
</author>
<published>2012-02-29T00:07:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=0ffe6984297ece417e591003674d4466a201eb2a'/>
<id>urn:sha1:0ffe6984297ece417e591003674d4466a201eb2a</id>
<content type='text'>
in the streaming case.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151676 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Enable streaming of bitcode</title>
<updated>2012-02-06T22:30:29Z</updated>
<author>
<name>Derek Schuff</name>
<email>dschuff@google.com</email>
</author>
<published>2012-02-06T22:30:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=2ea93875b2f2900b9d244dfd7649c9ed02a34cd7'/>
<id>urn:sha1:2ea93875b2f2900b9d244dfd7649c9ed02a34cd7</id>
<content type='text'>
This CL delays reading of function bodies from initial parse until
materialization, allowing overlap of compilation with bitcode download.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149918 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>[unwind removal] Don't write out the dead 'unwind' instruction.</title>
<updated>2012-02-06T21:30:37Z</updated>
<author>
<name>Bill Wendling</name>
<email>isanbard@gmail.com</email>
</author>
<published>2012-02-06T21:30:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=3e9719e1f3a7ba41abacb6e4155cfd71a7d9788f'/>
<id>urn:sha1:3e9719e1f3a7ba41abacb6e4155cfd71a7d9788f</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149905 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>[unwind removal] Remove the 'unwind' instruction parsing bits.</title>
<updated>2012-02-06T20:50:27Z</updated>
<author>
<name>Bill Wendling</name>
<email>isanbard@gmail.com</email>
</author>
<published>2012-02-06T20:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=e185fada9bed375b7d73cfc675a466f0da843191'/>
<id>urn:sha1:e185fada9bed375b7d73cfc675a466f0da843191</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149897 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Test commit; also removes some trailing whitespace</title>
<updated>2012-02-06T19:03:04Z</updated>
<author>
<name>Derek Schuff</name>
<email>dschuff@google.com</email>
</author>
<published>2012-02-06T19:03:04Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/llvm/commit/?id=fccf0623ee35e0bbbbf0ba963a5500b7fd87fa11'/>
<id>urn:sha1:fccf0623ee35e0bbbbf0ba963a5500b7fd87fa11</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149887 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
</feed>
