示例#1
0
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;
}
示例#2
0
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);
}
示例#3
0
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);
}