Generate necessary intermediate files for math functions in CUDA PTX and LLVM IR