本文整理汇总了C++中vec::exists方法的典型用法代码示例。如果您正苦于以下问题:C++ vec::exists方法的具体用法?C++ vec::exists怎么用?C++ vec::exists使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vec
的用法示例。
在下文中一共展示了vec::exists方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
static void
gen_shrink_wrap_conditions (gimple bi_call, vec<gimple> conds,
unsigned int *nconds)
{
gimple call;
tree fn;
enum built_in_function fnc;
gcc_assert (nconds && conds.exists ());
gcc_assert (conds.length () == 0);
gcc_assert (is_gimple_call (bi_call));
call = bi_call;
fn = gimple_call_fndecl (call);
gcc_assert (fn && DECL_BUILT_IN (fn));
fnc = DECL_FUNCTION_CODE (fn);
*nconds = 0;
if (fnc == BUILT_IN_POW)
gen_conditions_for_pow (call, conds, nconds);
else
{
tree arg;
inp_domain domain = get_no_error_domain (fnc);
*nconds = 0;
arg = gimple_call_arg (bi_call, 0);
gen_conditions_for_domain (arg, domain, conds, nconds);
}
return;
}
示例2:
/* Release structures holding check information
for current function. */
static void
chkp_release_check_info (void)
{
unsigned int n, m;
if (check_infos.exists ())
{
for (n = 0; n < check_infos.length (); n++)
{
for (m = 0; m < check_infos[n].checks.length (); m++)
if (check_infos[n].checks[m].addr.pol.exists ())
check_infos[n].checks[m].addr.pol.release ();
check_infos[n].checks.release ();
}
check_infos.release ();
}
}
示例3:
/* Initialize the per SSA_NAME value-handles array. Returns it. */
void
threadedge_initialize_values (void)
{
gcc_assert (!ssa_name_values.exists ());
ssa_name_values.create (num_ssa_names);
}