Home
last modified time | relevance | path

Searched refs:fn_type (Results 1 – 22 of 22) sorted by relevance

/external/python/cffi/testing/cffi0/
Dtest_model.py18 fn_type = RawFunctionType([], int_type, False)
19 assert fn_type.get_c_name() == "int()(void)"
20 assert fn_type.get_c_name("*") == "int( *)(void)"
21 assert fn_type.get_c_name("*foo") == "int( *foo)(void)"
22 fn_type = RawFunctionType([int_type], int_type, False)
23 assert fn_type.get_c_name() == "int()(int)"
24 fn_type = RawFunctionType([int_type] * 2, int_type, False)
25 assert fn_type.get_c_name() == "int()(int, int)"
27 fn_type = RawFunctionType([int_type], int_type, True)
28 assert fn_type.get_c_name() == "int()(int, ...)"
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dfunctional_control_flow_to_cfg.cc58 FunctionType fn_type = fn.getType(); in CallFn() local
60 int num_operands = fn_type.getNumInputs(); in CallFn()
64 Type expected = fn_type.getInput(i); in CallFn()
/external/llvm-project/polly/lib/External/isl/interface/
Dgenerator.cc213 void generator::add_type_subclasses(FunctionDecl *fn_type) in add_type_subclasses() argument
215 QualType return_type = fn_type->getReturnType(); in add_type_subclasses()
218 isl_class *c = method2class(fn_type); in add_type_subclasses()
221 c->fn_type = fn_type; in add_type_subclasses()
Dpython.cc768 if (!clazz.fn_type) in print_upcast_constructors()
878 if (!clazz.fn_type && !clazz.is_type_subclass()) in print_new()
883 if (clazz.fn_type) { in print_new()
888 clazz.fn_type->getNameAsString().c_str()); in print_new()
997 if (clazz.fn_type) in print_method_types()
998 print_method_type(clazz.fn_type); in print_method_types()
Dgenerator.h78 FunctionDecl *fn_type; member
Dcpp.cc512 super.fn_type->getNameAsString().c_str()); in print_isa_type_template()
529 if (!clazz.fn_type) in print_downcast_decl()
1353 if (!clazz.fn_type) in print_downcast_impl()
1367 clazz.fn_type->getNameAsString().c_str()); in print_downcast_impl()
/external/python/pybind11/tests/
Dtest_callbacks.cpp107 using fn_type = int (*)(int); in TEST_SUBMODULE() typedef
108 auto result = f.target<fn_type>(); in TEST_SUBMODULE()
/external/bcc/src/cc/
Dbpf_module_rw_engine.cc243 FunctionType *fn_type = FunctionType::get(B.getInt32Ty(), fn_args, /*isVarArg=*/false); in make_reader() local
245 Function::Create(fn_type, GlobalValue::ExternalLinkage, name, mod); in make_reader()
303 FunctionType *fn_type = FunctionType::get(B.getInt32Ty(), fn_args, /*isVarArg=*/false); in make_writer() local
305 Function::Create(fn_type, GlobalValue::ExternalLinkage, name, mod); in make_writer()
/external/libabigail/src/
Dabg-writer.cc2367 else if (function_type_sptr fn_type = is_function_type(t)) in write_translation_unit() local
2368 write_function_type(fn_type, ctxt, in write_translation_unit()
2417 function_type_sptr fn_type = is_function_type(*i); in write_translation_unit() local
2419 if (!ctxt.type_is_referenced(fn_type) || ctxt.type_is_emitted(fn_type)) in write_translation_unit()
2424 ABG_ASSERT(fn_type); in write_translation_unit()
2425 write_function_type(fn_type, ctxt, indent + c.get_xml_element_indent()); in write_translation_unit()
3358 write_function_type(const function_type_sptr& fn_type, in write_function_type() argument
3361 if (!fn_type) in write_function_type()
3366 annotate(fn_type, ctxt, indent); in write_function_type()
3372 write_size_and_alignment(fn_type, o, in write_function_type()
[all …]
Dabg-ir.cc7384 const function_type* fn_type = is_function_type(t); in get_type_name() local
7385 ABG_ASSERT(fn_type); in get_type_name()
7386 return fn_type->get_cached_name(internal); in get_type_name()
7544 get_function_type_name(const function_type_sptr& fn_type, in get_function_type_name() argument
7546 {return get_function_type_name(fn_type.get(), internal);} in get_function_type_name()
7559 get_function_type_name(const function_type* fn_type, in get_function_type_name() argument
7562 ABG_ASSERT(fn_type); in get_function_type_name()
7564 if (const method_type* method = is_method_type(fn_type)) in get_function_type_name()
7567 return get_function_type_name(*fn_type, internal); in get_function_type_name()
7581 get_function_type_name(const function_type& fn_type, in get_function_type_name() argument
[all …]
Dabg-reader.cc444 else if (function_type_sptr fn_type = is_function_type(type)) in type_is_from_translation_unit() local
445 return bool(lookup_function_type(fn_type, *get_translation_unit())); in type_is_from_translation_unit()
3120 function_type_sptr fn_type(as_method_decl in build_function_decl() local
3127 ABG_ASSERT(fn_type); in build_function_decl()
3130 ? new method_decl (name, fn_type, in build_function_decl()
3133 : new function_decl(name, fn_type, in build_function_decl()
3147 ctxt.get_translation_unit()->bind_function_type_life_time(fn_type); in build_function_decl()
3149 ctxt.maybe_canonicalize_type(fn_type, !add_to_current_scope); in build_function_decl()
3781 function_type_sptr fn_type(is_method_t in build_function_type() local
3788 ctxt.get_translation_unit()->bind_function_type_life_time(fn_type); in build_function_type()
[all …]
Dabg-dwarf-reader.cc3734 const function_type_sptr &fn_type) in associate_die_repr_to_fn_type_per_tu() argument
3743 per_tu_repr_to_fn_type_maps()[repr]= fn_type; in associate_die_repr_to_fn_type_per_tu()
13135 if (function_type_sptr fn_type = in build_function_type() local
13138 ctxt.associate_die_to_type(die, fn_type, where_offset); in build_function_type()
13139 return fn_type; in build_function_type()
14213 function_type_sptr fn_type(build_function_type(ctxt, die, is_method, in build_function_decl() local
14215 if (!fn_type) in build_function_decl()
14218 maybe_canonicalize_type(fn_type, ctxt); in build_function_decl()
14221 ? new method_decl(fname, fn_type, in build_function_decl()
14224 : new function_decl(fname, fn_type, in build_function_decl()
Dabg-suppression.cc2677 function_type_sptr fn_type = fn->get_type(); in suppresses_function() local
2687 fn_type->get_parm_at_index_from_first_non_implicit_parm(index); in suppresses_function()
/external/llvm-project/llvm/unittests/ProfileData/
DSampleProfTest.cpp201 FunctionType *fn_type = in testRoundTrip() local
212 M.getOrInsertFunction(FooName, fn_type); in testRoundTrip()
213 M.getOrInsertFunction(BarName, fn_type); in testRoundTrip()
214 M.getOrInsertFunction(BooName, fn_type); in testRoundTrip()
/external/tensorflow/tensorflow/compiler/mlir/tfr/ir/
Dtfr_ops.cc342 FunctionType fn_type = op.getType(); in PrintFuncOp() local
343 impl::printFunctionLikeOp(p, op, fn_type.getInputs(), /*isVariadic=*/false, in PrintFuncOp()
344 fn_type.getResults()); in PrintFuncOp()
/external/python/jinja/src/jinja2/
Druntime.py275 for fn_type in (
280 if hasattr(fn, fn_type):
/external/libchrome/third_party/jinja2/
Druntime.py247 for fn_type in ('contextfunction',
250 if hasattr(fn, fn_type):
/external/libabigail/include/
Dabg-ir.h693 synthesize_function_type_from_translation_unit(const function_type& fn_type,
2891 type_base_sptr fn_type,
2927 set_type(const function_type_sptr& fn_type);
3279 get_method_type_name(const method_type& fn_type, bool internal);
3707 set_type(const method_type_sptr fn_type) in set_type() argument
3708 {function_decl::set_type(fn_type);} in set_type()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc2898 llvm::FunctionType* fn_type = in EmitTracingStart() local
2906 module->getOrInsertFunction(fn_name, fn_type); in EmitTracingStart()
2930 llvm::FunctionType* fn_type = in EmitTracingEnd() local
2938 module->getOrInsertFunction(fn_name, fn_type); in EmitTracingEnd()
/external/bcc/src/cc/frontends/b/
Dcodegen_llvm.cc1171 FunctionType *fn_type = FunctionType::get(B.getInt32Ty(), formals, /*isVarArg=*/false); in visit_func_decl_stmt_node() local
1175 fn = Function::Create(fn_type, GlobalValue::ExternalLinkage, n->id_->name_, mod_); in visit_func_decl_stmt_node()
/external/llvm-project/flang/include/flang/Optimizer/Dialect/
DFIROps.td2164 result.addAttribute("fn_type", mlir::TypeAttr::get(calleeType));
2176 p.printOptionalAttrDict(getAttrs(), {"fn_type", "method"});
/external/skia/src/core/
DSkVM.cpp2458 llvm::FunctionType* fn_type = llvm::FunctionType::get(llvm::Type::getVoidTy(*ctx), in setupLLVM() local
2461 = llvm::Function::Create(fn_type, llvm::GlobalValue::ExternalLinkage, debug_name, *mod); in setupLLVM()