summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/copy-constructor-elim.cpp
diff options
context:
space:
mode:
authorDaniel Neilson <dneilson@azul.com>2018-01-28 17:27:45 +0000
committerDaniel Neilson <dneilson@azul.com>2018-01-28 17:27:45 +0000
commitc8bdc8db73e2c05d417a5c7ce80fd877125ed38f (patch)
tree6db65f346e3ddbb24ec3bbca0aad4d4dd7dcbd78 /clang/test/CodeGenCXX/copy-constructor-elim.cpp
parent92ac9d3e1b32535062b985e5a868b16f154db6df (diff)
downloadbcm5719-llvm-c8bdc8db73e2c05d417a5c7ce80fd877125ed38f.tar.gz
bcm5719-llvm-c8bdc8db73e2c05d417a5c7ce80fd877125ed38f.zip
Change memcpy/memove/memset to have dest and source alignment attributes.
Summary: This change is step three in the series of changes to remove alignment argument from memcpy/memmove/memset in favour of alignment attributes. Steps: Step 1) Remove alignment parameter and create alignment parameter attributes for memcpy/memmove/memset. ( rL322965, rC322964, rL322963 ) Step 2) Expand the IRBuilder API to allow creation of memcpy/memmove with differing source and dest alignments. ( rL323597 ) Step 3) Update Clang to use the new IRBuilder API. Step 4) Update Polly to use the new IRBuilder API. Step 5) Update LLVM passes that create memcpy/memmove calls to use the new IRBuilder API, and those that use use MemIntrinsicInst::[get|set]Alignment() to use getDestAlignment() and getSourceAlignment() instead. Step 6) Remove the single-alignment IRBuilder API for memcpy/memmove, and the MemIntrinsicInst::[get|set]Alignment() methods. Reference http://lists.llvm.org/pipermail/llvm-dev/2015-August/089384.html http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151109/312083.html Reviewers: rjmccall Subscribers: jyknight, nemanjai, nhaehnle, javed.absar, sbc100, aheejin, kbarton, fedor.sergeev, cfe-commits Differential Revision: https://reviews.llvm.org/D41677 llvm-svn: 323617
Diffstat (limited to 'clang/test/CodeGenCXX/copy-constructor-elim.cpp')
-rw-r--r--clang/test/CodeGenCXX/copy-constructor-elim.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/copy-constructor-elim.cpp b/clang/test/CodeGenCXX/copy-constructor-elim.cpp
index fa76fb61ef2..7ba231071e7 100644
--- a/clang/test/CodeGenCXX/copy-constructor-elim.cpp
+++ b/clang/test/CodeGenCXX/copy-constructor-elim.cpp
@@ -56,4 +56,4 @@ extern "C" V f() { return gv1; }
// Make sure that we obey the destination's alignment requirements when emitting
// the copy.
// CHECK-LABEL: define {{.*}} @f(
-// CHECK: call void @llvm.memcpy.p0i8.p0i8.{{i64|i32}}({{.*}}align 4{{.*}}, i8* align 4 bitcast (%struct.V* @gv1 to i8*), {{i64|i32}} 4, i1 false)
+// CHECK: call void @llvm.memcpy.p0i8.p0i8.{{i64|i32}}({{.*}}align 4{{.*}}, i8* align 8 bitcast (%struct.V* @gv1 to i8*), {{i64|i32}} 4, i1 false)
OpenPOWER on IntegriCloud