llvm.org GIT mirror llvm / 164adda
[GISel]: Remove unused lambda captures. NFC https://reviews.llvm.org/D33085 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302831 91177308-0d34-0410-b5e6-96231b3b80d8 Aditya Nandakumar 3 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
173173 return Aspect.Type;
174174 case NarrowScalar: {
175175 return findLegalType(Aspect,
176 [&](LLT Ty) -> LLT { return Ty.halfScalarSize(); });
176 [](LLT Ty) -> LLT { return Ty.halfScalarSize(); });
177177 }
178178 case WidenScalar: {
179 return findLegalType(Aspect, [&](LLT Ty) -> LLT {
179 return findLegalType(Aspect, [](LLT Ty) -> LLT {
180180 return Ty.getSizeInBits() < 8 ? LLT::scalar(8) : Ty.doubleScalarSize();
181181 });
182182 }
183183 case FewerElements: {
184184 return findLegalType(Aspect,
185 [&](LLT Ty) -> LLT { return Ty.halfElements(); });
185 [](LLT Ty) -> LLT { return Ty.halfElements(); });
186186 }
187187 case MoreElements: {
188188 return findLegalType(Aspect,
189 [&](LLT Ty) -> LLT { return Ty.doubleElements(); });
189 [](LLT Ty) -> LLT { return Ty.doubleElements(); });
190190 }
191191 }
192192 }