HSAFoundation / HLC-HSAIL-Development-LLVM

HSAIL LLVM Tree - Development has stopped on this branch This was a development branch
Other
15 stars 6 forks source link

[patch] Detect kernels from opencl.kernels MD #18

Open pjaaskel opened 9 years ago

pjaaskel commented 9 years ago

This patch adds detection of kernels from the opencl.kernels metadata: https://github.com/pocl/pocl/blob/master/tools/patches/llvm-3.7-hsail-branch.patch

arsenm commented 9 years ago

Do you think it would be better if we had an OpenCLMetadataAnalysis pass that we could query for this and all of the other OpenCL metadata?

pjaaskel commented 9 years ago

Yes that would definitely be cleaner as there's plenty of other OpenCL/SPIR metadata.