History log of /frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b6a143562bda2117824a0515c208504e9a2830f1 26-Jul-2016 Pirama Arumuga Nainar <pirama@google.com> Fix slang to compile with LLVM r275480

Bug: http://b/31320715

In addition to fixing compilation with the new LLVM sources, this change
also switches to using LLVM's RenderScript triples. Clang also uses
this triple to set the size and alignment of 'long' data type to
64-bits. We no longer need/have the '+long64' CPU feature.

Test: Run RenderScript tests (host tests for slang and libbcc, RsTest, CTS)

Change-Id: I3d2795bc0253a10d6fb36bfb0c28eb0c2e9a2922
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
98cfae456bb1831336bce2b21979a04e2e31fed4 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update slang for LLVM rebase to r256229

Bug: http://b/26987366

Change-Id: I816e6ad4a1d43d681f3d022d119e3082702251a1
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
d1d6a832ab9571fedabac37d476d38ca9beb0e4a 25-Aug-2015 Stephen Hines <srhines@google.com> Fix invalid opcode encoding in BitWriter_2_9.

Bug: 23445219

We were mistakenly just using an invalid Code for structures, and
relying on the abbreviated opcode to do the right thing (which it does,
thankfully). This fixes one assertion that actually checks that the
Opcode and the abbreviated opcode match in value.

llvm-rs-cc: frameworks/compile/slang/BitWriter_2_9/../../../../external/llvm/include/llvm/Bitcode/BitstreamWriter.h:264: void llvm::BitstreamWriter::EmitAbbreviatedLiteral(const llvm::BitCodeAbbrevOp &, uintty) [uintty = unsigned long]: Assertion `V == Op.getLiteralValue() && "Invalid abbrev for record!"' failed.

Change-Id: Ic80dd55553d6a7802a6d2da137579c73f261ae67
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
1906a00dce8e32fe3bb8a957e333ebbbee0888e3 29-Jun-2015 Pirama Arumuga Nainar <pirama@google.com> Update Slang for LLVM rebase to r239765

Change-Id: I397b780af624f4a78382e9ec74e58e038aa9d2dc
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
21cc01860b95cad7ae60c686e511e8f4ae034e39 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update slang for rebase to LLVM r235153

- Include a tiny fix to an upstream bug
(https://llvm.org/bugs/show_bug.cgi?id=23436)
- Use BufferOutputStream instead of FormattedOutputStream in
slang_backend

Change-Id: I9c53b6bbbcccc95513b45d8f0374ced35f7baccd
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
c706907a8041faaa882f9bd87f1d1c1669023a62 18-Mar-2015 Stephen Hines <srhines@google.com> Update slang for LLVM rebase to r230699.

Change-Id: I6fa2c59b1445735e2eb95deb4ac503cb9ed369ee
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
ee4016d1247d3fbe50822de279d3da273d8aef4c 11-Apr-2014 Tim Murray <timmurray@google.com> Update Slang for Clang/LLVM 3.5a.

Change-Id: Icd59efa1197098076555c505c31939866e504a83
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
eeb251e8db802b836af7461d0f6eb1252c527ab8 11-Feb-2014 Stephen Hines <srhines@google.com> Update slang for LLVM 3.4 rebase.

Remove LinkOnceODRAutoHideLinkage, since it is now just a special case of
LinkOnceODRLinkage.

Remove CaseRange expansion code from all bitcode writers, since it is now dead.

Fix up HeaderSearch constructor.

Change-Id: I38547486be509b16ea5d8218b43c31ae35b37d3b
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
8bb06b7c40b14ce2dae414b0aa034e9b23b278c9 21-Jun-2013 Stephen Hines <srhines@google.com> Write legacy function attributes properly.

Bug: 9503142

A prior LLVM rebase accidentally overwrote the various bitcode writer
implementations with respect to function attributes. They were writing a new
style section, which would not be able to be parsed/used on older devices.
This change restores the generation of the legacy function attribute bitcode
format.

Change-Id: Ib6afc5ae405303881605c51c34b6966e4754c29d
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
0da7f6c8201b27938d3b9f048d71fd784cd1df9a 06-Mar-2013 Stephen Hines <srhines@google.com> Updates for LLVM merge to r176139.

Change-Id: I0d0d32893b4638eef298c99ac8c862c9a9bca1a6
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
23c4358f12bd9d0ba7166eceebd683db95a41b3f 10-Jan-2013 Stephen Hines <srhines@google.com> Updates for LLVM merge to r171906 on 20130108.

Change-Id: I4cf3718041d8876d4a23a412b6b4fa4226ec3b50
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
376dc03c6bb42050ddd8a56d1a3e3c6f5d6f6e1d 23-Aug-2012 Stephen Hines <srhines@google.com> Fix up slang for LLVM upstream merge to r162314.

Change-Id: Id3471daa7eee87c19c46dab8ffd972d52183440a
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
dbfe3fabb0b82d9c73e4a48a0bc3ebb6a9cda593 06-Aug-2012 Shih-wei Liao <sliao@google.com> Expand case range values for legacy BitcodeWriter.

Change-Id: I8a9319c751c37f42d90476fd8de213a9a10bd07d
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
db37c900ebe6f0ae62a1f77327dd9e5a469ff11e 13-Jul-2012 Stephen Hines <srhines@google.com> Fix ConstantDataSequential bitcode encoding issue.

BUG=6806165

This resolves the issue with ConstantDataSequential being emitted incorrectly
for legacy bitcode formats that we support.

Change-Id: Ibb76e6b3e55cb80f2224bc77957c123cd1fcb287
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
9937d116e09feb32d46a4c76eca1be6afcd3bed5 13-Jul-2012 Stephen Hines <srhines@google.com> Place each ValueEnumerator in its own namespace.

Without this change, we are actually picking up llvm::ValueEnumerator, which
is improper for our specialized writers.

Change-Id: I95990f592524293ce40092e069437febc5b2c49a
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
0444de0c0e7cfc8d8f8fed6f64cd97812bdd6a41 03-Mar-2012 Stephen Hines <srhines@google.com> Adapt to upstream Clang/LLVM changes.

Change-Id: Ib81ad97246dbee060341e2690fb7f27e9e0298f4
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
ac4e18584b8768b3f68535fa5f16232e03974323 16-Dec-2011 Logan Chien <loganchien@google.com> Apply changes to migrate to upstream (Dec 16th 2011)

- clang::ModuleLoader has changed the interface of loadModule.

- Following constants has been removed from llvm::bitc by the
upstream, so we have to define our version.

- TYPE_BLOCK_ID_OLD 10
- TYPE_SYMTAB_BLOCK_ID_OLD 13
- TYPE_CODE_STRUCT_OLD 10

- llvm::TargetMachine::createTargetMachine now takes a new
parameter for options, such as float ABI, soft float, and
no frame elimination, and etc.

Change-Id: I75e51da9d2265207060a449735342b426cedf243
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
8ec3bc862ac51f49e06bc465a6eb51871ce9d5da 22-Nov-2011 Stephen Hines <srhines@google.com> Fix bitcode function encoding error.

BUG=5650262

This error occurred because the bitcode opcode for TYPE_CODE_FUNCTION changed
from 9 to 21 in The SVN cl mentioned below.

commit 9923d389f5a3c7817a3bd603b989ef762226ba07
Author: Chad Rosier <mcrosier@apple.com>
Date: Thu Nov 3 00:14:01 2011 +0000

Remove some cruft from the BitcodeWriter, while still maintaining backward
compatibility in the BitcodeReader.

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

Change-Id: I88ae3c65128714fbea6beb4665271c87ff552fd1
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
9207a2e495c8363606861e4f034504ec5c153dab 21-Oct-2011 Logan Chien <loganchien@google.com> Apply changes to migrate to LLVM upstream Oct 20th 2011.

- StructType::isAnonymous is renamed to StructType::isLiteral.

- PassManagerBuilder has been moved from
llvm/Support/PassManagerBuilder.h to
llvm/Transforms/IPO/PassManagerBuilder.h

- Include llvm/Transforms/IPO.h for llvm::createInternalizePass.

- clang::DiagClient has be renamed to clang::DiagnosticConsumer.
Besides, we have to implement one additional pure virtual method
'clone' for create a clone of slang::DiagnosticBuffer.

- llvm::Linker::LinkModules comes with one additional parameter.
Passing llvm::Linker::DestroySource should be equivalent to
the old code we were using.

- slang::Slang is now derived from clang::ModuleLoader and implemented
loadModule pure virtual method (though we will always return NULL.)

- clang::Preprocessor is taking one additional parameter for
clang::ModuleLoader.

- clang::Diagnostic has been changed. A lot of the method has been
moved to clang::DiagnosticsEngine, and we can no longer 'Report' a
diagnostic from clang::Diagnostic. We have to use
clang::DiagnosticEngine instead.

- llvm::setCodeModel has been removed.

Change-Id: I1f2a4cbeaf61a8ed1d0d635a5a0e1baa90d99d07
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
a546cb661a8ab70577827b8310e2b56a0773c1e1 30-Aug-2011 Stephen Hines <srhines@google.com> Support HC bitcode generation in modern llvm-rs-cc.

BUG=5206223

Change-Id: Ia1377cb13dd3f702716770e46ca4af6f7b206ef5
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp
4cc499d6e5ec602309501873449c938af61170b2 25-Aug-2011 Stephen Hines <srhines@google.com> Start basic support for LLVM 2.9 bitcode writer.

Change-Id: I6a54158a32e485f506f0b991f89125b8a0e60267
/frameworks/compile/slang/BitWriter_2_9/BitcodeWriter.cpp