mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
[C++11,ARM64] Range based for loops in target lowering.
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205443 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbc64ac10e
commit
8c60cf143e
@ -4640,10 +4640,9 @@ static SDValue GenerateTBL(SDValue Op, ArrayRef<int> ShuffleMask,
|
|||||||
unsigned BytesPerElt = EltVT.getSizeInBits() / 8;
|
unsigned BytesPerElt = EltVT.getSizeInBits() / 8;
|
||||||
|
|
||||||
SmallVector<SDValue, 8> TBLMask;
|
SmallVector<SDValue, 8> TBLMask;
|
||||||
for (ArrayRef<int>::iterator I = ShuffleMask.begin(), E = ShuffleMask.end();
|
for (auto Val : ShuffleMask) {
|
||||||
I != E; ++I) {
|
|
||||||
for (unsigned Byte = 0; Byte < BytesPerElt; ++Byte) {
|
for (unsigned Byte = 0; Byte < BytesPerElt; ++Byte) {
|
||||||
unsigned Offset = Byte + *I * BytesPerElt;
|
unsigned Offset = Byte + Val * BytesPerElt;
|
||||||
TBLMask.push_back(DAG.getConstant(Offset, MVT::i32));
|
TBLMask.push_back(DAG.getConstant(Offset, MVT::i32));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user