bool SLFunctionSignature::operator==(SLFunctionSignature other) const { if (*return_type() != *other.return_type() || arg_types().size() != other.arg_types().size()) { return false; } for (size_t i = 0; i < arg_types().size(); ++i) { if (*(arg_types()[i]) != *(other.arg_types()[i])) { return false; } } return true; }
void addRTFunction(CLFunction* cl_f, void* f, ConcreteCompilerType* rtn_type, int nargs, bool takes_varargs, bool takes_kwargs) { std::vector<ConcreteCompilerType*> arg_types(nargs, NULL); return addRTFunction(cl_f, f, rtn_type, arg_types, takes_varargs, takes_kwargs); }
void addRTFunction(CLFunction* cl_f, void* f, ConcreteCompilerType* rtn_type) { std::vector<ConcreteCompilerType*> arg_types(cl_f->numReceivedArgs(), UNKNOWN); return addRTFunction(cl_f, f, rtn_type, arg_types); }