0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-21 20:33:45 +02:00

ircd: Split compile and assembly of CL object through LLVM bc.

This commit is contained in:
Jason Volk 2021-10-22 15:13:02 -07:00
parent 7fbb66f5a7
commit c643cc7507
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View file

@ -6,6 +6,7 @@ Makefile
*.lo
*.la
*.bc
*.ll
*.orig
*.log
*.sw?

View file

@ -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