From c643cc75079908906853cfc0c32a44c0bef754ac Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 22 Oct 2021 15:13:02 -0700 Subject: [PATCH] ircd: Split compile and assembly of CL object through LLVM bc. --- .gitignore | 1 + ircd/Makefile.am | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1b906ec69..3775e7aee 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ Makefile *.lo *.la *.bc +*.ll *.orig *.log *.sw? diff --git a/ircd/Makefile.am b/ircd/Makefile.am index 3b8e43278..cb4a478df 100644 --- a/ircd/Makefile.am +++ b/ircd/Makefile.am @@ -359,7 +359,10 @@ endif if CLANG if OPENCL -gpt_gpu.o: gpt_gpu.cl - $(CC) -std=CL1.1 $(AM_CPPFLAGS) $(CPPFLAGS) $(DEFS) -Xclang -finclude-default-header -include "ircd/config.h" -o $@ -c $^ +gpt_gpu.ll: gpt_gpu.cl + $(CC) -S -emit-llvm -std=CL1.1 $(AM_CPPFLAGS) $(CPPFLAGS) $(DEFS) -Xclang -finclude-default-header -include "ircd/config.h" -o $@ -c $^ + +gpt_gpu.o: gpt_gpu.ll + $(CC) -std=CL1.1 -o $@ -c $^ endif endif