Lines Matching defs:ByteSpan

246   struct ByteSpan {
258 // An important feature of ByteSpan is being able to make a "section",
259 // i.e. creating another ByteSpan corresponding to a range of offsets
284 ByteSpan section(int Start, int Length) const;
285 ByteSpan &shift(int Offset);
348 void realignLoadGroup(IRBuilderBase &Builder, const ByteSpan &VSpan,
350 void realignStoreGroup(IRBuilderBase &Builder, const ByteSpan &VSpan,
359 friend raw_ostream &operator<<(raw_ostream &OS, const ByteSpan::Block &B);
360 friend raw_ostream &operator<<(raw_ostream &OS, const ByteSpan &BS);
398 const AlignVectors::ByteSpan::Block &B) {
411 raw_ostream &operator<<(raw_ostream &OS, const AlignVectors::ByteSpan &BS) {
412 OS << "ByteSpan[size=" << BS.size() << ", extent=" << BS.extent() << '\n';
413 for (const AlignVectors::ByteSpan::Block &B : BS)
575 auto AlignVectors::ByteSpan::extent() const -> int {
587 auto AlignVectors::ByteSpan::section(int Start, int Length) const -> ByteSpan {
588 ByteSpan Section;
589 for (const ByteSpan::Block &B : Blocks) {
601 auto AlignVectors::ByteSpan::shift(int Offset) -> ByteSpan & {
607 auto AlignVectors::ByteSpan::values() const -> SmallVector<Value *, 8> {
1098 const ByteSpan &VSpan, int ScLen,
1109 ByteSpan ASpan;
1174 for (const ByteSpan::Block &B : VSpan) {
1175 ByteSpan ASection = ASpan.section(B.Pos, B.Seg.Size);
1176 for (const ByteSpan::Block &S : ASection) {
1190 auto createLoad = [&](IRBuilderBase &Builder, const ByteSpan &VSpan,
1265 for (const ByteSpan::Block &B : VSpan) {
1266 ByteSpan ASection = ASpan.section(B.Pos, B.Seg.Size).shift(-B.Pos);
1273 std::vector<ByteSpan::Block *> ABlocks;
1274 for (ByteSpan::Block &S : ASection) {
1279 [&](const ByteSpan::Block *A, const ByteSpan::Block *B) {
1283 for (ByteSpan::Block *S : ABlocks) {
1307 const ByteSpan &VSpan, int ScLen,
1317 ByteSpan ASpanV, ASpanM;
1334 ByteSpan VSection =
1340 for (ByteSpan::Block &S : VSection) {
1379 auto createStore = [&](IRBuilderBase &Builder, const ByteSpan &ASpanV,
1380 const ByteSpan &ASpanM, int Index, bool MakePred) {
1503 ByteSpan VSpan;