Add control to alignment of ld/st inst

This commit is contained in:
Siu Kwan Lam 2012-08-21 18:28:04 -05:00
commit d78253ebe3
4 changed files with 31 additions and 2 deletions

View file

@ -126,6 +126,15 @@ const CodeGenOpt::Level OptLevelMap[] = {
};
} // end anony namespace
void LLVMLdSetAlignment(LLVMValueRef inst, unsigned align)
{
return llvm::unwrap<LoadInst>(inst)->setAlignment(align);
}
void LLVMStSetAlignment(LLVMValueRef inst, unsigned align)
{
return llvm::unwrap<StoreInst>(inst)->setAlignment(align);
}
const char * LLVMGetHostCPUName()
{