[HIPIFY][#1439] Add reinterpret_cast to args of some functions

+ Perl part of [#1458]
+ Affected functions: hipFuncSetCacheConfig, hipFuncGetAttributes
+ Implement function generateHostFunctions() in hipify-clang for that purposes
+ Update hipify-perl accordingly


[ROCm/hip commit: 9d1d4b78e3]
Este commit está contenido en:
Evgeny Mankov
2019-09-25 18:53:17 +03:00
padre 0d0f963eb1
commit ca15d193e8
Se han modificado 5 ficheros con 53 adiciones y 13 borrados
@@ -22,7 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include <stdio.h>
// CHECK: #include <hip/hip_runtime.h>
#include <cuda_runtime.h>
@@ -32,7 +31,7 @@ void fn(float* px, float* py) {
__shared__ double b[69];
for (auto&& x : b) x = *py++;
for (auto&& x : a) x = *px++ > 0.0;
for (auto&& x : a) if (x)* --py = *--px;
for (auto&& x : a) if (x) *--py = *--px;
}
int main() {