blob: bdea057c6745103b022fc91a34da66aa2421829c [file] [log] [blame]
// Copyright 2025 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
// list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
////////////////////////////////////////////////////////////////////////////////
// File generated by 'tools/src/cmd/gen' using the template:
// src/tint/cmd/bench/enums_core_bench.cc.tmpl
//
// To regenerate run: './tools/run gen'
//
// Do not modify this file directly
////////////////////////////////////////////////////////////////////////////////
// clang-format off
#include <array>
#include "benchmark/benchmark.h"
#include "src/tint/lang/core/enums.h"
namespace tint::core {
namespace {
void AccessParser(::benchmark::State& state) {
const char* kStrings[] = {
"ccad",
"3",
"rVad",
"read",
"1ead",
"rqaJ",
"rlla77",
"reqqdppriHHe",
"rv_wcit",
"reabGwrte",
"read_write",
"read_vriite",
"re8d_wriWWe",
"Meadxxrite",
"wggte",
"VtX",
"writ3",
"write",
"writE",
"TTrPte",
"wxxidd",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseAccess(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(AccessParser);
void AddressSpaceParser(::benchmark::State& state) {
const char* kStrings[] = {
"44unction",
"fSSnctioVV",
"Rnc2Rion",
"function",
"uFc9ion",
"funtion",
"ROOuHciVn",
"imyedate",
"l77nnrrediaGe",
"im4edi00te",
"immediate",
"imoodte",
"imzzdiae",
"m11pediiit",
"pixel_lXXcal",
"pixII99l55local",
"pixaal_lSSrHHYl",
"pixel_local",
"iHkklocal",
"jRRxellgal",
"pxel_lobl",
"privaje",
"rivate",
"qvate",
"private",
"priNNte",
"rivtvv",
"QQivate",
"stffar",
"storaje",
"sNNwrag8",
"storage",
"stoage",
"srrorage",
"Gtorage",
"uniforFF",
"nifm",
"unrrorm",
"uniform",
"iform",
"DnfoJJm",
"un8r",
"orkgk1u",
"worgroup",
"Jorkgoup",
"workgroup",
"workgrcup",
"workgroOp",
"worttKK_rouvv",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseAddressSpace(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(AddressSpaceParser);
void AttributeParser(::benchmark::State& state) {
const char* kStrings[] = {
"alxxn",
"__qiF",
"aigqq",
"align",
"33l6gn",
"6QQottgn",
"a6ign",
"bnOizz66",
"bindyyng",
"ZiHHnZ",
"binding",
"4WWndqng",
"bOOding",
"oinYng",
"lend_s",
"blendsrF",
"blendwrc",
"blend_src",
"GedKsrff",
"KKlqnd_src",
"blenmm_s3c",
"uiltin",
"biltiq",
"builtbb",
"builtin",
"biltin",
"buOOltq",
"buiTvvtin",
"coFFor",
"00PfQ",
"coloP",
"color",
"col77s",
"colbbCr",
"colXXr",
"qoCCpuOOe",
"copstL",
"cXmpute",
"compute",
"compte",
"qopOt",
"compu22e",
"dyaXX0szzic",
"diVVgnitiP",
"dagCosnnic",
"diagnostic",
"agnostqqHHA",
"dignostic",
"difgnoKKt",
"frPggge",
"frament",
"TTragN4nc",
"fragment",
"prlgmen77",
"fzaNgent",
"bragmXXut",
"grou",
"88uK",
"gq9p",
"group",
"grou11",
"22oiip",
"ro77p",
"Nd",
"VVd",
"wW11",
"id",
"ww",
"Dd",
"K",
"ifput_11tPPachmhntrindex",
"input_atachment_index",
"inputYYattachment_index",
"input_attachment_index",
"intutVatkkachmenHHindex",
"irrput_attachment_index",
"isput_attachment_inWWex",
"inYerpolat",
"iqterLlfte",
"invver22uflte",
"interpolate",
"intrpolae",
"interpYlae",
"interyoYY77tE",
"Mnoodriat",
"invMMriat",
"invaria55t",
"invariant",
"Nariant",
"invari33n",
"invarian3",
"lmaIion",
"lrcatnKon",
"Xatio",
"location",
"loLLIion",
"lcafin",
"loUYRtDn",
"must_uhe",
"msqusuII",
"must_usH",
"must_use",
"vvQQstue",
"mus_66s",
"m7sO_se",
"055DDe",
"IIiHe",
"sze",
"size",
"sir",
"slze",
"JJGz",
"subgoup_syze",
"ubgroup_size",
"subIIroupBBsize",
"subgroup_size",
"su8gTToup_s33ze",
"dnnUUbgrouSSY_size",
"xCu5groupZsize",
"vqkrtex",
"5iirp00",
"vnnrIIex",
"vertex",
"cceKe",
"vrKK",
"ve66tex",
"wKKkgroEp_PPiz",
"xorkgroup_size",
"workgroqp_size",
"workgroup_size",
"rorkgroupyMMSize",
"wrgroup_uize",
"wrkgrouSsie",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseAttribute(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(AttributeParser);
void BuiltinTypeParser(::benchmark::State& state) {
const char* kStrings[] = {
"__atomic_cFFmpare_exchange_result_i52",
"__at4zmic_compare_exchange_resurrt_i32",
"__atWWic_ompare_exhange_result_i32",
"__atomic_compare_exchange_result_i32",
"__atomic_comZZare_JXxchange_result_C32",
"PP_atomic_compare_exchange_reslt_i32",
"__atomic_compare_exchange_resuct_i32",
"__a6llmic_comparePPexchange_result_u32",
"__a99omic_compare_xchanyye_result_u32",
"__atoKKic_compare_exchange_result_u32",
"__atomic_compare_exchange_result_u32",
"__atomic_xompareexchange__esult_u32",
"__atomi_compare_exhanyy_result_uK2",
"__atomic_compare_zxchangeVresukt_u32",
"__freqp_rKsult_abstract",
"__rexp_result_abstract",
"__frexpresult_abstrVVct",
"__frexp_result_abstract",
"__frAAUp_resIlt_abstract",
"jfrexp_result_astrabt",
"__44YYxp_resultabstrat",
"__frxp_result_f16",
"__frex11_rxxsul_f6",
"__frccxpmmresulJ_f",
"__frexp_result_f16",
"__freJJ_result_f16",
"_ffDDUxp_resulCClf16",
"__frexp_resultgf16",
"_frexp_rult_CC32",
"_frexp_result_f32",
"__freIp_res__lt_f32",
"__frexp_result_f32",
"__frttp_PPsult_f32",
"__frexp_resul3d_f32",
"_frexp_Kesultyyf32",
"__rexp_resultvec2_abstacu",
"__frexi_re3ult_venn2_abs0ract",
"__frexpKrenultuuvecCC_vbstract",
"__frexp_result_vec2_abstract",
"__frllxp_Xesult_ec2_abstract",
"__frexp_result_vec2_aostrppct",
"ww_frexp_result_vec2_abstrat",
"uu_fgxp_reslt_vec2mmf16",
"aa_frexpesmmltvec2_f16",
"__TrexRR_result_vecZ_cc16",
"__frexp_result_vec2_f16",
"__frexp_result_vec8T_fO6",
"__frexp_mesult00vec2_f16",
"m_frexp_result_vBBc2_f16",
"__frex_ppeslt_vecM_f32",
"__fexp_result_vOOc2_f32",
"__GGrexp_reult_Gec2_f32",
"__frexp_result_vec2_f32",
"__frex11_resulHH_vec2_f32",
"_eere6p_resulFF_vec2_f32",
"__frexpresult_vec2_f2",
"__friixplresult_vec3_abstrKct",
"__frexp_esult_vec3_abstract",
"__rexII_result99vec3_abvvtract",
"__frexp_result_vec3_abstract",
"__frexp_result_vec_abstract",
"__frhxp_result_vec3_abstract",
"__frexp_result_llec3_zzbtraPPt",
"_frexp_rsult_v3_f16",
"__frexp_reffulqq_vc3_f16",
"_ddreJJp_result_vec3_f16",
"__frexp_result_vec3_f16",
"__feXXp_result_vec_zz16",
"__frexp_result_ve23_16",
"__frexp_result_yyeN3_f16",
"__frexpresult_ve3_3OO",
"__fZePp_rusrlt_vec3_fE2",
"__freeepresddll_vec3_2232",
"__frexp_result_vec3_f32",
"mfrexp_r9sult_ec3_fVV2",
"__IIrexp1result_vec3_f3",
"__frexp_result_vec3_f3b",
"__frexp_result_e7i_abstrat",
"__frexp_oesult_vecii_abstract",
"__fxp_r5sult_vecn_abstract",
"__frexp_result_vec4_abstract",
"__frexp_resultvec4Sabstract",
"_22frexp_reslt_vec4_abstrct",
"__Grexp_result7vecC_abst11ac",
"__fre8ff_result_vec4_f16",
"__frexp_resultve4_f16",
"__frexp_resuJJSS_vec4_f16",
"__frexp_result_vec4_f16",
"__frep9esult_vec4_f16",
"__frexp_JJesulTT_vecbb_f16",
"_frexp_res66lt_vec4_16",
"__fre0p_r66sultuvec_f32",
"__frexp_resuyW_ec4_f32",
"__frep_result_vec_f32",
"__frexp_result_vec4_f32",
"__frxp_result_vec4_f32",
"__frexp_result_vec4rf32",
"__frexp_2esult_vec4_f3B",
"__modf_resultBBastract",
"RR_modf_reult_abstract",
"_LLmodf_resulVV0btract",
"__modf_result_abstract",
"__modOO_resltKKabstrac",
"__modw_rggsult_absract",
"__mod_resultLhabstrpct",
"_mKKdf_reEiultf16",
"_modf_result_f16",
"UU_mdf88result_f6",
"__modf_result_f16",
"__movvrr_result_f16",
"__mowf_mmesult_1",
"__m44df_rsultjf16",
"__modf_resulX_f32",
"8_modf_result_f32",
"EE_modf_reultvvf32",
"__modf_result_f32",
"__modziesult99f32",
"__modfJJresnlGG_QQ32",
"__modf_resultssf32",
"K_modf_result_Pec2_abstract",
"__modf_resut_vc2_abstrpttct",
"__modf_reult_vec2_abstrct",
"__modf_result_vec2_abstract",
"__modMM_result_vec2_abstract",
"__modf_result_vec2_absJ0ract",
"__modf_resul_vV2_ab8trac",
"__modfKrggsult_vec2_fhh6",
"__modf_result_vec2_ff6",
"__Qodf_re77ult_vec2_f16",
"__modf_result_vec2_f16",
"__modf_resultYYvc2_f16",
"__mofkresult_vecS_f16",
"__modf_resut_en2_f122",
"__modf_rsult_FFec2_f2",
"u_modf_resultUUvGGPP2_f3I",
"_amodfFresult_vec2EEfv",
"__modf_result_vec2_f32",
"e_DDof_rddsult_vec2_BB32",
"__Modf_reEEult_v55c2_cc3",
"_mKKdvresult_vc2_f32",
"__modf_Result_vec3_abstract",
"__modf_re9ut_vec3_abstract",
"__modf_result_ve3_abstract",
"__modf_result_vec3_abstract",
"aa_mdI_result_ec3_abstract",
"__77odf_result_vec3_abstract",
"__mIdf_result_vec3_abstract",
"__modf_result_vec_f16",
"__modf_reult_vec3_f16",
"__modf_rsult_vec3_f6",
"__modf_result_vec3_f16",
"__m33df_reXXulc_vec3_f16",
"__modf_resultveE3_f16",
"__modf_result_vecXXf16",
"__modxx_result_veB3_f32",
"_modfresultGGec3_f32",
"__modf_result_vec3_f366",
"__modf_result_vec3_f32",
"__0dv_result_veTT_f32",
"__mdfresukt_ve_f32",
"__mdf_reult_vec3_fpp2",
"__modf_result_vec11_abstrt",
"__Jodf_resulE_vec4BBybstract",
"_qmodx_IImsult_vec4_abstract",
"__modf_result_vec4_abstract",
"__modf_result_vec4_aFstrac",
"_modf_rYsult_vec4_abstract",
"__modh_reHHult_vec4_abstDact",
"__mHfreslt_ve224_f16",
"__mdf_reslt_vec4_f16",
"__modf_rsult_vec4_f16",
"__modf_result_vec4_f16",
"__mdf_result_vec4_f16",
"__modf_result_vec4_fdd6",
"__modf_result_OPc4_f16",
"_modabbresult_vec4_f3",
"__m00df_result_vec4_32",
"__modf_result_hec4_f32",
"__modf_result_vec4_f32",
"__modf_YYesult_veg4_32",
"__modf_result_Oec4_f32",
"_hmodfresult_vec_f32",
"fEppay",
"rrvy",
"arazz",
"array",
"arra",
"OiiJa",
"aGray",
"aTT22mic",
"ltomic",
"atbmic",
"atomic",
"atomiB",
"aPIIoXiS",
"atojjic",
"bccnding_a_ray",
"bndiS6xx_azzray",
"iing_array",
"binding_array",
"Nindi4g_vxxay",
"iAAdingpp00rra",
"byning_aeeya",
"bWWbl",
"MMtmol",
"d",
"bool",
"_oo",
"bEEoV",
"boo4",
"fVVX",
"oV6",
"f1",
"f16",
"fK6",
"",
"1a",
"O2",
"G",
"f2",
"f32",
"99R32",
"32",
"YYvXR",
"2",
"XX5",
"3",
"i32",
"ppcc",
"v32",
"EESS",
"",
"m",
"iw9",
"i8",
"n",
"pp9P",
"n8",
"npuoo_attchmMnnn",
"niBut_attaahent",
"inptqatacment",
"input_attachment",
"00nput_aLtacment",
"input_attac66mvvnt",
"nrrut_attachment",
"etxxx2",
"mONCC2x2",
"mt2x2",
"mat2x2",
"mt2x2",
"mJNNNx2",
"mt2u2",
"Aat2xESf",
"mat2x0f",
"maaa2x2f",
"mat2x2f",
"maqmmx2",
"mt2x2f",
"mUUx2E",
"mDDtK2h",
"mat2x0t_",
"lApxh",
"mat2x2h",
"mtMx2h",
"mat2xBBh",
"nnt99bbh",
"AAEEt2x",
"m65T2x3",
"mat2xH",
"mat2x3",
"mHHt2x",
"yy0n2z3",
"mat23",
"makH3f",
"mat2cf",
"mrrx3oo",
"mat2x3f",
"mJJx3f",
"CCa203f",
"mAxFx99f",
"matcx3h",
"mat2S3h",
"masoxBB",
"mat2x3h",
"matx3h",
"matx3em",
"oPPtx3gQQ",
"aB",
"atKNxl",
"mrrt4",
"mat2x4",
"atrpp4",
"mat2Py4",
"cc2ZZ4",
"t2x4f",
"ma002x4f",
"msst24BJP",
"mat2x4f",
"ffawwxJJf",
"maXXI4f",
"2f",
"ma2x4h",
"utKKx4h",
"ma442dh",
"mat2x4h",
"motpx4h",
"mathhjN4h",
"ma33UUEwwh",
"muu32",
"at3crdd",
"matttPP",
"mat3x2",
"swwt3x1",
"mnnt11x2",
"mt3x2",
"ma3x2f",
"6SSaaIx2f",
"matx2EE",
"mat3x2f",
"IcatVR2f",
"m3x9f",
"aaht32f",
"mLtSx2h",
"mfmm32",
"mm4V2h",
"mat3x2h",
"matx__",
"Qat2h",
"mdRRE3x2",
"at3x9",
"0Ctx",
"m3z3",
"mat3x3",
"matccx3",
"Ot3Q_3",
"ma3xt",
"CCzzt333pEf",
"mat3hhddf",
"66t3x77f",
"mat3x3f",
"mat3xPf",
"matwx3f",
"uux3f",
"6at3XX3h",
"mR33h",
"m33VV",
"mat3x3h",
"mHHt3GG3h",
"mMtFF73h",
"9at3x3",
"3at3x",
"mt3B_4",
"aaaBOO3",
"mat3x4",
"matAA4",
"matGGy",
"77a3xX",
"FFtt3xKf",
"mZZt3Uss4f",
"mat34f",
"mat3x4f",
"mat3x4l",
"mht3x4f",
"mKtTTxk",
"ma3xwwh",
"mt3x4Kjj",
"atxYYh",
"mat3x4h",
"mat3EE4",
"QQat3x4h",
"lat3P",
"mtffHx2",
"mat4xn",
"Fat466",
"mat4x2",
"hass4x8",
"mallFF2",
"2t4002",
"matgx2f",
"mat4xe",
"maff4xf",
"mat4x2f",
"atxf",
"matx2f",
"qqt4x2f",
"AA42h",
"matx2v",
"mjjt4xh",
"mat4x2h",
"ZZat4x2h",
"mPIItO22h",
"mZZt4x2h",
"mat4xnn",
"ZZakkH223",
"mt4x3",
"mat4x3",
"Rt43",
"maqq4x99",
"m77t4x3",
"matx3",
"uut4xccf",
"m1tRR3f",
"mat4x3f",
"mat4llJf",
"MMatI",
"7T6t4x3",
"mat4xQQJ",
"uu4x3h",
"mat4h",
"mat4x3h",
"m433qh",
"maxx4x3h",
"Nrr4h",
"ma94x4",
"ma4x4",
"mltH4",
"mat4x4",
"_t44",
"mt4x4",
"jt4x4",
"mmmt4EEttf",
"matxf",
"mrr4x4f",
"mat4x4f",
"maxx4f",
"zzt4x4",
"mat4x4e",
"au4pZ4h",
"muuTT4x00",
"mvvxJJ",
"mat4x4h",
"maQ4x4h",
"mC4R4h",
"aCx",
"pPPr",
"puDxxr",
"qqYYmll",
"ptr",
"p_FF",
"NNGtr",
"Mlr",
"source_bindin",
"resourceqxindilg",
"resoure_binding",
"resource_binding",
"reso44re_ainding",
"WWesource_bGnding",
"resojjrc_binding",
"sajjpler",
"sa1jer",
"sample",
"sampler",
"99ampler",
"samVVlyr",
"sampZex",
"sampl33r_ompavvison",
"sampler9comparisos",
"samler_Fomparison",
"sampler_comparison",
"sampuer_compaeison",
"samplIcomKKarison",
"samplercomJarison",
"sXXCCgrouSS_matrix_left",
"subgroup_matrWW66_ZZJft",
"ubgoup_mdmt5ix_left",
"subgroup_matrix_left",
"subgroup_mUrBBBx_left",
"JJ0bg11oup_matrix_left",
"subgroupttmatrfx_left",
"subgrXupmtttrix_rsult",
"subgroLp_matrix_reswlt",
"su1group_matrix_result",
"subgroup_matrix_result",
"subgroup_matrix_resuwwt",
"subgeeup_marix_rsult",
"subgroup_matrix_rsult",
"subgroup_matNNix_right",
"__RRbgroup_matrix_riUUhl",
"sHbgroup_matrix_right",
"subgroup_matrix_right",
"subgrour_maCCrix_right",
"subgroup_matrix_riht",
"subgroup_madrixpIight",
"texel_bufer",
"Lexel_bNfr",
"e_buffe",
"texel_buffer",
"teGRRexx_uqqfer",
"GGexel_buffeS",
"8ccqxel_bfer",
"texture_1",
"textte_ppd",
"qqFF0xture551d",
"texture_1d",
"txture_1d",
"textur1d",
"texOre_1d",
"textuHHe_2",
"66extureSS2O",
"tTTturddY_2d",
"texture_2d",
"textursg2d",
"texture_2GG",
"tIxtllOQQ_2d",
"texture_2d_aray",
"texture_2d_arrray",
"texture2d_ar7yyy",
"texture_2d_array",
"tBBxtur22_2d_WrrYy",
"texture_2d_ayyraV",
"ex4ue_2darray",
"texture_ddd",
"texuVVez2d",
"teyyture_3d",
"texture_3d",
"tex__ure_Ad",
"texhhure_3d",
"textuvv_d",
"textureube",
"textoorsNNgube",
"textrmm_Zube",
"texture_cube",
"3extkecube",
"textuAe_fRub",
"zWrrtur_cube",
"texture_ubRR_aray",
"textMr88_cube_arraSS",
"txturRPPcubebbarray",
"texture_cube_array",
"textWWre_cubexxrray",
"textvvrAAcube_array",
"texjjur44_cXbe_array",
"texture_depthf2d",
"texAAureUepth_2OO",
"textur_ssept_2d",
"texture_depth_2d",
"texbbure_depFsh_2d",
"nnexture_dYYpth_2d",
"textur_dsspth_2d",
"texture_depth_zzd_araq",
"texture_deptNN_d_arrQ",
"texturekppdpth_2darray",
"texture_depth_2d_array",
"texturs8_depLh_Jd_array",
"Jexture57dffpTTh_2d_array",
"text00re_depth_2d_xray",
"Ae1ture_deph_cube",
"texture_depthcube",
"textuQQe_depth_ube",
"texture_depth_cube",
"texture_weptiicbe",
"texwwure_depth_cube",
"texture_dJhpthYYcube",
"kexture_deptRR_cube_E7ay",
"texture_depth_kuube_array",
"textureRdept_cube_trray",
"texture_depth_cube_array",
"textrN_depth_cIIbe_array",
"teIture_depth_cube_array",
"texture_Eepth_cube_aiiry",
"textssre_depth_multisamped_2d",
"CCxture55Xepth_multisampled_2d",
"tex9ure_depth_multisampled_2d",
"texture_depth_multisampled_2d",
"texture_Xepth_mulisamped_2d",
"IIexture_deth_multisampled_2",
"texture_dezth_multisampled_2d",
"texurAAzz22xternal",
"textur_external",
"Fbbxtre_eternal",
"texture_external",
"texture_MMxVernal",
"wextczze_Axternamm",
"exturQQ_eteOOnal",
"texture_mbltisampled_2d",
"texture_multisaCpleknn25",
"texture_multisaplyyKK_2rr",
"texture_multisampled_2d",
"tAAture_multisampleT_2d",
"teture_multisampZeQQ_2d",
"texture_mutisa8pled_d",
"teture_stoaage_1d",
"eeextbr_stccrage_1d",
"texLLure_Porage_1d",
"texture_storage_1d",
"tetuWW_sUorage_1d",
"texture_stzzrage_1",
"text__re_soNa_1d",
"texture_storagea2d",
"texre_stoBage_2d",
"zzexture_torge_2d",
"texture_storage_2d",
"textureUaatorbge_HHd",
"te4ture_sOorg_2d",
"texGGme_storage_2d",
"texture_torage_2d_array",
"texture_storazzeN2d_aG8ray",
"teture_storage_2d_array",
"texture_storage_2d_array",
"textuxe_storaAAe_2d_array",
"texture_storage_2d_arbbuay",
"tejjture_storage_2d_array",
"texturJJ_stoqqgccx3d",
"teggtFe_torge_3d",
"textvre_soragA_3d",
"texture_storage_3d",
"texture_storagcc_3d",
"txtur7BstoraUUe_3d",
"texture_storaAAB_3d",
"x32",
"U8",
"uU8CC",
"u32",
"u__2",
"UU2",
"32",
"ur7u",
"kk",
"l8",
"u8",
"u",
"Y3",
"u44",
"ec2",
"PPr88ce",
"Je2",
"vec2",
"tV",
"vc2",
"ec",
"331f",
"uucf",
"4e02f",
"vec2f",
"v3rf",
"veYY2g",
"ve2f",
"rCCch",
"lech",
"vec2ZZ",
"vec2h",
"tqm9MMh",
"veUh",
"vgc77n",
"vdddi",
"vEcaai",
"vecIIi",
"vec2i",
"RReZ2ll",
"vecNNkrr",
"vec",
"vc2u",
"veca",
"HHec2G",
"vec2u",
"cc2u",
"vB22nllu",
"vec25",
"RRc",
"vgc3",
"ve6",
"vec3",
"p3c3",
"veKK99",
"vRc2",
"vecnn",
"veeENf",
"fHHec3f",
"vec3f",
"ss226f",
"em0f",
"vecNp",
"ve63",
"oZWWV3h",
"vHHh",
"vec3h",
"vAch",
"vTh",
"2ec3h",
"ve443W",
"8Z77",
"FeR3",
"vec3i",
"vebb3",
"ggce",
"UeSh",
"vZqNN",
"v9u",
"ccHMMu",
"vec3u",
"v3x",
"veXX",
"3u",
"e4",
"vccggI",
"vfrc",
"vec4",
"vc4",
"eggDD",
"ec99",
"eeef",
"vecf",
"vc4II",
"vec4f",
"veqf",
"Ooc77f",
"vrrDD",
"vecjh",
"11ciiFh",
"jBcRRh",
"vec4h",
"vdAc_7h",
"4jj",
"xxkeo",
"veW4i",
"IQQN1i",
"veIi",
"vec4i",
"vjc4",
"e722",
"vEElc4g",
"ve74",
"vec66m88",
"a4u",
"vec4u",
"vE4u",
"hqu",
"vc4_",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseBuiltinType(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(BuiltinTypeParser);
void BuiltinValueParser(::benchmark::State& state) {
const char* kStrings[] = {
"arcenric_cooNd",
"brycentric_coord",
"baeeycentric_TTooBBd",
"barycentric_coord",
"bargncentri11_cod",
"barycentricqcnord",
"barycBn8ricccmmoord",
"7Glip_distanctt",
"ctip_dstacs",
"cip_disKances",
"clip_distances",
"clip_dFFjntanes",
"ip_diEEtnces",
"clLDpvditances",
"fo55g_deptSS",
"fra_Zuepth",
"fr755_PPepth",
"frag_depth",
"fra_deStkk",
"fFagEEd_pSh",
"fabb_yypth",
"fRt_JJaing",
"froTt_aci1g",
"fontTfacXn",
"front_facing",
"fron_fa00ing",
"frontP77acing",
"fZont_facin",
"globalinPwocationbid",
"globHHl_bbnvoc8tjjon_ssd",
"globhl_invocation_id",
"global_invocation_id",
"globalxxinocaion_d",
"global_BnvrrcatineiQ",
"glJJbal_invocation_id",
"intauce_iwdv",
"intttance_idexx",
"instancevi99dex",
"instance_index",
"instcindex",
"insnnffnce_index",
"instance_ind5x",
"UJcal_invocatioIuid",
"local_invocation_i",
"local_itvocaFion_id",
"local_invocation_id",
"local_inv1cation_id",
"loDDal_iAAvocation_id",
"lcl_invo2atPon_iO",
"local_invoction_index",
"local_invocation_77ndex",
"locm1l_inUUocatio_inAAex",
"local_invocation_index",
"local_invocAftiXn_index",
"local_invoVVatiov_ivde",
"local_invocappion_index",
"num_subgrouTTs",
"num_skbgroupjj0",
"num_subroups",
"num_subgroups",
"nyym_ubgroups",
"num_YYugrozzps",
"numWsWbgriiups",
"7u0workgUUoups",
"UUumworkgoups",
"nm_worTThrops",
"num_workgroups",
"num5orkgroups",
"numworgru1s",
"num_mmoI44groups",
"pYitRDDYY",
"jjosition",
"osition",
"position",
"QQositod",
"55Hsiion",
"kositxFon",
"prmitivrindex",
"NrimitKKve_i_dex",
"primitiae_xndeT",
"primitive_index",
"privvitive_index",
"priitive_indejj",
"primitive_inOOex",
"OaOOle_indegg",
"wwampQQeindex",
"sample_inJx",
"sample_index",
"sample_iDdex",
"sampl_iOOdex",
"sampl_index",
"samle0mask",
"lmple_mak",
"sample_masu",
"sample_mask",
"sa33ple_mask",
"sample_NNsk",
"amMlemask",
"subgRupbbi22",
"subgroiip_i",
"ubgroup_id",
"subgroup_id",
"uCgoup_ioo",
"sugoHHp_iJ",
"subhropggyg",
"subgrop_invocatWWn_iBB",
"sccbgroup_iEEocaCionEEid",
"subgrup_invocGtioyye_id",
"subgroup_invocation_id",
"subgroupivUUcati44n_id",
"subroup_invocation_id",
"sNbgroup_invocation_id",
"subgMMoup_sizss",
"sCbgrDup_size",
"sTgggroup_Yize",
"subgroup_size",
"sujjgroup_size",
"ubDDrup_size",
"sEEg99oupMMsize",
"vNrtex_idex",
"55ertex_index",
"Qertex_index",
"vertex_index",
"vertex_nnnde",
"vertFFx_WWex",
"ve66tex_indew",
"wvFkgroup_id",
"workgWWup_d",
"workrup_id",
"workgroup_id",
"5rkgrop_K",
"workgroup4id",
"wgkgroupnnPd",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseBuiltinValue(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(BuiltinValueParser);
void InterpolationSamplingParser(::benchmark::State& state) {
const char* kStrings[] = {
"cSSte",
"2enVer",
"cpnter",
"center",
"ceXV9992",
"nne",
"ser",
"cen8rBB",
"AeAytroCCd",
"ienrvvd",
"centroid",
"QQAntro4d",
"cenZr4Tid",
"centXoil",
"dditer",
"eidd",
"ei1er",
"either",
"vthGG",
"jjthe",
"eitwer",
"nXXst",
"EE9rj",
"zir",
"first",
"fWW2st",
"irst",
"Virt",
"lnz4ple",
"sa__Y",
"samHklM",
"sample",
"sImzzlD",
"qmpde",
"samph",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseInterpolationSampling(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(InterpolationSamplingParser);
void InterpolationTypeParser(::benchmark::State& state) {
const char* kStrings[] = {
"lFMMN",
"la",
"l9",
"flat",
"fVVn",
"lK",
"BBlC",
"ioear",
"linwwc8Er",
"linabb",
"linear",
"linea6",
"giKa",
"l1IeEr",
"pespective",
"persectiHpe",
"perqqpecaaive",
"perspective",
"perspeive",
"pexxspecXxxve",
"zzerspectivSS",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseInterpolationType(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(InterpolationTypeParser);
void TexelFormatParser(::benchmark::State& state) {
const char* kStrings[] = {
"gra8unorm",
"ooga4unr",
"bgr8unrm",
"bgra8unorm",
"bKra8nom",
"bga8unorzz",
"bgra85orgg8",
"r16flsjat",
"116floaiA",
"rVV6fl66at",
"r16float",
"6loat",
"tt1Ghmlot",
"jiiyyfloa",
"QQt1_vsin",
"rLsint",
"r1sWcct",
"r16sint",
"r16sFt",
"rzz6yyin",
"16sio",
"I16Rco_m",
"r16sddrm",
"M1l22or",
"r16snorm",
"O16snorm",
"KK6TTsnmrm",
"rRR6no",
"r1u04",
"rnuiqq",
"r1BBuint",
"r16uint",
"rWB22aint",
"rjj6uint",
"66tinHH",
"1JJunrm",
"r1ooSlttrm",
"rSS6urr_",
"r16unorm",
"r16unWWrm",
"r16unokm",
"r1Anotbb",
"r31flat",
"N2flfat",
"k32iilot",
"r32float",
"r32floUw",
"I2float",
"r882fLL4oat",
"r32siZZt",
"MM32sint",
"r3sint",
"r32sint",
"rSSMMs6At",
"GGgxsinTT",
"r32sinI",
"r32lint",
"rOO2ut",
"3aKi5t",
"r32uint",
"Rf__zznt",
"r3LLuinP",
"r32uhht",
"rsint",
"rsit",
"08BB",
"r8sint",
"xxL8sn",
"r8siMMIt",
"rXFFig",
"r8snsszz",
"r8rrnZZFm",
"rrrjor00",
"r8snorm",
"p8wrrorm",
"QZsorm",
"rn__nrh",
"ruint",
"r83int",
"rXXuii",
"r8uint",
"rin",
"c8OOivv",
"r8uPvj",
"N8inop",
"r8un2m",
"r8uqJrD",
"r8unorm",
"8unoQm",
"runorJ",
"runorWW",
"rg11bgw0ufloQQt",
"rg11b10zfloat",
"rg11zz10ufloWW",
"rg11b10ufloat",
"rg1110uloa",
"rgUq99110Kfloat",
"rg1EEb1uflRRat",
"rg16loa",
"rg1tfloat",
"rgqloMMt",
"rg16float",
"rgT6aalBBaKK",
"rl16fII5at",
"rg16fooBBw",
"rg1__PPint",
"rRR16sint",
"rgSst",
"rg16sint",
"riQt",
"g6sHH8nt",
"rg1YYsDnt",
"rg16snoOm",
"r8II6ZJorm",
"rgoYsnorm",
"rg16snorm",
"rg6snor0X",
"rcKn6snoSm",
"GGg1633nr88",
"XXg1633qint",
"gzzu4nt",
"rgtW6uiWhh",
"rg16uint",
"xg6urnt",
"rz1eeQnt",
"rg16uYr",
"rg16xmnorm",
"r1unorm",
"rg1644ynyyrm",
"rg16unorm",
"r1wwunorm",
"r16uBBrii",
"rg16ddnorss",
"rg32fMeet",
"rT32float",
"rl038lat",
"rg32float",
"rs6321Loamm",
"rI3KGfloYY",
"Yg32fLoVV0",
"m62s32sinI",
"r32sinjj",
"ppg2s7",
"rg32sint",
"Ng32si6t",
"rg32sinsgg",
"rg2sint",
"rg32JiOOt",
"MMg32uin00",
"rg32ummMMt",
"rg32uint",
"r32uqHnt",
"rg882uin",
"gRR2wwint",
"rg8sinq",
"8siU",
"BQ85nMM",
"rg8sint",
"rg8s33nt",
"O3g8sint",
"w8snt",
"kkgAsnb_M",
"rg8snom",
"rdsom",
"rg8snorm",
"rg55wXXnorm",
"rg8norm",
"g8dorm",
"dJJunt",
"_g8in1",
"g8Lit",
"rg8uint",
"99g8iGt",
"x8uUUnt",
"rg9int",
"vg8unorm",
"rg8un2LLrm",
"rgu1frm",
"rg8unorm",
"rg8uAgor",
"rgnCU",
"zzg8unwnm",
"rgn10a2uiwVVMM",
"rgNN1Xa2unt",
"rgbee772uWWnt",
"rgb10a2uint",
"rgb330aPPuinvv",
"rgb22jja2uint",
"rgb1AAa2uit",
"rgb1kkaRRunNr",
"rgb10a2QQnorm",
"rgb1a2uunorm",
"rgb10a2unorm",
"ruu10a2unom",
"gb10a2unom",
"rgb102uHorm",
"rgba1dfloSSSt",
"rgba16flTTat",
"rba16cmoat",
"rgba16float",
"rgba16flohht",
"Gba16float",
"HHgbaww6flAAabb",
"rgba16sBBnt",
"hga226Mint",
"rgba16snWW",
"rgba16sint",
"rqqba16sint",
"Ogba1rsinU",
"rgba6siEt",
"rgRa16snoVVrr",
"rg33OGG1Hsnom",
"55g16Dnorm",
"rgba16snorm",
"rSSbB16snoQm",
"zzgba16nrm",
"rga16noAA66",
"wgba__6nt",
"rgba16uit",
"rga16uirt",
"rgba16uint",
"rgbRR1Guint",
"KxUbLL11uint",
"rgba16NNWWFt",
"rgba1GfoUm",
"r6bEEFF6unrm",
"99TJJbyy1unorm",
"rgba16unorm",
"rzb16unorm",
"gba1Inorm",
"rap6uno",
"rgba3nnttoat",
"rgbaKifloat",
"rgbee32float",
"rgba32float",
"rgba11_flogt",
"rgba32flat",
"rgbo32flt",
"rpbX3si",
"rgYY6ss2sin",
"r77ba3YsInt",
"rgba32sint",
"rgbaSSeesinG",
"rgbQlsint",
"ba32sint",
"rgba32u__nt",
"rgba32iDDt",
"rgb32unt",
"rgba32uint",
"rgb5l55uin1",
"r4bacuint",
"gba32uint",
"gba6Os11nt",
"rsa8snt",
"rgbaXsint",
"rgba8sint",
"rgbw844int",
"YYgba8sint",
"rgba8int",
"rTa8snyrm",
"bbba8snovv",
"rgba8snokm",
"rgba8snorm",
"Vb58snor9",
"rajjRRsnorm",
"YYgb8s77orm",
"rb8uinJ",
"gbnn8uit",
"rgbd8inoo",
"rgba8uint",
"rgbaEHbj",
"rgb8uint",
"11baQuAnt",
"rgba8uSSvrm",
"gba8nor",
"qqba8unosbY",
"rgba8unorm",
"ab8un3rm",
"rgb8unorm",
"rgba8mnorm",
};
for (auto _ : state) {
for (auto* str : kStrings) {
auto result = ParseTexelFormat(str);
benchmark::DoNotOptimize(result);
}
}
} // NOLINT(readability/fn_size)
BENCHMARK(TexelFormatParser);
} // namespace
} // namespace tint::core
// clang-format on