search for: cudamodul

Displaying 1 result from an estimated 1 matches for "cudamodul".

Did you mean: cudamodule
2012 May 11
1
[LLVMdev] [PATCH][RFC] Add llvm.codegen Intrinsic To Support Embedded LLVM IR Code Generation
...ut both chunks of code in the output file, etc. Given that the driver has to have *some* knowledge of this anyway, it doesn't seem problematic for the second module to be passed into the pass constructor. Instead of something like: PM.add(new OffloadToCudaPass()) You end up doing: Module *CudaModule = new Module(...) PM.add(new OffloadToCudaPass(CudaModule)) This also means that the compiler driver is responsible for deciding what to do with the module after it is formed (and of course, it may be empty if nothing is offloaded). Based on the compiler its embedded into, it may immediately J...