<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emscripten-fastcomp/lib/Target/CBackend, branch master</title>
<subtitle>LLVM with the emscripten fastcomp javascript backend</subtitle>
<id>https://git.amat.us/emscripten-fastcomp/atom/lib/Target/CBackend?h=master</id>
<link rel='self' href='https://git.amat.us/emscripten-fastcomp/atom/lib/Target/CBackend?h=master'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/'/>
<updated>2012-03-23T05:50:46Z</updated>
<entry>
<title>Remove the C backend.</title>
<updated>2012-03-23T05:50:46Z</updated>
<author>
<name>Eric Christopher</name>
<email>echristo@apple.com</email>
</author>
<published>2012-03-23T05:50:46Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=a443e5b1f1013612950fc3c9ebfafca60a1c20df'/>
<id>urn:sha1:a443e5b1f1013612950fc3c9ebfafca60a1c20df</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153307 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<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/emscripten-fastcomp/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/emscripten-fastcomp/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>[unwind removal] We no longer have 'unwind' instructions being generated, so</title>
<updated>2012-02-06T21:16:41Z</updated>
<author>
<name>Bill Wendling</name>
<email>isanbard@gmail.com</email>
</author>
<published>2012-02-06T21:16:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=aa5abe88d6aa445afa593476a665e3ab14b3524c'/>
<id>urn:sha1:aa5abe88d6aa445afa593476a665e3ab14b3524c</id>
<content type='text'>
remove the code that handles them.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149901 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>reapply the patches reverted in r149470 that reenable ConstantDataArray,</title>
<updated>2012-02-05T02:29:43Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2012-02-05T02:29:43Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=18c7f80b3e83ab584bd8572695a3cde8bafd9d3c'/>
<id>urn:sha1:18c7f80b3e83ab584bd8572695a3cde8bafd9d3c</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>SwitchInst refactoring.</title>
<updated>2012-02-01T07:49:51Z</updated>
<author>
<name>Stepan Dyatkovskiy</name>
<email>stpworld@narod.ru</email>
</author>
<published>2012-02-01T07:49:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=24473120a253a05f3601cd3373403b47e6d03d41'/>
<id>urn:sha1:24473120a253a05f3601cd3373403b47e6d03d41</id>
<content type='text'>
The purpose of refactoring is to hide operand roles from SwitchInst user (programmer). If you want to play with operands directly, probably you will need lower level methods than SwitchInst ones (TerminatorInst or may be User). After this patch we can reorganize SwitchInst operands and successors as we want.

What was done:

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

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



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149481 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>Revert Chris' commits up to r149348 that started causing VMCoreTests unit test to fail.</title>
<updated>2012-02-01T04:51:17Z</updated>
<author>
<name>Argyrios Kyrtzidis</name>
<email>akyrtzi@gmail.com</email>
</author>
<published>2012-02-01T04:51:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=91766fe066efe6e0969ba805a2e3726a70ed34a3'/>
<id>urn:sha1:91766fe066efe6e0969ba805a2e3726a70ed34a3</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>with recent changes, ConstantArray is never a "string".  Remove the associated</title>
<updated>2012-01-31T06:05:00Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2012-01-31T06:05:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=1b2f643753a2974540934ac0f1e3ffd182b0571c'/>
<id>urn:sha1:1b2f643753a2974540934ac0f1e3ffd182b0571c</id>
<content type='text'>
methods and constant fold the clients to false.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149362 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>use the right accessor for ConstantDataArray.</title>
<updated>2012-01-31T03:16:39Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2012-01-31T03:16:39Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=9a0b604d3382e01208a980eff63193f95324dc37'/>
<id>urn:sha1:9a0b604d3382e01208a980eff63193f95324dc37</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149342 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
<entry>
<title>C++, CBE, and TLOF support for ConstantDataSequential</title>
<updated>2012-01-24T14:17:05Z</updated>
<author>
<name>Chris Lattner</name>
<email>sabre@nondot.org</email>
</author>
<published>2012-01-24T14:17:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/emscripten-fastcomp/commit/?id=29cc6cb4d1aa22f0a27edf4e5b363071a83a65d8'/>
<id>urn:sha1:29cc6cb4d1aa22f0a27edf4e5b363071a83a65d8</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148805 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
</entry>
</feed>
