CuPBoP/compilation/HostTranslation/include/x86/ReplaceKernelArgs.h

15 lines
332 B
C
Raw Normal View History

2022-05-04 20:59:38 +08:00
#ifndef __NVVM2x86_REPLACE_KERNEL_ARGS__
#define __NVVM2x86_REPLACE_KERNEL_ARGS__
#include "llvm/IR/Module.h"
/*
* before:
* %m_cuda.addr = alloca float*, align 8
* after:
* %m_cuda.addr_tmp = call i8* @malloc(i64 8)
* %m_cuda.addr = bitcast i8* %m_cuda.addr_tmp to float**
*/
void ReplaceKernelArg(llvm::Module *M);
#endif