mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
swr: [rasterizer jitter] Remove unused function
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
af909c0200
commit
54d11b3c95
2 changed files with 0 additions and 35 deletions
|
|
@ -187,40 +187,6 @@ void JitManager::SetupNewModule()
|
|||
mIsModuleFinalized = false;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Create new LLVM module from IR.
|
||||
bool JitManager::SetupModuleFromIR(const uint8_t *pIR, size_t length)
|
||||
{
|
||||
std::unique_ptr<MemoryBuffer> pMem = MemoryBuffer::getMemBuffer(StringRef((const char*)pIR, length), "");
|
||||
|
||||
SMDiagnostic Err;
|
||||
std::unique_ptr<Module> newModule = parseIR(pMem.get()->getMemBufferRef(), Err, mContext);
|
||||
|
||||
|
||||
SWR_REL_ASSERT(
|
||||
!(newModule == nullptr),
|
||||
"Parse failed!\n"
|
||||
"%s", Err.getMessage().data());
|
||||
if (newModule == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
newModule->setDataLayout(mpExec->getDataLayout());
|
||||
|
||||
mpCurrentModule = newModule.get();
|
||||
#if defined(_WIN32)
|
||||
// Needed for MCJIT on windows
|
||||
Triple hostTriple(sys::getProcessTriple());
|
||||
hostTriple.setObjectFormat(Triple::ELF);
|
||||
newModule->setTargetTriple(hostTriple.getTriple());
|
||||
#endif // _WIN32
|
||||
|
||||
mpExec->addModule(std::move(newModule));
|
||||
mIsModuleFinalized = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Dump function x86 assembly to file.
|
||||
|
|
|
|||
|
|
@ -172,7 +172,6 @@ struct JitManager
|
|||
std::string mCore;
|
||||
|
||||
void SetupNewModule();
|
||||
bool SetupModuleFromIR(const uint8_t *pIR, size_t length);
|
||||
|
||||
void DumpAsm(llvm::Function* pFunction, const char* fileName);
|
||||
static void DumpToFile(llvm::Function *f, const char *fileName);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue