Commit d2b1d096 authored by Joshua Ashton's avatar Joshua Ashton 🐸
Browse files

a

parent abd44208
Pipeline #412078 waiting for manual action with stages
#!/bin/bash
clang -m64 -ffreestanding -fno-strict-aliasing -O3 -D_FORTIFY_SOURCE=0 -fno-stack-protector -DN_DEBUG=1 -DNDEBUG=1 -DHAVE_TIMESPEC_GET -DHAVE_PTHREAD -DUTIL_ARCH_LITTLE_ENDIAN=1 -DUTIL_ARCH_BIG_ENDIAN=0 -DRADV_DESCRIPTOR_JIT_GENERATOR=1 -I/home/joshua/Code/mesa/build/src/vulkan/util -I/usr/include/libdrm -I../../vulkan/util -I../../../include -I../../gallium/include -I../../amd/common -I /home/joshua/Code/mesa/build/src/compiler/nir -I ../../ -I/home/joshua/Code/mesa/build/src/amd/common -I/home/joshua/Code/mesa/build/src/amd/vulkan -I../../vulkan/wsi -emit-llvm -o radv_update_descriptor_set.bc -c radv_update_descriptor_set.c
clang -m64 -fomit-frame-pointer -ffreestanding -fno-strict-aliasing -O3 -D_FORTIFY_SOURCE=0 -fno-stack-protector -DN_DEBUG=1 -DNDEBUG=1 -DHAVE_TIMESPEC_GET -DHAVE_PTHREAD -DUTIL_ARCH_LITTLE_ENDIAN=1 -DUTIL_ARCH_BIG_ENDIAN=0 -DRADV_DESCRIPTOR_JIT_GENERATOR=1 -I/home/joshua/Code/mesa/build/src/vulkan/util -I/usr/include/libdrm -I../../vulkan/util -I../../../include -I../../gallium/include -I../../amd/common -I /home/joshua/Code/mesa/build/src/compiler/nir -I ../../ -I/home/joshua/Code/mesa/build/src/amd/common -I/home/joshua/Code/mesa/build/src/amd/vulkan -I../../vulkan/wsi -emit-llvm -o radv_update_descriptor_set.bc -c radv_update_descriptor_set.c
......@@ -107,6 +107,9 @@ namespace radv
"radv_perform_descriptor_set_update_with_template",
cTy).getCallee());
jit_function->addFnAttr("no-frame-pointer-elim", "false");
jit_function->addFnAttr("no-frame-pointer-elim-non-leaf", "false");
jit_function->addFnAttr("frame-pointer", "none");
jit_function->setCallingConv(llvm::CallingConv::C);
llvm::Function::arg_iterator args = jit_function->arg_begin();
......@@ -169,7 +172,7 @@ namespace radv
PMBuilder.populateModulePassManager(PM);
PM.run(*mod);
#if 0
#if 1
std::error_code code;
llvm::raw_fd_ostream fd("output.ll", code, llvm::sys::fs::OF_None);
mod->print(fd, nullptr);
......@@ -212,6 +215,7 @@ namespace radv
execEngine->finalizeObject();
void *func = execEngine->getPointerToNamedFunction(llvm::StringRef("radv_perform_descriptor_set_update_with_template"));
fprintf(stderr, "%p\n", func);
return func;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment