gallivm: Fix half floats with MCJIT.
Prevents: LLVM ERROR: Cannot select: intrinsic %llvm.x86.vcvtph2ps.128
This commit is contained in:
@@ -276,6 +276,9 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
||||
* add set this attribute.
|
||||
*/
|
||||
MAttrs.push_back("+avx");
|
||||
if (util_cpu_caps.has_f16c) {
|
||||
MAttrs.push_back("+f16c");
|
||||
}
|
||||
builder.setMAttrs(MAttrs);
|
||||
}
|
||||
builder.setJITMemoryManager(JITMemoryManager::CreateDefaultMemManager());
|
||||
|
||||
Reference in New Issue
Block a user