16#ifndef OR_TOOLS_MATH_OPT_ELEMENTAL_CODEGEN_TESTING_H_
17#define OR_TOOLS_MATH_OPT_ELEMENTAL_CODEGEN_TESTING_H_
24 return {.name =
"TestAttr2",
26 .num_key_elements = 2,
27 .symmetry =
"SomeSymmetry",
28 .attribute_names = {
"a_name",
"b_name"}};
33 .has_key_parameter = with_key_parameter,
35 {{.type =
Type::Named(
"ExtraParam"), .name =
"extra_param"}}}};
static std::shared_ptr< Type > Named(std::string name)
A named type, e.g. "double".
Language-agnostic utilities for Elemental codegen.
AttrOpFunctionInfo GetTestFunctionInfo(bool with_key_parameter)
CodegenAttrTypeDescriptor GetTestDescriptor()
Information about how to codegen a given AttrOp in a given language.
A struct to represent an attribute type descriptor during codegen.