src/Func.cpp
/** Add an extern definition for this Func. */
Add an extern definition for this Func.
Add an extern definition for this Func .
void Func::define_extern(const std::string &function_name,
                         const std::vector<ExternFuncArgument> &args,
                         const std::vector<Type> &types,
                         const std::vector<Var> &arguments,
                         NameMangling mangling, DeviceAPI device_api) {
  vector<string> dim_names(arguments.size());
  for (size_t i = 0; i < arguments.size(); i++) {
    dim_names[i] = arguments[i].name();
  }
  func.define_extern(function_name, args, types, dim_names, mangling,
                     device_api);
}
void Func :: define_extern ( const std :: string & function_name , const std :: vector < ExternFuncArgument > & args , const std :: vector < Type > & types , const std :: vector < Var > & arguments , NameMangling mangling , DeviceAPI device_api ) { vector < string > dim_names ( arguments . size ( ) ) ; for ( size_t i = 0 ; i < arguments . size ( ) ; i ++ ) { dim_names [ i ] = arguments [ i ] . name ( ) ; } func . define_extern ( function_name , args , types , dim_names , mangling , device_api ) ; }
Add an extern definition for this Func.
Add an extern definition for this Func .