[clang] [llvm] Implement a subset of builtin_cpu_supports() features (PR #82809)

Nemanja Ivanovic via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 5 22:41:15 PST 2024


================
@@ -16570,32 +16570,72 @@ Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID,
 
 #include "llvm/TargetParser/PPCTargetParser.def"
   auto GenAIXPPCBuiltinCpuExpr = [&](unsigned SupportMethod, unsigned FieldIdx,
----------------
nemanjai wrote:

This is now a very large lambda function AFAICT. Please extract it into a static function to aid readability.

https://github.com/llvm/llvm-project/pull/82809


More information about the cfe-commits mailing list