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

13 lines
365 B
C
Raw Normal View History

2022-05-04 20:59:38 +08:00
#ifndef __NVVM2x86_REPLACE_CONSTANT_MEMORY__
#define __NVVM2x86_REPLACE_CONSTANT_MEMORY__
#include "llvm/IR/Module.h"
#include <fstream>
/*
* From: @ff_variable = internal global [5 x float] undef, align 16
* To: @wrapper_global_ff_variable = common global [5 x float] zeroinitializer
*/
void ReplaceConstantMemory(llvm::Module *M, std::ifstream &fin);
#endif