blob: 0a7905b1415562f2217338e4609e645918a1024a [file]
// 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",
"bVVfgeX",
"ouffVr",
"buffe",
"buffer",
"btfKKr",
"uGr",
"uafer",
"O6",
"G",
"f6",
"f16",
"99R16",
"12",
"YYvXR",
"2",
"XX5",
"3",
"f32",
"ppcc",
"v32",
"EESS",
"i",
"",
"i3w",
"i32",
"id992",
"99P",
"KK3",
"oDD",
"22",
"q",
"i8",
"0L",
"vv66",
"nr",
"ineeut_aachmxxnt",
"NNnput_aCCtOchment",
"input_attachmnt",
"input_attachment",
"inp4t_attacament",
"inNNut_attachmNNt",
"input_atachment",
"mux2",
"at2YSEE",
"m0t2x2",
"mat2x2",
"mataax2",
"mmm2qq",
"matx2",
"mUUx2E",
"mDDtK2f",
"mat2x0t_",
"mat2x2f",
"lApxf",
"mtMx2f",
"mat2xBBf",
"nnt99bbh",
"EEAA1x2h",
"m5662xTh",
"mat2x2h",
"Hat2x2h",
"xxHtx2h",
"mnyt2z2h",
"mat23",
"mktxH",
"atcx3",
"mat2x3",
"orrtx3",
"mtJJ3",
"0CCt2x",
"mAxFx99f",
"matcx3f",
"mat2S3f",
"mat2x3f",
"masoxBB",
"matx3f",
"matx3em",
"oPPtx3gQQ",
"Btx",
"mlKKN3h",
"mat2x3h",
"marrx3",
"atrpx3h",
"yPat2x3h",
"cc2ZZ4",
"mt24",
"m00t2x4",
"mat2x4",
"ssPBat24",
"ffwaJJxf",
"mIt2XX",
"2f",
"ma2x4f",
"utKKx4f",
"mat2x4f",
"ma442df",
"motpx4f",
"mathhjN4f",
"ma33UUEwwh",
"matxuh",
"Kaddxrrh",
"mat2x4h",
"2tt2PP4r",
"m1twwx4h",
"mat2xc1nn",
"mt3x2",
"mat32",
"aatSS6xI",
"mat3x2",
"EED3x2",
"ccatIVR",
"atx2",
"aaht32f",
"mLtSx2f",
"mfmm32",
"mat3x2f",
"mm4V2f",
"matx__",
"Qat2f",
"mdRRE3x2",
"m93x2h",
"at3C0",
"mat3x2h",
"t3x2z",
"ccat3x2h",
"at3x2Q_",
"ma3xt",
"EpptCCzzx3",
"mahh3dd3",
"mat3x3",
"_a66x77",
"mPt3x3",
"mwt3x3",
"uux3f",
"6at3XX3f",
"mR33f",
"mat3x3f",
"m33VV",
"mHHt3GG3f",
"mMtFF73f",
"9at3x3",
"at3x33",
"BBa3x3_",
"mat3x3h",
"matxBOOa",
"mat3AAh",
"maGG3yh",
"77a3xX",
"mFFttxK",
"mZZossUU4",
"mat3x4",
"mt3x4",
"mal3x4",
"mah3x4",
"mKtTTxk",
"ma3xwwf",
"mt3x4Kjj",
"mat3x4f",
"atxYYf",
"mat3EE4",
"QQat3x4f",
"lat3P",
"at3x4Hff",
"man3x4h",
"mat3x4h",
"matg46F",
"mhss8x4h",
"llFa3x4h",
"2t4002",
"mag4x2",
"eatx2",
"mat4x2",
"mft4x2",
"at4",
"matx2",
"qqt4x2f",
"AA42f",
"matx2v",
"mat4x2f",
"mjjt4xf",
"ZZat4x2f",
"mPIItO22f",
"mZZt4x2h",
"mat4x2nn",
"kkZa224x2h",
"mat4x2h",
"mat42h",
"ma4xR",
"mat4xqq9h",
"m77t4x3",
"at3x",
"macc4x3",
"mat4x3",
"RR14x3",
"mJJll4x",
"IaMM",
"7T6t4x3",
"mat4xQQJ",
"uu4x3f",
"mat4x3f",
"mat4f",
"m433qf",
"maxx4x3f",
"Nrr4h",
"a994x3h",
"at4x3",
"mat4x3h",
"mat4H3h",
"_at4x3h",
"m44t4x3h",
"mt4x4",
"jt4x4",
"matt4mEE4",
"mat4x4",
"t4x4",
"mrrt44",
"xatx4",
"zzt4x4",
"mat4x4e",
"au4pZ4f",
"mat4x4f",
"muuTT4x00",
"mvvxJJ",
"maQ4x4f",
"mC4R4h",
"aCx",
"ma4xPPpr",
"mat4x4h",
"muDDt4xxxh",
"YYlqamd4x4h",
"atFFx4__",
"NNGtr",
"Mlr",
"",
"ptr",
"xlq",
"tr",
"44a",
"WWGmpler",
"sjjmplr",
"sajjpler",
"sampler",
"sa1jer",
"sample",
"99ampler",
"samVVler_comparison",
"ZZampler_cmparxson",
"sampl33r_ompavvison",
"sampler_comparison",
"sampler9comparisos",
"samler_Fomparison",
"sampuer_compaeison",
"subgroup_mtIixlefKK",
"subgroJ_matrix_left",
"sXXCCgrouSS_matrix_left",
"subgroup_matrix_left",
"subgroup_matrWW66_ZZJft",
"ubgoup_mdmt5ix_left",
"subgroup_mUrBBBx_left",
"subgr0up_mJJtri11_result",
"subfroup_matrix_rettult",
"subgrXupmtttrix_rsult",
"subgroup_matrix_result",
"subgroLp_matrix_reswlt",
"su1group_matrix_result",
"subgroup_matrix_resuwwt",
"subgou_atrix_righee",
"subgroup_matrx_right",
"subgroup_matNNix_right",
"subgroup_matrix_right",
"__RRbgroup_matrix_riUUhl",
"sHbgroup_matrix_right",
"subgrour_maCCrix_right",
"exel_buffer",
"texppl_bdfIr",
"texel_bufer",
"texel_buffer",
"Lexel_bNfr",
"e_buffe",
"teGRRexx_uqqfer",
"texturS_GGd",
"88tucce_1d",
"texture_1",
"texture_1d",
"textte_ppd",
"qqFF0xture551d",
"txture_1d",
"textur2d",
"texOre_2d",
"textuHHe_2",
"texture_2d",
"66extureSS2O",
"tTTturddY_2d",
"textursg2d",
"texGGure_2d_array",
"teQQtOreI2ll_array",
"texture_2d_aray",
"texture_2d_array",
"texture_2d_arrray",
"texture2d_ar7yyy",
"tBBxtur22_2d_WrrYy",
"textyyVe_3d",
"x4ure_3",
"texture_ddd",
"texture_3d",
"texuVVez2d",
"teyyture_3d",
"tex__ure_Ad",
"texture_chhbe",
"ttvvre_cube",
"textureube",
"texture_cube",
"textoorsNNgube",
"textrmm_Zube",
"3extkecube",
"texAur_ffube_aRray",
"Wxturrr_cube_zzrry",
"texture_ubRR_aray",
"texture_cube_array",
"textMr88_cube_arraSS",
"txturRPPcubebbarray",
"textWWre_cubexxrray",
"texture_dptAAv_2d",
"tj44xXure_depth_2d",
"texture_depthf2d",
"texture_depth_2d",
"texAAureUepth_2OO",
"textur_ssept_2d",
"texbbure_depFsh_2d",
"texture_depth_2d_annraYY",
"teture_depth_2d_arrass",
"texture_depth_zzd_araq",
"texture_depth_2d_array",
"texture_deptNN_d_arrQ",
"texturekppdpth_2darray",
"texturs8_depLh_Jd_array",
"77exJure_depthff5TTbe",
"texure_d00pth_cubx",
"Ae1ture_deph_cube",
"texture_depth_cube",
"texture_depthcube",
"textuQQe_depth_ube",
"texture_weptiicbe",
"texture_depth_cube_arwway",
"texJJure_dephYh_cube_array",
"kexture_deptRR_cube_E7ay",
"texture_depth_cube_array",
"texture_depth_kuube_array",
"textureRdept_cube_trray",
"textrN_depth_cIIbe_array",
"texture_deptII_multisampled_d",
"texture_depthmultisamiiledE2d",
"textssre_depth_multisamped_2d",
"texture_depth_multisampled_2d",
"CCxture55Xepth_multisampled_2d",
"tex9ure_depth_multisampled_2d",
"texture_Xepth_mulisamped_2d",
"txture_eteIInal",
"texturz_external",
"texurAAzz22xternal",
"texture_external",
"textur_external",
"Fbbxtre_eternal",
"texture_MMxVernal",
"texturA_mwcmmisamplzzd_2d",
"texture_muOOtisampeQQ2d",
"texture_mbltisampled_2d",
"texture_multisampled_2d",
"texture_multisaCpleknn25",
"texture_multisaplyyKK_2rr",
"tAAture_multisampleT_2d",
"QQexturZ_mutisampled_2d_array",
"te8ture_mulisampled_d_array",
"exture_mulaisampled_2d_array",
"texture_multisampled_2d_array",
"teeccture_mulisampled_2dbarray",
"textue_multisampledPP2LLarray",
"texture_multWWsampU_2d_array",
"texture_stzzrage_1",
"text__re_soNa_1d",
"texture_storagea1d",
"texture_storage_1d",
"texre_stoBage_1d",
"zzexture_torge_1d",
"textureUaatorbge_HHd",
"te4ture_sOorg_2d",
"texGGme_storage_2d",
"teture_storage_2d",
"texture_storage_2d",
"texturezzstG8rageN2d",
"texture_storag_2d",
"textuxe_storaAAe_2d",
"texture_storage_2d_arbbuay",
"tejjture_storage_2d_array",
"tecture_storqqJge_2d_arxay",
"texture_storage_2d_array",
"Fexture_storag2d_array",
"tevvure_stoAage_2_array",
"texture_cctorage_2d_array",
"txtur7BstoraUUe_3d",
"texture_storaAAB_3d",
"texxure_storage_3d",
"texture_storage_3d",
"8exture_sorageU3d",
"tUIture_stora88CB_3d",
"texture_stora__e_3d",
"UU6",
"16",
"uu77r",
"u16",
"ukk",
"ul6",
"16",
"YY3",
"4432",
"R2",
"u32",
"e3PP88",
"J3",
"t",
"u",
"",
"1",
"u8",
"F",
"p",
"PPY",
"crCC",
"ecl",
"vZZc2",
"vec2",
"t9qcMM",
"vec",
"veY7g",
"vdddf",
"vEcaaf",
"vecIIf",
"vec2f",
"RReZ2ll",
"vecNNkrr",
"vec",
"vc2h",
"veca",
"HHec2G",
"vec2h",
"cc2h",
"vB22nllh",
"vec25",
"eR2i",
"gec2i",
"ve2i",
"vec2i",
"vecpi",
"vecK99i",
"22Rci",
"vecnn",
"veeENu",
"fHHec3u",
"vec2u",
"ss226u",
"em0u",
"vecNp",
"vec",
"veZoo",
"vTTc3",
"vec3",
"RRc3",
"veVV3",
"c31",
"2ec3f",
"ve443W",
"8Z77",
"vec3f",
"FeR3",
"vebb3",
"ggce",
"UeSh",
"vZqNN",
"v9h",
"vec3h",
"ccHMMh",
"v3x",
"veXX",
"3i",
"vei",
"vecgg3i",
"vec3i",
"rfe3i",
"ve3i",
"vggc3D",
"v993Q",
"eeeu",
"vecu",
"vec3u",
"vc3II",
"vequ",
"Ooc77u",
"rrDD",
"vej4",
"e1iiF4",
"vec4",
"vjRc4",
"__7Ad4",
"cj",
"xxkeo",
"veW4f",
"IQQN1f",
"vec4f",
"veIf",
"vjc4",
"e722",
"vEElc4g",
"ve74",
"vec66m88",
"vec4h",
"a4h",
"vE4h",
"hqh",
"vc4_",
"cr",
"veBB4",
"vec4i",
"11nned4BB",
"neFFi",
"mmBc4cc",
"vtt77u",
"tu",
"ecKu",
"vec4u",
"vejFFn",
"Ec4",
"vecDD",
};
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[] = {
"barycentrh55ocoorSS",
"uuarZcentric_cord",
"barycen7ricPP5coord",
"barycentric_coord",
"barycentric_ckkoS",
"baSyc_nEEric_cFord",
"baryyyntic_coorbb",
"lRp_ditances",
"cTip_d1stancs",
"XiT_diXtanes",
"clip_distances",
"clip_distan00s",
"cliP_dis77ances",
"clip_isZances",
"fbbag_PPtw",
"8rjjbssHHdepth",
"fraghdepth",
"frag_depth",
"xxag_det",
"rrag_deBtQ",
"frJJg_depth",
"ronw_fucig",
"front_fxttiZg",
"fron99vfacing",
"front_facing",
"frnt_fcn",
"fronfft_facing",
"front_fa5ing",
"global_invUcaJiou_Id",
"global_invoation_id",
"gtobal_invocation_id",
"global_invocation_id",
"global_invocation_1d",
"global_invoAAation_DDd",
"globaPOivoation_id",
"gloal_invocation_index",
"global_invocation_i77dex",
"gUUobal_invocatAA1_mmndex",
"global_invocation_index",
"glAXbal_infocation_index",
"gobal_invvcation_iVVdvx",
"global_inppocation_index",
"insTTance_index",
"instance_jjnk0ex",
"nstance_index",
"instance_index",
"intyynce_index",
"inzztane_indYYx",
"iiWstance_index",
"lc6l_7nvUU0ation_id",
"local_invoUUatiopd",
"loaTT_invohationid",
"local_invocation_id",
"loca_in5ocation_id",
"loal_invoc1ton_i",
"local_iI44ocationmmid",
"locaR_YnocatDDon_YYndex",
"local_invocation_ijjdex",
"local_invocation_idex",
"local_invocation_index",
"local_invocatdQQ_index",
"locaH_invo55ation_inex",
"local_ixvokatFFon_index",
"nrsubgroups",
"Num_KK_bgroups",
"nua_subgxoups",
"num_subgroups",
"num_subgrouvvs",
"num_sjjbgroup",
"num_subnnroOOs",
"nggmOOwokgroups",
"QQum_worwwgrous",
"nuJ_workgrops",
"num_workgroups",
"nuD_workgroups",
"nuOOworkgroups",
"nm_workgroups",
"psi00io",
"loiqio",
"pusition",
"position",
"positio33",
"ositioNN",
"psMtio",
"prbbmi22Re_index",
"priimtive_index",
"primiive_index",
"primitive_index",
"prmiooue_Cndex",
"priHHitiJeinex",
"primhive_inggyx",
"smle_WWndeBB",
"sample_inECEcc",
"saGple_ieedyy",
"sample_index",
"sa44plUindex",
"sample_inde",
"samplN_index",
"sample_MMasss",
"sCmpDe_mask",
"samgglYTmask",
"sample_mask",
"sample_jjask",
"smple_mDDk",
"MEEample_a99k",
"sbgNoup_id",
"subgroup_i55",
"Qubgroup_id",
"subgroup_id",
"nnubgrop_id",
"subgWWFFp_d",
"wubgro66p_id",
"subgroFp_vnvocation_id",
"sWWbgroupinvocatio_id",
"sugroup_invoation_id",
"subgroup_invocation_id",
"sKbgroupin5oation_d",
"s4bgroup_invocation_id",
"sggbgroup_nvoctioP_inn",
"sUbgrou7SSie",
"ubg22oup_Vize",
"subgroup_sizp",
"subgroup_size",
"suVVgr929pXsize",
"unroup_sie",
"sbBro_size",
"vere8inBBe8",
"AeACCtex_iydex",
"veitvvBndex",
"vertex_index",
"vertex44QQnAe",
"verte44_ZTdex",
"Xerlex_index",
"view_ddnex",
"viw_idde",
"iew_idie1",
"view_index",
"viwGGinde",
"jjiewinex",
"view_wndex",
"worngrXup_id",
"wo9kgrjEup_d",
"wokgroupiz",
"workgroup_id",
"wo2kgroup_WWd",
"workgroupid",
"workgrop_Vd",
"worklrozzp_index",
"wo__krou_indeY",
"wMrkgrkkuH_index",
"workgroup_index",
"Dorkgrzzup_indIx",
"wordroup_index",
"wohkgroup_indx",
};
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[] = {
"cFMMleN",
"cene",
"9Anx",
"center",
"VVnner",
"eKtr",
"centBC",
"entrood",
"EEet88occww",
"cntbboid",
"centroid",
"cen6roid",
"Keggoi",
"centE1id",
"eithe",
"ppiHer",
"Gqqtaaer",
"either",
"eter",
"exxxxXXe",
"zziSSher",
"irst",
"os4",
"fir",
"first",
"iKt",
"fcrzz",
"5argg8",
"samjjse",
"1AAiple",
"sampl66V",
"sample",
"smp",
"mhGtple",
"sjiyyle",
};
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[] = {
"vt__QQ",
"fLL",
"fWcc",
"flat",
"vFt",
"fyyzt",
"ot",
"cRIear",
"lddear",
"linMr",
"linear",
"liOear",
"lmTTK6ar",
"iRRe",
"p4rspet00",
"penspqqtie",
"perspectBBve",
"perspective",
"aeWspBB22tive",
"pejjspective",
"ersp66ttiHH",
};
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",
"ooSra8unottm",
"bgraunSSr_",
"bgra8unorm",
"bWWra8unorm",
"bgka8unorm",
"bra8ttArbb",
"r11flat",
"N6flfat",
"k16iilot",
"r16float",
"r16floUw",
"I6float",
"r886fLL4oat",
"r16siZZt",
"MM16sint",
"r1sint",
"r16sint",
"rSSMMs6At",
"GGgxsinTT",
"r16sinI",
"r16snolm",
"r1OOsno",
"56snora",
"r16snorm",
"r1__snzzR",
"P16snLLrm",
"r6snohhm",
"r6uint",
"16ujt",
"r1BB0",
"r16uint",
"xxL1unt",
"rII6uinMM",
"r1XuFFt",
"zz16ssprm",
"rr16uZZFrm",
"r1uno00jm",
"r16unorm",
"r1rupwwrm",
"16QQZrm",
"16__norm",
"r32loat",
"r33float",
"r32Xloit",
"r32float",
"rfloa",
"r3Ofcvvat",
"rP25voaj",
"N3isip",
"r32s2t",
"r32qJnD",
"r32sint",
"32siQm",
"r2sinJ",
"r2sinWW",
"w3ggwiQQt",
"r32zint",
"rzzWuint",
"r32uint",
"r2ui",
"993UUiqqt",
"EE32RRit",
"r8sn",
"r8sttn",
"rqnMM",
"r8sint",
"BB8KKaanT",
"r8siII5",
"roBBwnt",
"PP__snorm",
"RR8snorm",
"r8sS",
"r8snorm",
"Qom",
"rHH88rm",
"r8YDnorm",
"rOuint",
"r8ui8ZI",
"Y8oint",
"r8uint",
"r8Xin0",
"rKKicSn",
"rGGi3388",
"r8uXXo33qm",
"ruzz4m",
"WK8hhnoWm",
"r8unorm",
"ruxrrm",
"CzQeerm",
"r8Ynom",
"xxg11m1Sufloat",
"rg11r10float",
"rg11F1yyufloa",
"rg11b10ufloat",
"rg18b0ufloa",
"rgeeb10ufloat",
"g11b10ufhhokkt",
"rOO16BBloa",
"rg6flo99",
"rggg6loaD",
"rg16float",
"r1n1faoat",
"rgS6Ioqt",
"g16flYYat",
"rYY6sLVVt",
"m62s16sinI",
"r16sinjj",
"rg16sint",
"ppg6s7",
"Ng16si6t",
"rg16sinsgg",
"rg16snor",
"rg16snJOrm",
"00gMM6snorm",
"rg16snorm",
"mmg16MMnorm",
"rg16mqHrm",
"rG6snor88",
"gRR6wwint",
"rgq6uint",
"gU6it",
"rg16uint",
"g16Bi5MQ",
"33g16uint",
"Og16ui33t",
"gw6uorm",
"rgAkkuMorm",
"rg1unorm",
"rg16unorm",
"dg1orm",
"Ig1wwXX555rm",
"rg16norm",
"rg2flot",
"rgd2fJJa",
"rg_2f1ot",
"rg32float",
"r32fLLt",
"99g2GGlat",
"rg2xxUloa",
"rg29int",
"vg32sint",
"rg32s2LLnt",
"rg32sint",
"rg21fnt",
"rg32Agin",
"rgsCU",
"zzg32uwnt",
"nww32VVMint",
"g3NNXint",
"rg32uint",
"r32uiWWe77",
"r333PPvvint",
"rg32ujj22t",
"cgAAint",
"rg8ikRRN",
"QQg8sint",
"rg8sint",
"rg8inuu",
"8uuint",
"g8sit",
"r8sHorm",
"fSS8soSSdd",
"rg8snTTrm",
"rg8snorm",
"cm8sntr",
"rg8hhnorm",
"rGsnorm",
"AAgwwHbbint",
"rg8uBBnt",
"gghu2nM",
"rg8uint",
"rg8unWW",
"rg8uqqnt",
"OgUUirt",
"8g8uorE",
"rg8VVrRorm",
"rHuOOGGr33",
"rg8unorm",
"rDu55rm",
"SSg8unorm",
"rg8zzor",
"rg10auiAA66",
"rgbwa_uint",
"rgb1a2uint",
"rgb10a2uint",
"rgbr0auint",
"rgb10a2uRRnG",
"KK1b10LL2uixt",
"rgb10a2unWWNFm",
"rgGU0afnorm",
"rgb0aEE6nFFrm",
"rgb10a2unorm",
"rT99b0a2yyJnorm",
"rzb1a2unorm",
"rb102unorm",
"rap6flo",
"rgba1nnttoat",
"rgbaKifloat",
"rgba16float",
"rgbee16float",
"rgba11_flogt",
"rgba16flat",
"rgba1ont",
"rpbX1si",
"rgYY6ss6sin",
"rgba16sint",
"r77ba1YsInt",
"rgbaSSeesinG",
"rgbQlsint",
"gba16snor",
"__gba16snorm",
"rgDDa16snrm",
"rgba16snorm",
"gba16snom",
"rgbl516s1orm",
"rgbacsno4m",
"gba16uint",
"rgOa111ui6t",
"rga6uist",
"rgba16uint",
"rgba16uXnt",
"rg44w16uint",
"rgba1YYuint",
"gba16unorm",
"rgba6ynTTm",
"rvbbb16uorm",
"rgba16unorm",
"rgba1kunorm",
"r5b99unorm",
"rlljj1RRunor",
"rgba3277lYYt",
"rga2loaLJ",
"rb32fnnoat",
"rgba32float",
"rgba32fdooa",
"bHa32jloEt",
"rgba32flat",
"rgbi31sAQt",
"rgba32SSvnt",
"gba3sin",
"rgba32sint",
"qqba32sisbY",
"ab32s3nt",
"rgb32nint",
"rgba3muint",
"rgbauiBII",
"rgba32fint",
"rgba32uint",
"ra__a32unt",
"rga2int",
"ii4a32uinD",
"Uga8sint",
"rgba8snt",
"rgbaVWint",
"rgba8sint",
"rgb8sint",
"Mgb8Eint",
"r8ba8si577",
"rzzba8gno88m",
"gee8suurm",
"rgbfrm",
"rgba8snorm",
"llgIa8QQnorm",
"rppTaSSsorXX",
"gb_vsnorm",
"gba8unt",
"3gbacit",
"88wJJa8rint",
"rgba8uint",
"rgby88uint",
"rgba8UUint",
"rxxba8hinI",
"g88qqnorm",
"gba8uirrm",
"gba8unorm",
"rgba8unorm",
"rgbaunom",
"g44a8unoLLm",
"rgba8lnorm",
};
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