1 //===-- cxx_loop_proto.proto - Protobuf description of C++ with for loops -===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 /// This file describes a subset of C++ as a protobuf. It is used to
11 /// more easily find interesting inputs for fuzzing LLVM's vectorizer.
12 /// This subset differs from the one defined in cxx_proto.proto by eliminating
13 /// while loops and conditionals. The goal is that the C++ code generated will
14 /// be more likely to stress the LLVM loop vectorizer. The code generated will
15 /// contain either a single loop or two nested loops.
17 //===----------------------------------------------------------------------===//
22 required int32 val = 1;
26 // Add an enum for each array in function signature
51 required Rvalue left = 2;
52 required Rvalue right = 3;
63 message AssignmentStatement {
64 required VarRef varref = 1;
65 required Rvalue rvalue = 2;
69 required AssignmentStatement assignment = 1;
72 message StatementSeq {
73 repeated Statement statements = 1;
76 message LoopFunction {
77 optional StatementSeq inner_statements = 1;
78 required StatementSeq outer_statements = 2;