From 69ed3d69466487a0c8ea3f442fe6dc8fbe2db104 Mon Sep 17 00:00:00 2001 From: Christian Blichmann Date: Mon, 9 May 2022 05:23:52 -0700 Subject: [PATCH] clang_generator: Fix build breakage with most recent LLVM PiperOrigin-RevId: 447443100 Change-Id: I7b7ca475be159dc5e2c2f4e6f1596ff7bb0438e2 --- sandboxed_api/tools/clang_generator/generator.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sandboxed_api/tools/clang_generator/generator.cc b/sandboxed_api/tools/clang_generator/generator.cc index c5661ee..0ffc157 100644 --- a/sandboxed_api/tools/clang_generator/generator.cc +++ b/sandboxed_api/tools/clang_generator/generator.cc @@ -91,6 +91,8 @@ bool GeneratorFactory::runInvocation( // Enable code to detect whether it is being SAPI-ized "__SAPI__", // TODO(b/222241644): Figure out how to deal with intrinsics properly + // Note: The definitions below just need to parse, they don't need to + // compile into useful code. "__builtin_ia32_paddsb128=", "__builtin_ia32_paddsb256=", "__builtin_ia32_paddsb512=", @@ -115,6 +117,10 @@ bool GeneratorFactory::runInvocation( "__builtin_ia32_psubusw128=", "__builtin_ia32_psubusw256=", "__builtin_ia32_psubusw512=", + "__builtin_ia32_reduce_add_d512=[](auto)->long long{return 0;}", + "__builtin_ia32_reduce_add_q512=[](auto)->long long{return 0;}", + "__builtin_ia32_reduce_mul_d512=[](auto)->long long{return 0;}", + "__builtin_ia32_reduce_mul_q512=[](auto)->long long{return 0;}", }) { options.addMacroDef(def); }