lgc/elfLinker/NullFragmentShader.cpp
void NullFragmentShader::addDummyExportIfNecessary(Function *entryPoint) const {
  if (m_lgcContext->getTargetInfo().getGfxIpVersion().major < 10) {
    auto ret = cast<ReturnInst>(entryPoint->back().getTerminator());
    BuilderBase builder(ret);
    FragColorExport::addDummyExport(builder);
  }
}
// =====================================================================================================================
// Adds a dummy export to the entry point if it is needed.
//
// @param [in/out] entryPoint : The function in which to add the dummy export.
Adds a dummy export to the entry point if it is needed.
Adds a dummy export to the entry point if it is needed .
void NullFragmentShader::addDummyExportIfNecessary(Function *entryPoint) const {
  if (m_lgcContext->getTargetInfo().getGfxIpVersion().major < 10) {
    auto ret = cast<ReturnInst>(entryPoint->back().getTerminator());
    BuilderBase builder(ret);
    FragColorExport::addDummyExport(builder);
  }
}
void NullFragmentShader :: addDummyExportIfNecessary ( Function * entryPoint ) const { if ( m_lgcContext -> getTargetInfo ( ) . getGfxIpVersion ( ) . major < 10 ) { auto ret = cast < ReturnInst > ( entryPoint -> back ( ) . getTerminator ( ) ) ; BuilderBase builder ( ret ) ; FragColorExport :: addDummyExport ( builder ) ; } }
Adds a dummy export to the entry point if it is needed.
Adds a dummy export to the entry point if it is needed .