Add control to alignment of ld/st inst
This commit is contained in:
parent
16860436d4
commit
d78253ebe3
4 changed files with 31 additions and 2 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue