mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[Alignment][NFC] Use Align with CreateAlignedLoad
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet, bollu Subscribers: hiraditya, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73449
This commit is contained in:
parent
dbe828563d
commit
8f250c81f4
@ -1819,19 +1819,27 @@ public:
|
||||
}
|
||||
|
||||
// Deprecated [opaque pointer types]
|
||||
LoadInst *CreateAlignedLoad(Value *Ptr, unsigned Align, const char *Name) {
|
||||
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateAlignedLoad(Value *Ptr,
|
||||
unsigned Align,
|
||||
const char *Name),
|
||||
"Use the version that takes MaybeAlign instead") {
|
||||
return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
|
||||
MaybeAlign(Align), Name);
|
||||
}
|
||||
// Deprecated [opaque pointer types]
|
||||
LoadInst *CreateAlignedLoad(Value *Ptr, unsigned Align,
|
||||
const Twine &Name = "") {
|
||||
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateAlignedLoad(Value *Ptr,
|
||||
unsigned Align,
|
||||
const Twine &Name = ""),
|
||||
"Use the version that takes MaybeAlign instead") {
|
||||
return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
|
||||
MaybeAlign(Align), Name);
|
||||
}
|
||||
// Deprecated [opaque pointer types]
|
||||
LoadInst *CreateAlignedLoad(Value *Ptr, unsigned Align, bool isVolatile,
|
||||
const Twine &Name = "") {
|
||||
LLVM_ATTRIBUTE_DEPRECATED(LoadInst *CreateAlignedLoad(Value *Ptr,
|
||||
unsigned Align,
|
||||
bool isVolatile,
|
||||
const Twine &Name = ""),
|
||||
"Use the version that takes MaybeAlign instead") {
|
||||
return CreateAlignedLoad(Ptr->getType()->getPointerElementType(), Ptr,
|
||||
MaybeAlign(Align), isVolatile, Name);
|
||||
}
|
||||
|
@ -517,8 +517,8 @@ public:
|
||||
|
||||
LoadInst *createColumnLoad(Value *ColumnPtr, Type *EltType,
|
||||
IRBuilder<> Builder) {
|
||||
unsigned Align = DL.getABITypeAlignment(EltType);
|
||||
return Builder.CreateAlignedLoad(ColumnPtr, Align, "col.load");
|
||||
return Builder.CreateAlignedLoad(
|
||||
ColumnPtr, Align(DL.getABITypeAlignment(EltType)), "col.load");
|
||||
}
|
||||
|
||||
StoreInst *createColumnStore(Value *ColumnValue, Value *ColumnPtr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user