This is an archive of the discontinued LLVM Phabricator instance.

[opaque pointer type] Bitcode support for explicit type parameter on GEP.
ClosedPublic

Authored by dblaikie on Feb 18 2015, 1:48 PM.

Details

Summary

Like http://reviews.llvm.org/D7655, add bitcode support including backwards
compatibility, for an explicit type parameter to GEP.

At the suggestion of Duncan I tried coalescing the two older bitcodes into a
single new bitcode, though I did hit a wrinkle: I couldn't figure out how to
create an explicit abbreviation for a record with a variable number of
arguments (the indicies to the gep). This means the discriminator between
inbounds and non-inbounds gep is a full variable-length field I believe? Is my
understanding correct? Is there a way to create such an abbreviation? Should I
just use two bitcodes as before?

Diff Detail

Repository
rL LLVM

Event Timeline

dblaikie updated this revision to Diff 20218.Feb 18 2015, 1:48 PM
dblaikie retitled this revision from to [opaque pointer type] Bitcode support for explicit type parameter on GEP..
dblaikie updated this object.
dblaikie added a subscriber: Unknown Object (MLST).
dblaikie updated this revision to Diff 20634.Feb 24 2015, 3:55 PM

Use an explicit abbreviation with an Array type for operands.

dblaikie updated this revision to Diff 20637.Feb 24 2015, 4:27 PM

Change to the more common VBR default of 6 bits rather than 8.

dblaikie updated this revision to Diff 20638.Feb 24 2015, 4:30 PM

clang-format

This revision was automatically updated to reflect the committed changes.

Committed in r230415