本文整理汇总了C++中Converter::setConverterName方法的典型用法代码示例。如果您正苦于以下问题:C++ Converter::setConverterName方法的具体用法?C++ Converter::setConverterName怎么用?C++ Converter::setConverterName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Converter
的用法示例。
在下文中一共展示了Converter::setConverterName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: buildConverter
Converter OCLHostBackend::buildConverter(core::NodeManager& manager) const {
// get standard converter from runtime backend
Converter converter = runtime::RuntimeBackend::buildConverter(manager);
// update converter name
converter.setConverterName("OpenCL Host Backend");
// set up pre-processing
PreProcessorPtr preprocessor = makePreProcessor<PreProcessingSequence>(
getBasicPreProcessorSequence(SKIP_POINTWISE_EXPANSION),
makePreProcessor<ocl_kernel::KernelPreprocessor>(kernelDumpPath),
makePreProcessor<HostPreprocessor>(),
makePreProcessor<runtime::WorkItemizer>(),
makePreProcessor<runtime::StandaloneWrapper>()
);
converter.setPreProcessor(preprocessor);
// update type manager
TypeManager& typeManager = converter.getTypeManager();
addOCLTypeIncludes(typeManager.getTypeIncludeTable());
typeManager.addTypeHandler(OclHostTypeHandler);
// update statement converter
StmtConverter& stmtConverter = converter.getStmtConverter();
stmtConverter.addStmtHandler(OclHostStmtHandler);
// update function manager
FunctionManager& functionManager = converter.getFunctionManager();
addOpenclHostFunctionIncludes(functionManager.getFunctionIncludeTable());
addOpenCLHostSpecificOps(manager, functionManager.getOperatorConverterTable());
// done
return converter;
}