Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
a0987966
Commit
a0987966
authored
17 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
allow the 8-bit abbrev to be used for either bb or other values
llvm-svn: 36761
parent
fd1ad10e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+6
-6
6 additions, 6 deletions
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
with
6 additions
and
6 deletions
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+
6
−
6
View file @
a0987966
...
@@ -714,9 +714,9 @@ static void WriteValueSymbolTable(const ValueSymbolTable &VST,
...
@@ -714,9 +714,9 @@ static void WriteValueSymbolTable(const ValueSymbolTable &VST,
if
(
VST
.
empty
())
return
;
if
(
VST
.
empty
())
return
;
Stream
.
EnterSubblock
(
bitc
::
VALUE_SYMTAB_BLOCK_ID
,
3
);
Stream
.
EnterSubblock
(
bitc
::
VALUE_SYMTAB_BLOCK_ID
,
3
);
{
// 8-bit fixed
width VST_ENTRY strings.
{
// 8-bit fixed
-
width VST_ENTRY
/VST_BBENTRY
strings.
BitCodeAbbrev
*
Abbv
=
new
BitCodeAbbrev
();
BitCodeAbbrev
*
Abbv
=
new
BitCodeAbbrev
();
Abbv
->
Add
(
BitCodeAbbrevOp
(
b
it
c
::
VST_CODE_ENTRY
));
Abbv
->
Add
(
BitCodeAbbrevOp
(
B
it
CodeAbbrevOp
::
Fixed
,
3
));
Abbv
->
Add
(
BitCodeAbbrevOp
(
BitCodeAbbrevOp
::
VBR
,
8
));
Abbv
->
Add
(
BitCodeAbbrevOp
(
BitCodeAbbrevOp
::
VBR
,
8
));
Abbv
->
Add
(
BitCodeAbbrevOp
(
BitCodeAbbrevOp
::
Array
));
Abbv
->
Add
(
BitCodeAbbrevOp
(
BitCodeAbbrevOp
::
Array
));
Abbv
->
Add
(
BitCodeAbbrevOp
(
BitCodeAbbrevOp
::
Fixed
,
8
));
Abbv
->
Add
(
BitCodeAbbrevOp
(
BitCodeAbbrevOp
::
Fixed
,
8
));
...
@@ -762,17 +762,17 @@ static void WriteValueSymbolTable(const ValueSymbolTable &VST,
...
@@ -762,17 +762,17 @@ static void WriteValueSymbolTable(const ValueSymbolTable &VST,
}
}
unsigned
AbbrevToUse
=
0
;
unsigned
AbbrevToUse
=
VST_ENTRY_8_ABBREV
;
// VST_ENTRY: [valueid,
namelen,
namechar x N]
// VST_ENTRY: [valueid, namechar x N]
// VST_BBENTRY: [bbid,
namelen,
namechar x N]
// VST_BBENTRY: [bbid, namechar x N]
unsigned
Code
;
unsigned
Code
;
if
(
isa
<
BasicBlock
>
(
SI
->
getValue
()))
{
if
(
isa
<
BasicBlock
>
(
SI
->
getValue
()))
{
Code
=
bitc
::
VST_CODE_BBENTRY
;
Code
=
bitc
::
VST_CODE_BBENTRY
;
if
(
is7Bit
)
AbbrevToUse
=
VST_BBENTRY_7_ABBREV
;
if
(
is7Bit
)
AbbrevToUse
=
VST_BBENTRY_7_ABBREV
;
}
else
{
}
else
{
Code
=
bitc
::
VST_CODE_ENTRY
;
Code
=
bitc
::
VST_CODE_ENTRY
;
AbbrevToUse
=
is7Bit
?
VST_ENTRY_7_ABBREV
:
VST_ENTRY_8_ABBREV
;
if
(
is7Bit
)
AbbrevToUse
=
VST_ENTRY_7_ABBREV
;
}
}
NameVals
.
push_back
(
VE
.
getValueID
(
SI
->
getValue
()));
NameVals
.
push_back
(
VE
.
getValueID
(
SI
->
getValue
()));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment