diff --git a/llvm/test/CodeGen/ARM/2008-03-07-RegScavengerAssert.ll b/llvm/test/CodeGen/ARM/2008-03-07-RegScavengerAssert.ll index 80812a395995c..ce23d0e73282e 100644 --- a/llvm/test/CodeGen/ARM/2008-03-07-RegScavengerAssert.ll +++ b/llvm/test/CodeGen/ARM/2008-03-07-RegScavengerAssert.ll @@ -11,7 +11,7 @@ bb74.i: ; preds = %bb88.i, %bb74.i, %entry bb88.i: ; preds = %bb74.i br i1 false, label %mandel.exit, label %bb74.i mandel.exit: ; preds = %bb88.i - %tmp2 = load volatile double, ptr getelementptr ({ double, double }, ptr @accum, i32 0, i32 0), align 8 ; [#uses=1] + %tmp2 = load volatile double, ptr @accum, align 8 ; [#uses=1] %tmp23 = fptosi double %tmp2 to i32 ; [#uses=1] %tmp5 = tail call i32 (ptr, ...) @printf( ptr @.str, i32 %tmp23 ) ; [#uses=0] ret i32 0 diff --git a/llvm/test/CodeGen/ARM/2009-07-18-RewriterBug.ll b/llvm/test/CodeGen/ARM/2009-07-18-RewriterBug.ll index 5fc3f6e80c362..9029f08de5c80 100644 --- a/llvm/test/CodeGen/ARM/2009-07-18-RewriterBug.ll +++ b/llvm/test/CodeGen/ARM/2009-07-18-RewriterBug.ll @@ -1,95 +1,95 @@ ; RUN: llc -mtriple armv6-apple-darwin10 -mattr=+vfp2 -filetype asm -o - %s | FileCheck %s -%struct.EDGE_PAIR = type { %struct.edge_rec*, %struct.edge_rec* } +%struct.EDGE_PAIR = type { ptr, ptr } %struct.VEC2 = type { double, double, double } -%struct.VERTEX = type { %struct.VEC2, %struct.VERTEX*, %struct.VERTEX* } -%struct.edge_rec = type { %struct.VERTEX*, %struct.edge_rec*, i32, i8* } -@avail_edge = internal global %struct.edge_rec* null +%struct.VERTEX = type { %struct.VEC2, ptr, ptr } +%struct.edge_rec = type { ptr, ptr, i32, ptr } +@avail_edge = internal global ptr null @_2E_str7 = internal constant [21 x i8] c"ERROR: Only 1 point!\00", section "__TEXT,__cstring,cstring_literals", align 1 -@llvm.used = appending global [1 x i8*] [i8* bitcast (void (%struct.EDGE_PAIR*, %struct.VERTEX*, %struct.VERTEX*)* @build_delaunay to i8*)], section "llvm.metadata" +@llvm.used = appending global [1 x ptr] [ptr @build_delaunay], section "llvm.metadata" -define void @build_delaunay(%struct.EDGE_PAIR* noalias nocapture sret(%struct.EDGE_PAIR) %agg.result, %struct.VERTEX* %tree, %struct.VERTEX* %extra) nounwind { +define void @build_delaunay(ptr noalias nocapture sret(%struct.EDGE_PAIR) %agg.result, ptr %tree, ptr %extra) nounwind { entry: %delright = alloca %struct.EDGE_PAIR, align 8 %delleft = alloca %struct.EDGE_PAIR, align 8 - %0 = icmp eq %struct.VERTEX* %tree, null + %0 = icmp eq ptr %tree, null br i1 %0, label %bb8, label %bb bb: - %1 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 2 - %2 = load %struct.VERTEX*, %struct.VERTEX** %1, align 4 - %3 = icmp eq %struct.VERTEX* %2, null + %1 = getelementptr %struct.VERTEX, ptr %tree, i32 0, i32 2 + %2 = load ptr, ptr %1, align 4 + %3 = icmp eq ptr %2, null br i1 %3, label %bb7, label %bb1.i bb1.i: - %tree_addr.0.i = phi %struct.VERTEX* [ %5, %bb1.i ], [ %tree, %bb ] - %4 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree_addr.0.i, i32 0, i32 1 - %5 = load %struct.VERTEX*, %struct.VERTEX** %4, align 4 - %6 = icmp eq %struct.VERTEX* %5, null + %tree_addr.0.i = phi ptr [ %5, %bb1.i ], [ %tree, %bb ] + %4 = getelementptr %struct.VERTEX, ptr %tree_addr.0.i, i32 0, i32 1 + %5 = load ptr, ptr %4, align 4 + %6 = icmp eq ptr %5, null br i1 %6, label %get_low.exit, label %bb1.i get_low.exit: - call void @build_delaunay(%struct.EDGE_PAIR* noalias sret(%struct.EDGE_PAIR) %delright, %struct.VERTEX* %2, %struct.VERTEX* %extra) nounwind - %7 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 1 - %8 = load %struct.VERTEX*, %struct.VERTEX** %7, align 4 - call void @build_delaunay(%struct.EDGE_PAIR* noalias sret(%struct.EDGE_PAIR) %delleft, %struct.VERTEX* %8, %struct.VERTEX* %tree) nounwind - %9 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delleft, i32 0, i32 0 - %10 = load %struct.edge_rec*, %struct.edge_rec** %9, align 8 - %11 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delleft, i32 0, i32 1 - %12 = load %struct.edge_rec*, %struct.edge_rec** %11, align 4 - %13 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delright, i32 0, i32 0 - %14 = load %struct.edge_rec*, %struct.edge_rec** %13, align 8 - %15 = getelementptr %struct.EDGE_PAIR, %struct.EDGE_PAIR* %delright, i32 0, i32 1 - %16 = load %struct.edge_rec*, %struct.edge_rec** %15, align 4 + call void @build_delaunay(ptr noalias sret(%struct.EDGE_PAIR) %delright, ptr %2, ptr %extra) nounwind + %7 = getelementptr %struct.VERTEX, ptr %tree, i32 0, i32 1 + %8 = load ptr, ptr %7, align 4 + call void @build_delaunay(ptr noalias sret(%struct.EDGE_PAIR) %delleft, ptr %8, ptr %tree) nounwind + %9 = getelementptr %struct.EDGE_PAIR, ptr %delleft, i32 0, i32 0 + %10 = load ptr, ptr %9, align 8 + %11 = getelementptr %struct.EDGE_PAIR, ptr %delleft, i32 0, i32 1 + %12 = load ptr, ptr %11, align 4 + %13 = getelementptr %struct.EDGE_PAIR, ptr %delright, i32 0, i32 0 + %14 = load ptr, ptr %13, align 8 + %15 = getelementptr %struct.EDGE_PAIR, ptr %delright, i32 0, i32 1 + %16 = load ptr, ptr %15, align 4 br label %bb.i bb.i: - %rdi_addr.0.i = phi %struct.edge_rec* [ %14, %get_low.exit ], [ %72, %bb4.i ] - %ldi_addr.1.i = phi %struct.edge_rec* [ %12, %get_low.exit ], [ %ldi_addr.0.i, %bb4.i ] - %17 = getelementptr %struct.edge_rec, %struct.edge_rec* %rdi_addr.0.i, i32 0, i32 0 - %18 = load %struct.VERTEX*, %struct.VERTEX** %17, align 4 - %19 = ptrtoint %struct.edge_rec* %ldi_addr.1.i to i32 - %20 = getelementptr %struct.VERTEX, %struct.VERTEX* %18, i32 0, i32 0, i32 0 - %21 = load double, double* %20, align 4 - %22 = getelementptr %struct.VERTEX, %struct.VERTEX* %18, i32 0, i32 0, i32 1 - %23 = load double, double* %22, align 4 + %rdi_addr.0.i = phi ptr [ %14, %get_low.exit ], [ %72, %bb4.i ] + %ldi_addr.1.i = phi ptr [ %12, %get_low.exit ], [ %ldi_addr.0.i, %bb4.i ] + %17 = getelementptr %struct.edge_rec, ptr %rdi_addr.0.i, i32 0, i32 0 + %18 = load ptr, ptr %17, align 4 + %19 = ptrtoint ptr %ldi_addr.1.i to i32 + %20 = getelementptr %struct.VERTEX, ptr %18, i32 0, i32 0, i32 0 + %21 = load double, ptr %20, align 4 + %22 = getelementptr %struct.VERTEX, ptr %18, i32 0, i32 0, i32 1 + %23 = load double, ptr %22, align 4 br label %bb2.i bb1.i1: - %24 = ptrtoint %struct.edge_rec* %ldi_addr.0.i to i32 + %24 = ptrtoint ptr %ldi_addr.0.i to i32 %25 = add i32 %24, 48 %26 = and i32 %25, 63 %27 = and i32 %24, -64 %28 = or i32 %26, %27 - %29 = inttoptr i32 %28 to %struct.edge_rec* - %30 = getelementptr %struct.edge_rec, %struct.edge_rec* %29, i32 0, i32 1 - %31 = load %struct.edge_rec*, %struct.edge_rec** %30, align 4 - %32 = ptrtoint %struct.edge_rec* %31 to i32 + %29 = inttoptr i32 %28 to ptr + %30 = getelementptr %struct.edge_rec, ptr %29, i32 0, i32 1 + %31 = load ptr, ptr %30, align 4 + %32 = ptrtoint ptr %31 to i32 %33 = add i32 %32, 16 %34 = and i32 %33, 63 %35 = and i32 %32, -64 %36 = or i32 %34, %35 - %37 = inttoptr i32 %36 to %struct.edge_rec* + %37 = inttoptr i32 %36 to ptr br label %bb2.i bb2.i: - %ldi_addr.1.pn.i = phi %struct.edge_rec* [ %ldi_addr.1.i, %bb.i ], [ %37, %bb1.i1 ] + %ldi_addr.1.pn.i = phi ptr [ %ldi_addr.1.i, %bb.i ], [ %37, %bb1.i1 ] %.pn6.in.in.i = phi i32 [ %19, %bb.i ], [ %36, %bb1.i1 ] - %ldi_addr.0.i = phi %struct.edge_rec* [ %ldi_addr.1.i, %bb.i ], [ %37, %bb1.i1 ] + %ldi_addr.0.i = phi ptr [ %ldi_addr.1.i, %bb.i ], [ %37, %bb1.i1 ] %.pn6.in.i = xor i32 %.pn6.in.in.i, 32 - %.pn6.i = inttoptr i32 %.pn6.in.i to %struct.edge_rec* - %t1.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %ldi_addr.1.pn.i, i32 0, i32 0 - %t2.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn6.i, i32 0, i32 0 - %t1.0.i = load %struct.VERTEX*, %struct.VERTEX** %t1.0.in.i - %t2.0.i = load %struct.VERTEX*, %struct.VERTEX** %t2.0.in.i - %38 = getelementptr %struct.VERTEX, %struct.VERTEX* %t1.0.i, i32 0, i32 0, i32 0 - %39 = load double, double* %38, align 4 - %40 = getelementptr %struct.VERTEX, %struct.VERTEX* %t1.0.i, i32 0, i32 0, i32 1 - %41 = load double, double* %40, align 4 - %42 = getelementptr %struct.VERTEX, %struct.VERTEX* %t2.0.i, i32 0, i32 0, i32 0 - %43 = load double, double* %42, align 4 - %44 = getelementptr %struct.VERTEX, %struct.VERTEX* %t2.0.i, i32 0, i32 0, i32 1 - %45 = load double, double* %44, align 4 + %.pn6.i = inttoptr i32 %.pn6.in.i to ptr + %t1.0.in.i = getelementptr %struct.edge_rec, ptr %ldi_addr.1.pn.i, i32 0, i32 0 + %t2.0.in.i = getelementptr %struct.edge_rec, ptr %.pn6.i, i32 0, i32 0 + %t1.0.i = load ptr, ptr %t1.0.in.i + %t2.0.i = load ptr, ptr %t2.0.in.i + %38 = getelementptr %struct.VERTEX, ptr %t1.0.i, i32 0, i32 0, i32 0 + %39 = load double, ptr %38, align 4 + %40 = getelementptr %struct.VERTEX, ptr %t1.0.i, i32 0, i32 0, i32 1 + %41 = load double, ptr %40, align 4 + %42 = getelementptr %struct.VERTEX, ptr %t2.0.i, i32 0, i32 0, i32 0 + %43 = load double, ptr %42, align 4 + %44 = getelementptr %struct.VERTEX, ptr %t2.0.i, i32 0, i32 0, i32 1 + %45 = load double, ptr %44, align 4 %46 = fsub double %39, %21 %47 = fsub double %45, %23 %48 = fmul double %46, %47 @@ -101,15 +101,15 @@ bb2.i: br i1 %53, label %bb1.i1, label %bb3.i bb3.i: - %54 = ptrtoint %struct.edge_rec* %rdi_addr.0.i to i32 + %54 = ptrtoint ptr %rdi_addr.0.i to i32 %55 = xor i32 %54, 32 - %56 = inttoptr i32 %55 to %struct.edge_rec* - %57 = getelementptr %struct.edge_rec, %struct.edge_rec* %56, i32 0, i32 0 - %58 = load %struct.VERTEX*, %struct.VERTEX** %57, align 4 - %59 = getelementptr %struct.VERTEX, %struct.VERTEX* %58, i32 0, i32 0, i32 0 - %60 = load double, double* %59, align 4 - %61 = getelementptr %struct.VERTEX, %struct.VERTEX* %58, i32 0, i32 0, i32 1 - %62 = load double, double* %61, align 4 + %56 = inttoptr i32 %55 to ptr + %57 = getelementptr %struct.edge_rec, ptr %56, i32 0, i32 0 + %58 = load ptr, ptr %57, align 4 + %59 = getelementptr %struct.VERTEX, ptr %58, i32 0, i32 0, i32 0 + %60 = load double, ptr %59, align 4 + %61 = getelementptr %struct.VERTEX, ptr %58, i32 0, i32 0, i32 1 + %62 = load double, ptr %61, align 4 %63 = fsub double %60, %39 %64 = fsub double %23, %41 %65 = fmul double %63, %64 @@ -121,8 +121,8 @@ bb3.i: br i1 %70, label %bb4.i, label %bb5.i bb4.i: - %71 = getelementptr %struct.edge_rec, %struct.edge_rec* %56, i32 0, i32 1 - %72 = load %struct.edge_rec*, %struct.edge_rec** %71, align 4 + %71 = getelementptr %struct.edge_rec, ptr %56, i32 0, i32 1 + %72 = load ptr, ptr %71, align 4 br label %bb.i bb5.i: @@ -130,145 +130,145 @@ bb5.i: %74 = and i32 %73, 63 %75 = and i32 %55, -64 %76 = or i32 %74, %75 - %77 = inttoptr i32 %76 to %struct.edge_rec* - %78 = getelementptr %struct.edge_rec, %struct.edge_rec* %77, i32 0, i32 1 - %79 = load %struct.edge_rec*, %struct.edge_rec** %78, align 4 - %80 = ptrtoint %struct.edge_rec* %79 to i32 + %77 = inttoptr i32 %76 to ptr + %78 = getelementptr %struct.edge_rec, ptr %77, i32 0, i32 1 + %79 = load ptr, ptr %78, align 4 + %80 = ptrtoint ptr %79 to i32 %81 = add i32 %80, 16 %82 = and i32 %81, 63 %83 = and i32 %80, -64 %84 = or i32 %82, %83 - %85 = inttoptr i32 %84 to %struct.edge_rec* - %86 = getelementptr %struct.edge_rec, %struct.edge_rec* %ldi_addr.0.i, i32 0, i32 0 - %87 = load %struct.VERTEX*, %struct.VERTEX** %86, align 4 - %88 = call %struct.edge_rec* @alloc_edge() nounwind - %89 = getelementptr %struct.edge_rec, %struct.edge_rec* %88, i32 0, i32 1 - store %struct.edge_rec* %88, %struct.edge_rec** %89, align 4 - %90 = getelementptr %struct.edge_rec, %struct.edge_rec* %88, i32 0, i32 0 - store %struct.VERTEX* %18, %struct.VERTEX** %90, align 4 - %91 = ptrtoint %struct.edge_rec* %88 to i32 + %85 = inttoptr i32 %84 to ptr + %86 = getelementptr %struct.edge_rec, ptr %ldi_addr.0.i, i32 0, i32 0 + %87 = load ptr, ptr %86, align 4 + %88 = call ptr @alloc_edge() nounwind + %89 = getelementptr %struct.edge_rec, ptr %88, i32 0, i32 1 + store ptr %88, ptr %89, align 4 + %90 = getelementptr %struct.edge_rec, ptr %88, i32 0, i32 0 + store ptr %18, ptr %90, align 4 + %91 = ptrtoint ptr %88 to i32 %92 = add i32 %91, 16 - %93 = inttoptr i32 %92 to %struct.edge_rec* + %93 = inttoptr i32 %92 to ptr %94 = add i32 %91, 48 - %95 = inttoptr i32 %94 to %struct.edge_rec* - %96 = getelementptr %struct.edge_rec, %struct.edge_rec* %93, i32 0, i32 1 - store %struct.edge_rec* %95, %struct.edge_rec** %96, align 4 + %95 = inttoptr i32 %94 to ptr + %96 = getelementptr %struct.edge_rec, ptr %93, i32 0, i32 1 + store ptr %95, ptr %96, align 4 %97 = add i32 %91, 32 - %98 = inttoptr i32 %97 to %struct.edge_rec* - %99 = getelementptr %struct.edge_rec, %struct.edge_rec* %98, i32 0, i32 1 - store %struct.edge_rec* %98, %struct.edge_rec** %99, align 4 - %100 = getelementptr %struct.edge_rec, %struct.edge_rec* %98, i32 0, i32 0 - store %struct.VERTEX* %87, %struct.VERTEX** %100, align 4 - %101 = getelementptr %struct.edge_rec, %struct.edge_rec* %95, i32 0, i32 1 - store %struct.edge_rec* %93, %struct.edge_rec** %101, align 4 - %102 = load %struct.edge_rec*, %struct.edge_rec** %89, align 4 - %103 = ptrtoint %struct.edge_rec* %102 to i32 + %98 = inttoptr i32 %97 to ptr + %99 = getelementptr %struct.edge_rec, ptr %98, i32 0, i32 1 + store ptr %98, ptr %99, align 4 + %100 = getelementptr %struct.edge_rec, ptr %98, i32 0, i32 0 + store ptr %87, ptr %100, align 4 + %101 = getelementptr %struct.edge_rec, ptr %95, i32 0, i32 1 + store ptr %93, ptr %101, align 4 + %102 = load ptr, ptr %89, align 4 + %103 = ptrtoint ptr %102 to i32 %104 = add i32 %103, 16 %105 = and i32 %104, 63 %106 = and i32 %103, -64 %107 = or i32 %105, %106 - %108 = inttoptr i32 %107 to %struct.edge_rec* - %109 = getelementptr %struct.edge_rec, %struct.edge_rec* %85, i32 0, i32 1 - %110 = load %struct.edge_rec*, %struct.edge_rec** %109, align 4 - %111 = ptrtoint %struct.edge_rec* %110 to i32 + %108 = inttoptr i32 %107 to ptr + %109 = getelementptr %struct.edge_rec, ptr %85, i32 0, i32 1 + %110 = load ptr, ptr %109, align 4 + %111 = ptrtoint ptr %110 to i32 %112 = add i32 %111, 16 %113 = and i32 %112, 63 %114 = and i32 %111, -64 %115 = or i32 %113, %114 - %116 = inttoptr i32 %115 to %struct.edge_rec* - %117 = getelementptr %struct.edge_rec, %struct.edge_rec* %116, i32 0, i32 1 - %118 = load %struct.edge_rec*, %struct.edge_rec** %117, align 4 - %119 = getelementptr %struct.edge_rec, %struct.edge_rec* %108, i32 0, i32 1 - %120 = load %struct.edge_rec*, %struct.edge_rec** %119, align 4 - store %struct.edge_rec* %118, %struct.edge_rec** %119, align 4 - store %struct.edge_rec* %120, %struct.edge_rec** %117, align 4 - %121 = load %struct.edge_rec*, %struct.edge_rec** %89, align 4 - %122 = load %struct.edge_rec*, %struct.edge_rec** %109, align 4 - store %struct.edge_rec* %121, %struct.edge_rec** %109, align 4 - store %struct.edge_rec* %122, %struct.edge_rec** %89, align 4 + %116 = inttoptr i32 %115 to ptr + %117 = getelementptr %struct.edge_rec, ptr %116, i32 0, i32 1 + %118 = load ptr, ptr %117, align 4 + %119 = getelementptr %struct.edge_rec, ptr %108, i32 0, i32 1 + %120 = load ptr, ptr %119, align 4 + store ptr %118, ptr %119, align 4 + store ptr %120, ptr %117, align 4 + %121 = load ptr, ptr %89, align 4 + %122 = load ptr, ptr %109, align 4 + store ptr %121, ptr %109, align 4 + store ptr %122, ptr %89, align 4 %123 = xor i32 %91, 32 - %124 = inttoptr i32 %123 to %struct.edge_rec* - %125 = getelementptr %struct.edge_rec, %struct.edge_rec* %124, i32 0, i32 1 - %126 = load %struct.edge_rec*, %struct.edge_rec** %125, align 4 - %127 = ptrtoint %struct.edge_rec* %126 to i32 + %124 = inttoptr i32 %123 to ptr + %125 = getelementptr %struct.edge_rec, ptr %124, i32 0, i32 1 + %126 = load ptr, ptr %125, align 4 + %127 = ptrtoint ptr %126 to i32 %128 = add i32 %127, 16 %129 = and i32 %128, 63 %130 = and i32 %127, -64 %131 = or i32 %129, %130 - %132 = inttoptr i32 %131 to %struct.edge_rec* - %133 = getelementptr %struct.edge_rec, %struct.edge_rec* %ldi_addr.0.i, i32 0, i32 1 - %134 = load %struct.edge_rec*, %struct.edge_rec** %133, align 4 - %135 = ptrtoint %struct.edge_rec* %134 to i32 + %132 = inttoptr i32 %131 to ptr + %133 = getelementptr %struct.edge_rec, ptr %ldi_addr.0.i, i32 0, i32 1 + %134 = load ptr, ptr %133, align 4 + %135 = ptrtoint ptr %134 to i32 %136 = add i32 %135, 16 %137 = and i32 %136, 63 %138 = and i32 %135, -64 %139 = or i32 %137, %138 - %140 = inttoptr i32 %139 to %struct.edge_rec* - %141 = getelementptr %struct.edge_rec, %struct.edge_rec* %140, i32 0, i32 1 - %142 = load %struct.edge_rec*, %struct.edge_rec** %141, align 4 - %143 = getelementptr %struct.edge_rec, %struct.edge_rec* %132, i32 0, i32 1 - %144 = load %struct.edge_rec*, %struct.edge_rec** %143, align 4 - store %struct.edge_rec* %142, %struct.edge_rec** %143, align 4 - store %struct.edge_rec* %144, %struct.edge_rec** %141, align 4 - %145 = load %struct.edge_rec*, %struct.edge_rec** %125, align 4 - %146 = load %struct.edge_rec*, %struct.edge_rec** %133, align 4 - store %struct.edge_rec* %145, %struct.edge_rec** %133, align 4 - store %struct.edge_rec* %146, %struct.edge_rec** %125, align 4 + %140 = inttoptr i32 %139 to ptr + %141 = getelementptr %struct.edge_rec, ptr %140, i32 0, i32 1 + %142 = load ptr, ptr %141, align 4 + %143 = getelementptr %struct.edge_rec, ptr %132, i32 0, i32 1 + %144 = load ptr, ptr %143, align 4 + store ptr %142, ptr %143, align 4 + store ptr %144, ptr %141, align 4 + %145 = load ptr, ptr %125, align 4 + %146 = load ptr, ptr %133, align 4 + store ptr %145, ptr %133, align 4 + store ptr %146, ptr %125, align 4 %147 = and i32 %92, 63 %148 = and i32 %91, -64 %149 = or i32 %147, %148 - %150 = inttoptr i32 %149 to %struct.edge_rec* - %151 = getelementptr %struct.edge_rec, %struct.edge_rec* %150, i32 0, i32 1 - %152 = load %struct.edge_rec*, %struct.edge_rec** %151, align 4 - %153 = ptrtoint %struct.edge_rec* %152 to i32 + %150 = inttoptr i32 %149 to ptr + %151 = getelementptr %struct.edge_rec, ptr %150, i32 0, i32 1 + %152 = load ptr, ptr %151, align 4 + %153 = ptrtoint ptr %152 to i32 %154 = add i32 %153, 16 %155 = and i32 %154, 63 %156 = and i32 %153, -64 %157 = or i32 %155, %156 - %158 = inttoptr i32 %157 to %struct.edge_rec* - %159 = load %struct.VERTEX*, %struct.VERTEX** %90, align 4 - %160 = getelementptr %struct.edge_rec, %struct.edge_rec* %124, i32 0, i32 0 - %161 = load %struct.VERTEX*, %struct.VERTEX** %160, align 4 - %162 = getelementptr %struct.edge_rec, %struct.edge_rec* %16, i32 0, i32 0 - %163 = load %struct.VERTEX*, %struct.VERTEX** %162, align 4 - %164 = icmp eq %struct.VERTEX* %163, %159 - %rdo_addr.0.i = select i1 %164, %struct.edge_rec* %88, %struct.edge_rec* %16 - %165 = getelementptr %struct.edge_rec, %struct.edge_rec* %10, i32 0, i32 0 - %166 = load %struct.VERTEX*, %struct.VERTEX** %165, align 4 - %167 = icmp eq %struct.VERTEX* %166, %161 - %ldo_addr.0.ph.i = select i1 %167, %struct.edge_rec* %124, %struct.edge_rec* %10 + %158 = inttoptr i32 %157 to ptr + %159 = load ptr, ptr %90, align 4 + %160 = getelementptr %struct.edge_rec, ptr %124, i32 0, i32 0 + %161 = load ptr, ptr %160, align 4 + %162 = getelementptr %struct.edge_rec, ptr %16, i32 0, i32 0 + %163 = load ptr, ptr %162, align 4 + %164 = icmp eq ptr %163, %159 + %rdo_addr.0.i = select i1 %164, ptr %88, ptr %16 + %165 = getelementptr %struct.edge_rec, ptr %10, i32 0, i32 0 + %166 = load ptr, ptr %165, align 4 + %167 = icmp eq ptr %166, %161 + %ldo_addr.0.ph.i = select i1 %167, ptr %124, ptr %10 br label %bb9.i bb9.i: - %lcand.2.i = phi %struct.edge_rec* [ %146, %bb5.i ], [ %lcand.1.i, %bb24.i ], [ %739, %bb25.i ] - %rcand.2.i = phi %struct.edge_rec* [ %158, %bb5.i ], [ %666, %bb24.i ], [ %rcand.1.i, %bb25.i ] - %basel.0.i = phi %struct.edge_rec* [ %88, %bb5.i ], [ %595, %bb24.i ], [ %716, %bb25.i ] - %168 = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.2.i, i32 0, i32 1 - %169 = load %struct.edge_rec*, %struct.edge_rec** %168, align 4 - %170 = getelementptr %struct.edge_rec, %struct.edge_rec* %basel.0.i, i32 0, i32 0 - %171 = load %struct.VERTEX*, %struct.VERTEX** %170, align 4 - %172 = ptrtoint %struct.edge_rec* %basel.0.i to i32 + %lcand.2.i = phi ptr [ %146, %bb5.i ], [ %lcand.1.i, %bb24.i ], [ %739, %bb25.i ] + %rcand.2.i = phi ptr [ %158, %bb5.i ], [ %666, %bb24.i ], [ %rcand.1.i, %bb25.i ] + %basel.0.i = phi ptr [ %88, %bb5.i ], [ %595, %bb24.i ], [ %716, %bb25.i ] + %168 = getelementptr %struct.edge_rec, ptr %lcand.2.i, i32 0, i32 1 + %169 = load ptr, ptr %168, align 4 + %170 = getelementptr %struct.edge_rec, ptr %basel.0.i, i32 0, i32 0 + %171 = load ptr, ptr %170, align 4 + %172 = ptrtoint ptr %basel.0.i to i32 %173 = xor i32 %172, 32 - %174 = inttoptr i32 %173 to %struct.edge_rec* - %175 = getelementptr %struct.edge_rec, %struct.edge_rec* %174, i32 0, i32 0 - %176 = load %struct.VERTEX*, %struct.VERTEX** %175, align 4 - %177 = ptrtoint %struct.edge_rec* %169 to i32 + %174 = inttoptr i32 %173 to ptr + %175 = getelementptr %struct.edge_rec, ptr %174, i32 0, i32 0 + %176 = load ptr, ptr %175, align 4 + %177 = ptrtoint ptr %169 to i32 %178 = xor i32 %177, 32 - %179 = inttoptr i32 %178 to %struct.edge_rec* - %180 = getelementptr %struct.edge_rec, %struct.edge_rec* %179, i32 0, i32 0 - %181 = load %struct.VERTEX*, %struct.VERTEX** %180, align 4 - %182 = getelementptr %struct.VERTEX, %struct.VERTEX* %171, i32 0, i32 0, i32 0 - %183 = load double, double* %182, align 4 - %184 = getelementptr %struct.VERTEX, %struct.VERTEX* %171, i32 0, i32 0, i32 1 - %185 = load double, double* %184, align 4 - %186 = getelementptr %struct.VERTEX, %struct.VERTEX* %181, i32 0, i32 0, i32 0 - %187 = load double, double* %186, align 4 - %188 = getelementptr %struct.VERTEX, %struct.VERTEX* %181, i32 0, i32 0, i32 1 - %189 = load double, double* %188, align 4 - %190 = getelementptr %struct.VERTEX, %struct.VERTEX* %176, i32 0, i32 0, i32 0 - %191 = load double, double* %190, align 4 - %192 = getelementptr %struct.VERTEX, %struct.VERTEX* %176, i32 0, i32 0, i32 1 - %193 = load double, double* %192, align 4 + %179 = inttoptr i32 %178 to ptr + %180 = getelementptr %struct.edge_rec, ptr %179, i32 0, i32 0 + %181 = load ptr, ptr %180, align 4 + %182 = getelementptr %struct.VERTEX, ptr %171, i32 0, i32 0, i32 0 + %183 = load double, ptr %182, align 4 + %184 = getelementptr %struct.VERTEX, ptr %171, i32 0, i32 0, i32 1 + %185 = load double, ptr %184, align 4 + %186 = getelementptr %struct.VERTEX, ptr %181, i32 0, i32 0, i32 0 + %187 = load double, ptr %186, align 4 + %188 = getelementptr %struct.VERTEX, ptr %181, i32 0, i32 0, i32 1 + %189 = load double, ptr %188, align 4 + %190 = getelementptr %struct.VERTEX, ptr %176, i32 0, i32 0, i32 0 + %191 = load double, ptr %190, align 4 + %192 = getelementptr %struct.VERTEX, ptr %176, i32 0, i32 0, i32 1 + %193 = load double, ptr %192, align 4 %194 = fsub double %183, %191 %195 = fsub double %189, %193 %196 = fmul double %194, %195 @@ -280,146 +280,146 @@ bb9.i: br i1 %201, label %bb10.i, label %bb13.i bb10.i: - %202 = getelementptr %struct.VERTEX, %struct.VERTEX* %171, i32 0, i32 0, i32 2 - %avail_edge.promoted25 = load %struct.edge_rec*, %struct.edge_rec** @avail_edge + %202 = getelementptr %struct.VERTEX, ptr %171, i32 0, i32 0, i32 2 + %avail_edge.promoted25 = load ptr, ptr @avail_edge br label %bb12.i bb11.i: - %203 = ptrtoint %struct.edge_rec* %lcand.0.i to i32 + %203 = ptrtoint ptr %lcand.0.i to i32 %204 = add i32 %203, 16 %205 = and i32 %204, 63 %206 = and i32 %203, -64 %207 = or i32 %205, %206 - %208 = inttoptr i32 %207 to %struct.edge_rec* - %209 = getelementptr %struct.edge_rec, %struct.edge_rec* %208, i32 0, i32 1 - %210 = load %struct.edge_rec*, %struct.edge_rec** %209, align 4 - %211 = ptrtoint %struct.edge_rec* %210 to i32 + %208 = inttoptr i32 %207 to ptr + %209 = getelementptr %struct.edge_rec, ptr %208, i32 0, i32 1 + %210 = load ptr, ptr %209, align 4 + %211 = ptrtoint ptr %210 to i32 %212 = add i32 %211, 16 %213 = and i32 %212, 63 %214 = and i32 %211, -64 %215 = or i32 %213, %214 - %216 = inttoptr i32 %215 to %struct.edge_rec* - %217 = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.0.i, i32 0, i32 1 - %218 = load %struct.edge_rec*, %struct.edge_rec** %217, align 4 - %219 = ptrtoint %struct.edge_rec* %218 to i32 + %216 = inttoptr i32 %215 to ptr + %217 = getelementptr %struct.edge_rec, ptr %lcand.0.i, i32 0, i32 1 + %218 = load ptr, ptr %217, align 4 + %219 = ptrtoint ptr %218 to i32 %220 = add i32 %219, 16 %221 = and i32 %220, 63 %222 = and i32 %219, -64 %223 = or i32 %221, %222 - %224 = inttoptr i32 %223 to %struct.edge_rec* - %225 = getelementptr %struct.edge_rec, %struct.edge_rec* %216, i32 0, i32 1 - %226 = load %struct.edge_rec*, %struct.edge_rec** %225, align 4 - %227 = ptrtoint %struct.edge_rec* %226 to i32 + %224 = inttoptr i32 %223 to ptr + %225 = getelementptr %struct.edge_rec, ptr %216, i32 0, i32 1 + %226 = load ptr, ptr %225, align 4 + %227 = ptrtoint ptr %226 to i32 %228 = add i32 %227, 16 %229 = and i32 %228, 63 %230 = and i32 %227, -64 %231 = or i32 %229, %230 - %232 = inttoptr i32 %231 to %struct.edge_rec* - %233 = getelementptr %struct.edge_rec, %struct.edge_rec* %232, i32 0, i32 1 - %234 = load %struct.edge_rec*, %struct.edge_rec** %233, align 4 - %235 = getelementptr %struct.edge_rec, %struct.edge_rec* %224, i32 0, i32 1 - %236 = load %struct.edge_rec*, %struct.edge_rec** %235, align 4 - store %struct.edge_rec* %234, %struct.edge_rec** %235, align 4 - store %struct.edge_rec* %236, %struct.edge_rec** %233, align 4 - %237 = load %struct.edge_rec*, %struct.edge_rec** %217, align 4 - %238 = load %struct.edge_rec*, %struct.edge_rec** %225, align 4 - store %struct.edge_rec* %237, %struct.edge_rec** %225, align 4 - store %struct.edge_rec* %238, %struct.edge_rec** %217, align 4 + %232 = inttoptr i32 %231 to ptr + %233 = getelementptr %struct.edge_rec, ptr %232, i32 0, i32 1 + %234 = load ptr, ptr %233, align 4 + %235 = getelementptr %struct.edge_rec, ptr %224, i32 0, i32 1 + %236 = load ptr, ptr %235, align 4 + store ptr %234, ptr %235, align 4 + store ptr %236, ptr %233, align 4 + %237 = load ptr, ptr %217, align 4 + %238 = load ptr, ptr %225, align 4 + store ptr %237, ptr %225, align 4 + store ptr %238, ptr %217, align 4 %239 = xor i32 %203, 32 %240 = add i32 %239, 16 %241 = and i32 %240, 63 %242 = or i32 %241, %206 - %243 = inttoptr i32 %242 to %struct.edge_rec* - %244 = getelementptr %struct.edge_rec, %struct.edge_rec* %243, i32 0, i32 1 - %245 = load %struct.edge_rec*, %struct.edge_rec** %244, align 4 - %246 = ptrtoint %struct.edge_rec* %245 to i32 + %243 = inttoptr i32 %242 to ptr + %244 = getelementptr %struct.edge_rec, ptr %243, i32 0, i32 1 + %245 = load ptr, ptr %244, align 4 + %246 = ptrtoint ptr %245 to i32 %247 = add i32 %246, 16 %248 = and i32 %247, 63 %249 = and i32 %246, -64 %250 = or i32 %248, %249 - %251 = inttoptr i32 %250 to %struct.edge_rec* - %252 = inttoptr i32 %239 to %struct.edge_rec* - %253 = getelementptr %struct.edge_rec, %struct.edge_rec* %252, i32 0, i32 1 - %254 = load %struct.edge_rec*, %struct.edge_rec** %253, align 4 - %255 = ptrtoint %struct.edge_rec* %254 to i32 + %251 = inttoptr i32 %250 to ptr + %252 = inttoptr i32 %239 to ptr + %253 = getelementptr %struct.edge_rec, ptr %252, i32 0, i32 1 + %254 = load ptr, ptr %253, align 4 + %255 = ptrtoint ptr %254 to i32 %256 = add i32 %255, 16 %257 = and i32 %256, 63 %258 = and i32 %255, -64 %259 = or i32 %257, %258 - %260 = inttoptr i32 %259 to %struct.edge_rec* - %261 = getelementptr %struct.edge_rec, %struct.edge_rec* %251, i32 0, i32 1 - %262 = load %struct.edge_rec*, %struct.edge_rec** %261, align 4 - %263 = ptrtoint %struct.edge_rec* %262 to i32 + %260 = inttoptr i32 %259 to ptr + %261 = getelementptr %struct.edge_rec, ptr %251, i32 0, i32 1 + %262 = load ptr, ptr %261, align 4 + %263 = ptrtoint ptr %262 to i32 %264 = add i32 %263, 16 %265 = and i32 %264, 63 %266 = and i32 %263, -64 %267 = or i32 %265, %266 - %268 = inttoptr i32 %267 to %struct.edge_rec* - %269 = getelementptr %struct.edge_rec, %struct.edge_rec* %268, i32 0, i32 1 - %270 = load %struct.edge_rec*, %struct.edge_rec** %269, align 4 - %271 = getelementptr %struct.edge_rec, %struct.edge_rec* %260, i32 0, i32 1 - %272 = load %struct.edge_rec*, %struct.edge_rec** %271, align 4 - store %struct.edge_rec* %270, %struct.edge_rec** %271, align 4 - store %struct.edge_rec* %272, %struct.edge_rec** %269, align 4 - %273 = load %struct.edge_rec*, %struct.edge_rec** %253, align 4 - %274 = load %struct.edge_rec*, %struct.edge_rec** %261, align 4 - store %struct.edge_rec* %273, %struct.edge_rec** %261, align 4 - store %struct.edge_rec* %274, %struct.edge_rec** %253, align 4 - %275 = inttoptr i32 %206 to %struct.edge_rec* - %276 = getelementptr %struct.edge_rec, %struct.edge_rec* %275, i32 0, i32 1 - store %struct.edge_rec* %avail_edge.tmp.026, %struct.edge_rec** %276, align 4 - %277 = getelementptr %struct.edge_rec, %struct.edge_rec* %t.0.i, i32 0, i32 1 - %278 = load %struct.edge_rec*, %struct.edge_rec** %277, align 4 - %.pre.i = load double, double* %182, align 4 - %.pre22.i = load double, double* %184, align 4 + %268 = inttoptr i32 %267 to ptr + %269 = getelementptr %struct.edge_rec, ptr %268, i32 0, i32 1 + %270 = load ptr, ptr %269, align 4 + %271 = getelementptr %struct.edge_rec, ptr %260, i32 0, i32 1 + %272 = load ptr, ptr %271, align 4 + store ptr %270, ptr %271, align 4 + store ptr %272, ptr %269, align 4 + %273 = load ptr, ptr %253, align 4 + %274 = load ptr, ptr %261, align 4 + store ptr %273, ptr %261, align 4 + store ptr %274, ptr %253, align 4 + %275 = inttoptr i32 %206 to ptr + %276 = getelementptr %struct.edge_rec, ptr %275, i32 0, i32 1 + store ptr %avail_edge.tmp.026, ptr %276, align 4 + %277 = getelementptr %struct.edge_rec, ptr %t.0.i, i32 0, i32 1 + %278 = load ptr, ptr %277, align 4 + %.pre.i = load double, ptr %182, align 4 + %.pre22.i = load double, ptr %184, align 4 br label %bb12.i bb12.i: - %avail_edge.tmp.026 = phi %struct.edge_rec* [ %avail_edge.promoted25, %bb10.i ], [ %275, %bb11.i ] + %avail_edge.tmp.026 = phi ptr [ %avail_edge.promoted25, %bb10.i ], [ %275, %bb11.i ] %279 = phi double [ %.pre22.i, %bb11.i ], [ %185, %bb10.i ] %280 = phi double [ %.pre.i, %bb11.i ], [ %183, %bb10.i ] - %lcand.0.i = phi %struct.edge_rec* [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] - %t.0.i = phi %struct.edge_rec* [ %169, %bb10.i ], [ %278, %bb11.i ] - %.pn5.in.in.in.i = phi %struct.edge_rec* [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] - %.pn4.in.in.in.i = phi %struct.edge_rec* [ %169, %bb10.i ], [ %278, %bb11.i ] - %lcand.2.pn.i = phi %struct.edge_rec* [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] - %.pn5.in.in.i = ptrtoint %struct.edge_rec* %.pn5.in.in.in.i to i32 - %.pn4.in.in.i = ptrtoint %struct.edge_rec* %.pn4.in.in.in.i to i32 + %lcand.0.i = phi ptr [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] + %t.0.i = phi ptr [ %169, %bb10.i ], [ %278, %bb11.i ] + %.pn5.in.in.in.i = phi ptr [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] + %.pn4.in.in.in.i = phi ptr [ %169, %bb10.i ], [ %278, %bb11.i ] + %lcand.2.pn.i = phi ptr [ %lcand.2.i, %bb10.i ], [ %t.0.i, %bb11.i ] + %.pn5.in.in.i = ptrtoint ptr %.pn5.in.in.in.i to i32 + %.pn4.in.in.i = ptrtoint ptr %.pn4.in.in.in.i to i32 %.pn5.in.i = xor i32 %.pn5.in.in.i, 32 %.pn4.in.i = xor i32 %.pn4.in.in.i, 32 - %.pn5.i = inttoptr i32 %.pn5.in.i to %struct.edge_rec* - %.pn4.i = inttoptr i32 %.pn4.in.i to %struct.edge_rec* - %v1.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn5.i, i32 0, i32 0 - %v2.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn4.i, i32 0, i32 0 - %v3.0.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.2.pn.i, i32 0, i32 0 - %v1.0.i = load %struct.VERTEX*, %struct.VERTEX** %v1.0.in.i - %v2.0.i = load %struct.VERTEX*, %struct.VERTEX** %v2.0.in.i - %v3.0.i = load %struct.VERTEX*, %struct.VERTEX** %v3.0.in.i - %281 = load double, double* %202, align 4 - %282 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.0.i, i32 0, i32 0, i32 0 - %283 = load double, double* %282, align 4 + %.pn5.i = inttoptr i32 %.pn5.in.i to ptr + %.pn4.i = inttoptr i32 %.pn4.in.i to ptr + %v1.0.in.i = getelementptr %struct.edge_rec, ptr %.pn5.i, i32 0, i32 0 + %v2.0.in.i = getelementptr %struct.edge_rec, ptr %.pn4.i, i32 0, i32 0 + %v3.0.in.i = getelementptr %struct.edge_rec, ptr %lcand.2.pn.i, i32 0, i32 0 + %v1.0.i = load ptr, ptr %v1.0.in.i + %v2.0.i = load ptr, ptr %v2.0.in.i + %v3.0.i = load ptr, ptr %v3.0.in.i + %281 = load double, ptr %202, align 4 + %282 = getelementptr %struct.VERTEX, ptr %v1.0.i, i32 0, i32 0, i32 0 + %283 = load double, ptr %282, align 4 %284 = fsub double %283, %280 - %285 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.0.i, i32 0, i32 0, i32 1 - %286 = load double, double* %285, align 4 + %285 = getelementptr %struct.VERTEX, ptr %v1.0.i, i32 0, i32 0, i32 1 + %286 = load double, ptr %285, align 4 %287 = fsub double %286, %279 - %288 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.0.i, i32 0, i32 0, i32 2 - %289 = load double, double* %288, align 4 - %290 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.0.i, i32 0, i32 0, i32 0 - %291 = load double, double* %290, align 4 + %288 = getelementptr %struct.VERTEX, ptr %v1.0.i, i32 0, i32 0, i32 2 + %289 = load double, ptr %288, align 4 + %290 = getelementptr %struct.VERTEX, ptr %v2.0.i, i32 0, i32 0, i32 0 + %291 = load double, ptr %290, align 4 %292 = fsub double %291, %280 - %293 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.0.i, i32 0, i32 0, i32 1 - %294 = load double, double* %293, align 4 + %293 = getelementptr %struct.VERTEX, ptr %v2.0.i, i32 0, i32 0, i32 1 + %294 = load double, ptr %293, align 4 %295 = fsub double %294, %279 - %296 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.0.i, i32 0, i32 0, i32 2 - %297 = load double, double* %296, align 4 - %298 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.0.i, i32 0, i32 0, i32 0 - %299 = load double, double* %298, align 4 + %296 = getelementptr %struct.VERTEX, ptr %v2.0.i, i32 0, i32 0, i32 2 + %297 = load double, ptr %296, align 4 + %298 = getelementptr %struct.VERTEX, ptr %v3.0.i, i32 0, i32 0, i32 0 + %299 = load double, ptr %298, align 4 %300 = fsub double %299, %280 - %301 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.0.i, i32 0, i32 0, i32 1 - %302 = load double, double* %301, align 4 + %301 = getelementptr %struct.VERTEX, ptr %v3.0.i, i32 0, i32 0, i32 1 + %302 = load double, ptr %301, align 4 %303 = fsub double %302, %279 - %304 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.0.i, i32 0, i32 0, i32 2 - %305 = load double, double* %304, align 4 + %304 = getelementptr %struct.VERTEX, ptr %v3.0.i, i32 0, i32 0, i32 2 + %305 = load double, ptr %304, align 4 %306 = fsub double %289, %281 %307 = fmul double %292, %303 %308 = fmul double %295, %300 @@ -441,44 +441,44 @@ bb12.i: br i1 %323, label %bb11.i, label %bb13.loopexit.i bb13.loopexit.i: - store %struct.edge_rec* %avail_edge.tmp.026, %struct.edge_rec** @avail_edge - %.pre23.i = load %struct.VERTEX*, %struct.VERTEX** %170, align 4 - %.pre24.i = load %struct.VERTEX*, %struct.VERTEX** %175, align 4 + store ptr %avail_edge.tmp.026, ptr @avail_edge + %.pre23.i = load ptr, ptr %170, align 4 + %.pre24.i = load ptr, ptr %175, align 4 br label %bb13.i bb13.i: - %324 = phi %struct.VERTEX* [ %.pre24.i, %bb13.loopexit.i ], [ %176, %bb9.i ] - %325 = phi %struct.VERTEX* [ %.pre23.i, %bb13.loopexit.i ], [ %171, %bb9.i ] - %lcand.1.i = phi %struct.edge_rec* [ %lcand.0.i, %bb13.loopexit.i ], [ %lcand.2.i, %bb9.i ] - %326 = ptrtoint %struct.edge_rec* %rcand.2.i to i32 + %324 = phi ptr [ %.pre24.i, %bb13.loopexit.i ], [ %176, %bb9.i ] + %325 = phi ptr [ %.pre23.i, %bb13.loopexit.i ], [ %171, %bb9.i ] + %lcand.1.i = phi ptr [ %lcand.0.i, %bb13.loopexit.i ], [ %lcand.2.i, %bb9.i ] + %326 = ptrtoint ptr %rcand.2.i to i32 %327 = add i32 %326, 16 %328 = and i32 %327, 63 %329 = and i32 %326, -64 %330 = or i32 %328, %329 - %331 = inttoptr i32 %330 to %struct.edge_rec* - %332 = getelementptr %struct.edge_rec, %struct.edge_rec* %331, i32 0, i32 1 - %333 = load %struct.edge_rec*, %struct.edge_rec** %332, align 4 - %334 = ptrtoint %struct.edge_rec* %333 to i32 + %331 = inttoptr i32 %330 to ptr + %332 = getelementptr %struct.edge_rec, ptr %331, i32 0, i32 1 + %333 = load ptr, ptr %332, align 4 + %334 = ptrtoint ptr %333 to i32 %335 = add i32 %334, 16 %336 = and i32 %335, 63 %337 = and i32 %334, -64 %338 = or i32 %336, %337 %339 = xor i32 %338, 32 - %340 = inttoptr i32 %339 to %struct.edge_rec* - %341 = getelementptr %struct.edge_rec, %struct.edge_rec* %340, i32 0, i32 0 - %342 = load %struct.VERTEX*, %struct.VERTEX** %341, align 4 - %343 = getelementptr %struct.VERTEX, %struct.VERTEX* %325, i32 0, i32 0, i32 0 - %344 = load double, double* %343, align 4 - %345 = getelementptr %struct.VERTEX, %struct.VERTEX* %325, i32 0, i32 0, i32 1 - %346 = load double, double* %345, align 4 - %347 = getelementptr %struct.VERTEX, %struct.VERTEX* %342, i32 0, i32 0, i32 0 - %348 = load double, double* %347, align 4 - %349 = getelementptr %struct.VERTEX, %struct.VERTEX* %342, i32 0, i32 0, i32 1 - %350 = load double, double* %349, align 4 - %351 = getelementptr %struct.VERTEX, %struct.VERTEX* %324, i32 0, i32 0, i32 0 - %352 = load double, double* %351, align 4 - %353 = getelementptr %struct.VERTEX, %struct.VERTEX* %324, i32 0, i32 0, i32 1 - %354 = load double, double* %353, align 4 + %340 = inttoptr i32 %339 to ptr + %341 = getelementptr %struct.edge_rec, ptr %340, i32 0, i32 0 + %342 = load ptr, ptr %341, align 4 + %343 = getelementptr %struct.VERTEX, ptr %325, i32 0, i32 0, i32 0 + %344 = load double, ptr %343, align 4 + %345 = getelementptr %struct.VERTEX, ptr %325, i32 0, i32 0, i32 1 + %346 = load double, ptr %345, align 4 + %347 = getelementptr %struct.VERTEX, ptr %342, i32 0, i32 0, i32 0 + %348 = load double, ptr %347, align 4 + %349 = getelementptr %struct.VERTEX, ptr %342, i32 0, i32 0, i32 1 + %350 = load double, ptr %349, align 4 + %351 = getelementptr %struct.VERTEX, ptr %324, i32 0, i32 0, i32 0 + %352 = load double, ptr %351, align 4 + %353 = getelementptr %struct.VERTEX, ptr %324, i32 0, i32 0, i32 1 + %354 = load double, ptr %353, align 4 %355 = fsub double %344, %352 %356 = fsub double %350, %354 %357 = fmul double %355, %356 @@ -490,156 +490,156 @@ bb13.i: br i1 %362, label %bb14.i, label %bb17.i bb14.i: - %363 = getelementptr %struct.VERTEX, %struct.VERTEX* %324, i32 0, i32 0, i32 2 - %avail_edge.promoted = load %struct.edge_rec*, %struct.edge_rec** @avail_edge + %363 = getelementptr %struct.VERTEX, ptr %324, i32 0, i32 0, i32 2 + %avail_edge.promoted = load ptr, ptr @avail_edge br label %bb16.i bb15.i: - %364 = ptrtoint %struct.edge_rec* %rcand.0.i to i32 + %364 = ptrtoint ptr %rcand.0.i to i32 %365 = add i32 %364, 16 %366 = and i32 %365, 63 %367 = and i32 %364, -64 %368 = or i32 %366, %367 - %369 = inttoptr i32 %368 to %struct.edge_rec* - %370 = getelementptr %struct.edge_rec, %struct.edge_rec* %369, i32 0, i32 1 - %371 = load %struct.edge_rec*, %struct.edge_rec** %370, align 4 - %372 = ptrtoint %struct.edge_rec* %371 to i32 + %369 = inttoptr i32 %368 to ptr + %370 = getelementptr %struct.edge_rec, ptr %369, i32 0, i32 1 + %371 = load ptr, ptr %370, align 4 + %372 = ptrtoint ptr %371 to i32 %373 = add i32 %372, 16 %374 = and i32 %373, 63 %375 = and i32 %372, -64 %376 = or i32 %374, %375 - %377 = inttoptr i32 %376 to %struct.edge_rec* - %378 = getelementptr %struct.edge_rec, %struct.edge_rec* %rcand.0.i, i32 0, i32 1 - %379 = load %struct.edge_rec*, %struct.edge_rec** %378, align 4 - %380 = ptrtoint %struct.edge_rec* %379 to i32 + %377 = inttoptr i32 %376 to ptr + %378 = getelementptr %struct.edge_rec, ptr %rcand.0.i, i32 0, i32 1 + %379 = load ptr, ptr %378, align 4 + %380 = ptrtoint ptr %379 to i32 %381 = add i32 %380, 16 %382 = and i32 %381, 63 %383 = and i32 %380, -64 %384 = or i32 %382, %383 - %385 = inttoptr i32 %384 to %struct.edge_rec* - %386 = getelementptr %struct.edge_rec, %struct.edge_rec* %377, i32 0, i32 1 - %387 = load %struct.edge_rec*, %struct.edge_rec** %386, align 4 - %388 = ptrtoint %struct.edge_rec* %387 to i32 + %385 = inttoptr i32 %384 to ptr + %386 = getelementptr %struct.edge_rec, ptr %377, i32 0, i32 1 + %387 = load ptr, ptr %386, align 4 + %388 = ptrtoint ptr %387 to i32 %389 = add i32 %388, 16 %390 = and i32 %389, 63 %391 = and i32 %388, -64 %392 = or i32 %390, %391 - %393 = inttoptr i32 %392 to %struct.edge_rec* - %394 = getelementptr %struct.edge_rec, %struct.edge_rec* %393, i32 0, i32 1 - %395 = load %struct.edge_rec*, %struct.edge_rec** %394, align 4 - %396 = getelementptr %struct.edge_rec, %struct.edge_rec* %385, i32 0, i32 1 - %397 = load %struct.edge_rec*, %struct.edge_rec** %396, align 4 - store %struct.edge_rec* %395, %struct.edge_rec** %396, align 4 - store %struct.edge_rec* %397, %struct.edge_rec** %394, align 4 - %398 = load %struct.edge_rec*, %struct.edge_rec** %378, align 4 - %399 = load %struct.edge_rec*, %struct.edge_rec** %386, align 4 - store %struct.edge_rec* %398, %struct.edge_rec** %386, align 4 - store %struct.edge_rec* %399, %struct.edge_rec** %378, align 4 + %393 = inttoptr i32 %392 to ptr + %394 = getelementptr %struct.edge_rec, ptr %393, i32 0, i32 1 + %395 = load ptr, ptr %394, align 4 + %396 = getelementptr %struct.edge_rec, ptr %385, i32 0, i32 1 + %397 = load ptr, ptr %396, align 4 + store ptr %395, ptr %396, align 4 + store ptr %397, ptr %394, align 4 + %398 = load ptr, ptr %378, align 4 + %399 = load ptr, ptr %386, align 4 + store ptr %398, ptr %386, align 4 + store ptr %399, ptr %378, align 4 %400 = xor i32 %364, 32 %401 = add i32 %400, 16 %402 = and i32 %401, 63 %403 = or i32 %402, %367 - %404 = inttoptr i32 %403 to %struct.edge_rec* - %405 = getelementptr %struct.edge_rec, %struct.edge_rec* %404, i32 0, i32 1 - %406 = load %struct.edge_rec*, %struct.edge_rec** %405, align 4 - %407 = ptrtoint %struct.edge_rec* %406 to i32 + %404 = inttoptr i32 %403 to ptr + %405 = getelementptr %struct.edge_rec, ptr %404, i32 0, i32 1 + %406 = load ptr, ptr %405, align 4 + %407 = ptrtoint ptr %406 to i32 %408 = add i32 %407, 16 %409 = and i32 %408, 63 %410 = and i32 %407, -64 %411 = or i32 %409, %410 - %412 = inttoptr i32 %411 to %struct.edge_rec* - %413 = inttoptr i32 %400 to %struct.edge_rec* - %414 = getelementptr %struct.edge_rec, %struct.edge_rec* %413, i32 0, i32 1 - %415 = load %struct.edge_rec*, %struct.edge_rec** %414, align 4 - %416 = ptrtoint %struct.edge_rec* %415 to i32 + %412 = inttoptr i32 %411 to ptr + %413 = inttoptr i32 %400 to ptr + %414 = getelementptr %struct.edge_rec, ptr %413, i32 0, i32 1 + %415 = load ptr, ptr %414, align 4 + %416 = ptrtoint ptr %415 to i32 %417 = add i32 %416, 16 %418 = and i32 %417, 63 %419 = and i32 %416, -64 %420 = or i32 %418, %419 - %421 = inttoptr i32 %420 to %struct.edge_rec* - %422 = getelementptr %struct.edge_rec, %struct.edge_rec* %412, i32 0, i32 1 - %423 = load %struct.edge_rec*, %struct.edge_rec** %422, align 4 - %424 = ptrtoint %struct.edge_rec* %423 to i32 + %421 = inttoptr i32 %420 to ptr + %422 = getelementptr %struct.edge_rec, ptr %412, i32 0, i32 1 + %423 = load ptr, ptr %422, align 4 + %424 = ptrtoint ptr %423 to i32 %425 = add i32 %424, 16 %426 = and i32 %425, 63 %427 = and i32 %424, -64 %428 = or i32 %426, %427 - %429 = inttoptr i32 %428 to %struct.edge_rec* - %430 = getelementptr %struct.edge_rec, %struct.edge_rec* %429, i32 0, i32 1 - %431 = load %struct.edge_rec*, %struct.edge_rec** %430, align 4 - %432 = getelementptr %struct.edge_rec, %struct.edge_rec* %421, i32 0, i32 1 - %433 = load %struct.edge_rec*, %struct.edge_rec** %432, align 4 - store %struct.edge_rec* %431, %struct.edge_rec** %432, align 4 - store %struct.edge_rec* %433, %struct.edge_rec** %430, align 4 - %434 = load %struct.edge_rec*, %struct.edge_rec** %414, align 4 - %435 = load %struct.edge_rec*, %struct.edge_rec** %422, align 4 - store %struct.edge_rec* %434, %struct.edge_rec** %422, align 4 - store %struct.edge_rec* %435, %struct.edge_rec** %414, align 4 - %436 = inttoptr i32 %367 to %struct.edge_rec* - %437 = getelementptr %struct.edge_rec, %struct.edge_rec* %436, i32 0, i32 1 - store %struct.edge_rec* %avail_edge.tmp.0, %struct.edge_rec** %437, align 4 + %429 = inttoptr i32 %428 to ptr + %430 = getelementptr %struct.edge_rec, ptr %429, i32 0, i32 1 + %431 = load ptr, ptr %430, align 4 + %432 = getelementptr %struct.edge_rec, ptr %421, i32 0, i32 1 + %433 = load ptr, ptr %432, align 4 + store ptr %431, ptr %432, align 4 + store ptr %433, ptr %430, align 4 + %434 = load ptr, ptr %414, align 4 + %435 = load ptr, ptr %422, align 4 + store ptr %434, ptr %422, align 4 + store ptr %435, ptr %414, align 4 + %436 = inttoptr i32 %367 to ptr + %437 = getelementptr %struct.edge_rec, ptr %436, i32 0, i32 1 + store ptr %avail_edge.tmp.0, ptr %437, align 4 %438 = add i32 %t.1.in.i, 16 %439 = and i32 %438, 63 %440 = and i32 %t.1.in.i, -64 %441 = or i32 %439, %440 - %442 = inttoptr i32 %441 to %struct.edge_rec* - %443 = getelementptr %struct.edge_rec, %struct.edge_rec* %442, i32 0, i32 1 - %444 = load %struct.edge_rec*, %struct.edge_rec** %443, align 4 - %445 = ptrtoint %struct.edge_rec* %444 to i32 + %442 = inttoptr i32 %441 to ptr + %443 = getelementptr %struct.edge_rec, ptr %442, i32 0, i32 1 + %444 = load ptr, ptr %443, align 4 + %445 = ptrtoint ptr %444 to i32 %446 = add i32 %445, 16 %447 = and i32 %446, 63 %448 = and i32 %445, -64 %449 = or i32 %447, %448 - %.pre25.i = load double, double* %351, align 4 - %.pre26.i = load double, double* %353, align 4 + %.pre25.i = load double, ptr %351, align 4 + %.pre26.i = load double, ptr %353, align 4 br label %bb16.i bb16.i: - %avail_edge.tmp.0 = phi %struct.edge_rec* [ %avail_edge.promoted, %bb14.i ], [ %436, %bb15.i ] + %avail_edge.tmp.0 = phi ptr [ %avail_edge.promoted, %bb14.i ], [ %436, %bb15.i ] %450 = phi double [ %.pre26.i, %bb15.i ], [ %354, %bb14.i ] %451 = phi double [ %.pre25.i, %bb15.i ], [ %352, %bb14.i ] - %rcand.0.i = phi %struct.edge_rec* [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] + %rcand.0.i = phi ptr [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] %t.1.in.i = phi i32 [ %338, %bb14.i ], [ %449, %bb15.i ] %.pn3.in.in.i = phi i32 [ %338, %bb14.i ], [ %449, %bb15.i ] - %.pn.in.in.in.i = phi %struct.edge_rec* [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] - %rcand.2.pn.i = phi %struct.edge_rec* [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] - %t.1.i = inttoptr i32 %t.1.in.i to %struct.edge_rec* - %.pn.in.in.i = ptrtoint %struct.edge_rec* %.pn.in.in.in.i to i32 + %.pn.in.in.in.i = phi ptr [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] + %rcand.2.pn.i = phi ptr [ %rcand.2.i, %bb14.i ], [ %t.1.i, %bb15.i ] + %t.1.i = inttoptr i32 %t.1.in.i to ptr + %.pn.in.in.i = ptrtoint ptr %.pn.in.in.in.i to i32 %.pn3.in.i = xor i32 %.pn3.in.in.i, 32 %.pn.in.i = xor i32 %.pn.in.in.i, 32 - %.pn3.i = inttoptr i32 %.pn3.in.i to %struct.edge_rec* - %.pn.i = inttoptr i32 %.pn.in.i to %struct.edge_rec* - %v1.1.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn3.i, i32 0, i32 0 - %v2.1.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %.pn.i, i32 0, i32 0 - %v3.1.in.i = getelementptr %struct.edge_rec, %struct.edge_rec* %rcand.2.pn.i, i32 0, i32 0 - %v1.1.i = load %struct.VERTEX*, %struct.VERTEX** %v1.1.in.i - %v2.1.i = load %struct.VERTEX*, %struct.VERTEX** %v2.1.in.i - %v3.1.i = load %struct.VERTEX*, %struct.VERTEX** %v3.1.in.i - %452 = load double, double* %363, align 4 - %453 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.1.i, i32 0, i32 0, i32 0 - %454 = load double, double* %453, align 4 + %.pn3.i = inttoptr i32 %.pn3.in.i to ptr + %.pn.i = inttoptr i32 %.pn.in.i to ptr + %v1.1.in.i = getelementptr %struct.edge_rec, ptr %.pn3.i, i32 0, i32 0 + %v2.1.in.i = getelementptr %struct.edge_rec, ptr %.pn.i, i32 0, i32 0 + %v3.1.in.i = getelementptr %struct.edge_rec, ptr %rcand.2.pn.i, i32 0, i32 0 + %v1.1.i = load ptr, ptr %v1.1.in.i + %v2.1.i = load ptr, ptr %v2.1.in.i + %v3.1.i = load ptr, ptr %v3.1.in.i + %452 = load double, ptr %363, align 4 + %453 = getelementptr %struct.VERTEX, ptr %v1.1.i, i32 0, i32 0, i32 0 + %454 = load double, ptr %453, align 4 %455 = fsub double %454, %451 - %456 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.1.i, i32 0, i32 0, i32 1 - %457 = load double, double* %456, align 4 + %456 = getelementptr %struct.VERTEX, ptr %v1.1.i, i32 0, i32 0, i32 1 + %457 = load double, ptr %456, align 4 %458 = fsub double %457, %450 - %459 = getelementptr %struct.VERTEX, %struct.VERTEX* %v1.1.i, i32 0, i32 0, i32 2 - %460 = load double, double* %459, align 4 - %461 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.1.i, i32 0, i32 0, i32 0 - %462 = load double, double* %461, align 4 + %459 = getelementptr %struct.VERTEX, ptr %v1.1.i, i32 0, i32 0, i32 2 + %460 = load double, ptr %459, align 4 + %461 = getelementptr %struct.VERTEX, ptr %v2.1.i, i32 0, i32 0, i32 0 + %462 = load double, ptr %461, align 4 %463 = fsub double %462, %451 - %464 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.1.i, i32 0, i32 0, i32 1 - %465 = load double, double* %464, align 4 + %464 = getelementptr %struct.VERTEX, ptr %v2.1.i, i32 0, i32 0, i32 1 + %465 = load double, ptr %464, align 4 %466 = fsub double %465, %450 - %467 = getelementptr %struct.VERTEX, %struct.VERTEX* %v2.1.i, i32 0, i32 0, i32 2 - %468 = load double, double* %467, align 4 - %469 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.1.i, i32 0, i32 0, i32 0 - %470 = load double, double* %469, align 4 + %467 = getelementptr %struct.VERTEX, ptr %v2.1.i, i32 0, i32 0, i32 2 + %468 = load double, ptr %467, align 4 + %469 = getelementptr %struct.VERTEX, ptr %v3.1.i, i32 0, i32 0, i32 0 + %470 = load double, ptr %469, align 4 %471 = fsub double %470, %451 - %472 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.1.i, i32 0, i32 0, i32 1 - %473 = load double, double* %472, align 4 + %472 = getelementptr %struct.VERTEX, ptr %v3.1.i, i32 0, i32 0, i32 1 + %473 = load double, ptr %472, align 4 %474 = fsub double %473, %450 - %475 = getelementptr %struct.VERTEX, %struct.VERTEX* %v3.1.i, i32 0, i32 0, i32 2 - %476 = load double, double* %475, align 4 + %475 = getelementptr %struct.VERTEX, ptr %v3.1.i, i32 0, i32 0, i32 2 + %476 = load double, ptr %475, align 4 %477 = fsub double %460, %452 %478 = fmul double %463, %474 %479 = fmul double %466, %471 @@ -661,32 +661,32 @@ bb16.i: br i1 %494, label %bb15.i, label %bb17.loopexit.i bb17.loopexit.i: - store %struct.edge_rec* %avail_edge.tmp.0, %struct.edge_rec** @avail_edge - %.pre27.i = load %struct.VERTEX*, %struct.VERTEX** %170, align 4 - %.pre28.i = load %struct.VERTEX*, %struct.VERTEX** %175, align 4 + store ptr %avail_edge.tmp.0, ptr @avail_edge + %.pre27.i = load ptr, ptr %170, align 4 + %.pre28.i = load ptr, ptr %175, align 4 br label %bb17.i bb17.i: - %495 = phi %struct.VERTEX* [ %.pre28.i, %bb17.loopexit.i ], [ %324, %bb13.i ] - %496 = phi %struct.VERTEX* [ %.pre27.i, %bb17.loopexit.i ], [ %325, %bb13.i ] - %rcand.1.i = phi %struct.edge_rec* [ %rcand.0.i, %bb17.loopexit.i ], [ %rcand.2.i, %bb13.i ] - %497 = ptrtoint %struct.edge_rec* %lcand.1.i to i32 + %495 = phi ptr [ %.pre28.i, %bb17.loopexit.i ], [ %324, %bb13.i ] + %496 = phi ptr [ %.pre27.i, %bb17.loopexit.i ], [ %325, %bb13.i ] + %rcand.1.i = phi ptr [ %rcand.0.i, %bb17.loopexit.i ], [ %rcand.2.i, %bb13.i ] + %497 = ptrtoint ptr %lcand.1.i to i32 %498 = xor i32 %497, 32 - %499 = inttoptr i32 %498 to %struct.edge_rec* - %500 = getelementptr %struct.edge_rec, %struct.edge_rec* %499, i32 0, i32 0 - %501 = load %struct.VERTEX*, %struct.VERTEX** %500, align 4 - %502 = getelementptr %struct.VERTEX, %struct.VERTEX* %496, i32 0, i32 0, i32 0 - %503 = load double, double* %502, align 4 - %504 = getelementptr %struct.VERTEX, %struct.VERTEX* %496, i32 0, i32 0, i32 1 - %505 = load double, double* %504, align 4 - %506 = getelementptr %struct.VERTEX, %struct.VERTEX* %501, i32 0, i32 0, i32 0 - %507 = load double, double* %506, align 4 - %508 = getelementptr %struct.VERTEX, %struct.VERTEX* %501, i32 0, i32 0, i32 1 - %509 = load double, double* %508, align 4 - %510 = getelementptr %struct.VERTEX, %struct.VERTEX* %495, i32 0, i32 0, i32 0 - %511 = load double, double* %510, align 4 - %512 = getelementptr %struct.VERTEX, %struct.VERTEX* %495, i32 0, i32 0, i32 1 - %513 = load double, double* %512, align 4 + %499 = inttoptr i32 %498 to ptr + %500 = getelementptr %struct.edge_rec, ptr %499, i32 0, i32 0 + %501 = load ptr, ptr %500, align 4 + %502 = getelementptr %struct.VERTEX, ptr %496, i32 0, i32 0, i32 0 + %503 = load double, ptr %502, align 4 + %504 = getelementptr %struct.VERTEX, ptr %496, i32 0, i32 0, i32 1 + %505 = load double, ptr %504, align 4 + %506 = getelementptr %struct.VERTEX, ptr %501, i32 0, i32 0, i32 0 + %507 = load double, ptr %506, align 4 + %508 = getelementptr %struct.VERTEX, ptr %501, i32 0, i32 0, i32 1 + %509 = load double, ptr %508, align 4 + %510 = getelementptr %struct.VERTEX, ptr %495, i32 0, i32 0, i32 0 + %511 = load double, ptr %510, align 4 + %512 = getelementptr %struct.VERTEX, ptr %495, i32 0, i32 0, i32 1 + %513 = load double, ptr %512, align 4 %514 = fsub double %503, %511 %515 = fsub double %509, %513 %516 = fmul double %514, %515 @@ -695,15 +695,15 @@ bb17.i: %519 = fmul double %517, %518 %520 = fsub double %516, %519 %521 = fcmp ogt double %520, 0.000000e+00 - %522 = ptrtoint %struct.edge_rec* %rcand.1.i to i32 + %522 = ptrtoint ptr %rcand.1.i to i32 %523 = xor i32 %522, 32 - %524 = inttoptr i32 %523 to %struct.edge_rec* - %525 = getelementptr %struct.edge_rec, %struct.edge_rec* %524, i32 0, i32 0 - %526 = load %struct.VERTEX*, %struct.VERTEX** %525, align 4 - %527 = getelementptr %struct.VERTEX, %struct.VERTEX* %526, i32 0, i32 0, i32 0 - %528 = load double, double* %527, align 4 - %529 = getelementptr %struct.VERTEX, %struct.VERTEX* %526, i32 0, i32 0, i32 1 - %530 = load double, double* %529, align 4 + %524 = inttoptr i32 %523 to ptr + %525 = getelementptr %struct.edge_rec, ptr %524, i32 0, i32 0 + %526 = load ptr, ptr %525, align 4 + %527 = getelementptr %struct.VERTEX, ptr %526, i32 0, i32 0, i32 0 + %528 = load double, ptr %527, align 4 + %529 = getelementptr %struct.VERTEX, ptr %526, i32 0, i32 0, i32 1 + %530 = load double, ptr %529, align 4 %531 = fsub double %530, %513 %532 = fmul double %514, %531 %533 = fsub double %528, %511 @@ -714,38 +714,38 @@ bb17.i: br i1 %537, label %bb21.i, label %do_merge.exit bb21.i: - %538 = getelementptr %struct.edge_rec, %struct.edge_rec* %lcand.1.i, i32 0, i32 0 - %539 = load %struct.VERTEX*, %struct.VERTEX** %538, align 4 - %540 = getelementptr %struct.edge_rec, %struct.edge_rec* %rcand.1.i, i32 0, i32 0 - %541 = load %struct.VERTEX*, %struct.VERTEX** %540, align 4 + %538 = getelementptr %struct.edge_rec, ptr %lcand.1.i, i32 0, i32 0 + %539 = load ptr, ptr %538, align 4 + %540 = getelementptr %struct.edge_rec, ptr %rcand.1.i, i32 0, i32 0 + %541 = load ptr, ptr %540, align 4 br i1 %521, label %bb22.i, label %bb24.i bb22.i: br i1 %536, label %bb23.i, label %bb25.i bb23.i: - %542 = getelementptr %struct.VERTEX, %struct.VERTEX* %526, i32 0, i32 0, i32 2 - %543 = load double, double* %542, align 4 + %542 = getelementptr %struct.VERTEX, ptr %526, i32 0, i32 0, i32 2 + %543 = load double, ptr %542, align 4 %544 = fsub double %507, %528 %545 = fsub double %509, %530 - %546 = getelementptr %struct.VERTEX, %struct.VERTEX* %501, i32 0, i32 0, i32 2 - %547 = load double, double* %546, align 4 - %548 = getelementptr %struct.VERTEX, %struct.VERTEX* %539, i32 0, i32 0, i32 0 - %549 = load double, double* %548, align 4 + %546 = getelementptr %struct.VERTEX, ptr %501, i32 0, i32 0, i32 2 + %547 = load double, ptr %546, align 4 + %548 = getelementptr %struct.VERTEX, ptr %539, i32 0, i32 0, i32 0 + %549 = load double, ptr %548, align 4 %550 = fsub double %549, %528 - %551 = getelementptr %struct.VERTEX, %struct.VERTEX* %539, i32 0, i32 0, i32 1 - %552 = load double, double* %551, align 4 + %551 = getelementptr %struct.VERTEX, ptr %539, i32 0, i32 0, i32 1 + %552 = load double, ptr %551, align 4 %553 = fsub double %552, %530 - %554 = getelementptr %struct.VERTEX, %struct.VERTEX* %539, i32 0, i32 0, i32 2 - %555 = load double, double* %554, align 4 - %556 = getelementptr %struct.VERTEX, %struct.VERTEX* %541, i32 0, i32 0, i32 0 - %557 = load double, double* %556, align 4 + %554 = getelementptr %struct.VERTEX, ptr %539, i32 0, i32 0, i32 2 + %555 = load double, ptr %554, align 4 + %556 = getelementptr %struct.VERTEX, ptr %541, i32 0, i32 0, i32 0 + %557 = load double, ptr %556, align 4 %558 = fsub double %557, %528 - %559 = getelementptr %struct.VERTEX, %struct.VERTEX* %541, i32 0, i32 0, i32 1 - %560 = load double, double* %559, align 4 + %559 = getelementptr %struct.VERTEX, ptr %541, i32 0, i32 0, i32 1 + %560 = load double, ptr %559, align 4 %561 = fsub double %560, %530 - %562 = getelementptr %struct.VERTEX, %struct.VERTEX* %541, i32 0, i32 0, i32 2 - %563 = load double, double* %562, align 4 + %562 = getelementptr %struct.VERTEX, ptr %541, i32 0, i32 0, i32 2 + %563 = load double, ptr %562, align 4 %564 = fsub double %547, %543 %565 = fmul double %550, %561 %566 = fmul double %553, %558 @@ -771,101 +771,101 @@ bb24.i: %583 = and i32 %582, 63 %584 = and i32 %522, -64 %585 = or i32 %583, %584 - %586 = inttoptr i32 %585 to %struct.edge_rec* - %587 = getelementptr %struct.edge_rec, %struct.edge_rec* %586, i32 0, i32 1 - %588 = load %struct.edge_rec*, %struct.edge_rec** %587, align 4 - %589 = ptrtoint %struct.edge_rec* %588 to i32 + %586 = inttoptr i32 %585 to ptr + %587 = getelementptr %struct.edge_rec, ptr %586, i32 0, i32 1 + %588 = load ptr, ptr %587, align 4 + %589 = ptrtoint ptr %588 to i32 %590 = add i32 %589, 16 %591 = and i32 %590, 63 %592 = and i32 %589, -64 %593 = or i32 %591, %592 - %594 = inttoptr i32 %593 to %struct.edge_rec* - %595 = call %struct.edge_rec* @alloc_edge() nounwind - %596 = getelementptr %struct.edge_rec, %struct.edge_rec* %595, i32 0, i32 1 - store %struct.edge_rec* %595, %struct.edge_rec** %596, align 4 - %597 = getelementptr %struct.edge_rec, %struct.edge_rec* %595, i32 0, i32 0 - store %struct.VERTEX* %526, %struct.VERTEX** %597, align 4 - %598 = ptrtoint %struct.edge_rec* %595 to i32 + %594 = inttoptr i32 %593 to ptr + %595 = call ptr @alloc_edge() nounwind + %596 = getelementptr %struct.edge_rec, ptr %595, i32 0, i32 1 + store ptr %595, ptr %596, align 4 + %597 = getelementptr %struct.edge_rec, ptr %595, i32 0, i32 0 + store ptr %526, ptr %597, align 4 + %598 = ptrtoint ptr %595 to i32 %599 = add i32 %598, 16 - %600 = inttoptr i32 %599 to %struct.edge_rec* + %600 = inttoptr i32 %599 to ptr %601 = add i32 %598, 48 - %602 = inttoptr i32 %601 to %struct.edge_rec* - %603 = getelementptr %struct.edge_rec, %struct.edge_rec* %600, i32 0, i32 1 - store %struct.edge_rec* %602, %struct.edge_rec** %603, align 4 + %602 = inttoptr i32 %601 to ptr + %603 = getelementptr %struct.edge_rec, ptr %600, i32 0, i32 1 + store ptr %602, ptr %603, align 4 %604 = add i32 %598, 32 - %605 = inttoptr i32 %604 to %struct.edge_rec* - %606 = getelementptr %struct.edge_rec, %struct.edge_rec* %605, i32 0, i32 1 - store %struct.edge_rec* %605, %struct.edge_rec** %606, align 4 - %607 = getelementptr %struct.edge_rec, %struct.edge_rec* %605, i32 0, i32 0 - store %struct.VERTEX* %495, %struct.VERTEX** %607, align 4 - %608 = getelementptr %struct.edge_rec, %struct.edge_rec* %602, i32 0, i32 1 - store %struct.edge_rec* %600, %struct.edge_rec** %608, align 4 - %609 = load %struct.edge_rec*, %struct.edge_rec** %596, align 4 - %610 = ptrtoint %struct.edge_rec* %609 to i32 + %605 = inttoptr i32 %604 to ptr + %606 = getelementptr %struct.edge_rec, ptr %605, i32 0, i32 1 + store ptr %605, ptr %606, align 4 + %607 = getelementptr %struct.edge_rec, ptr %605, i32 0, i32 0 + store ptr %495, ptr %607, align 4 + %608 = getelementptr %struct.edge_rec, ptr %602, i32 0, i32 1 + store ptr %600, ptr %608, align 4 + %609 = load ptr, ptr %596, align 4 + %610 = ptrtoint ptr %609 to i32 %611 = add i32 %610, 16 %612 = and i32 %611, 63 %613 = and i32 %610, -64 %614 = or i32 %612, %613 - %615 = inttoptr i32 %614 to %struct.edge_rec* - %616 = getelementptr %struct.edge_rec, %struct.edge_rec* %594, i32 0, i32 1 - %617 = load %struct.edge_rec*, %struct.edge_rec** %616, align 4 - %618 = ptrtoint %struct.edge_rec* %617 to i32 + %615 = inttoptr i32 %614 to ptr + %616 = getelementptr %struct.edge_rec, ptr %594, i32 0, i32 1 + %617 = load ptr, ptr %616, align 4 + %618 = ptrtoint ptr %617 to i32 %619 = add i32 %618, 16 %620 = and i32 %619, 63 %621 = and i32 %618, -64 %622 = or i32 %620, %621 - %623 = inttoptr i32 %622 to %struct.edge_rec* - %624 = getelementptr %struct.edge_rec, %struct.edge_rec* %623, i32 0, i32 1 - %625 = load %struct.edge_rec*, %struct.edge_rec** %624, align 4 - %626 = getelementptr %struct.edge_rec, %struct.edge_rec* %615, i32 0, i32 1 - %627 = load %struct.edge_rec*, %struct.edge_rec** %626, align 4 - store %struct.edge_rec* %625, %struct.edge_rec** %626, align 4 - store %struct.edge_rec* %627, %struct.edge_rec** %624, align 4 - %628 = load %struct.edge_rec*, %struct.edge_rec** %596, align 4 - %629 = load %struct.edge_rec*, %struct.edge_rec** %616, align 4 - store %struct.edge_rec* %628, %struct.edge_rec** %616, align 4 - store %struct.edge_rec* %629, %struct.edge_rec** %596, align 4 + %623 = inttoptr i32 %622 to ptr + %624 = getelementptr %struct.edge_rec, ptr %623, i32 0, i32 1 + %625 = load ptr, ptr %624, align 4 + %626 = getelementptr %struct.edge_rec, ptr %615, i32 0, i32 1 + %627 = load ptr, ptr %626, align 4 + store ptr %625, ptr %626, align 4 + store ptr %627, ptr %624, align 4 + %628 = load ptr, ptr %596, align 4 + %629 = load ptr, ptr %616, align 4 + store ptr %628, ptr %616, align 4 + store ptr %629, ptr %596, align 4 %630 = xor i32 %598, 32 - %631 = inttoptr i32 %630 to %struct.edge_rec* - %632 = getelementptr %struct.edge_rec, %struct.edge_rec* %631, i32 0, i32 1 - %633 = load %struct.edge_rec*, %struct.edge_rec** %632, align 4 - %634 = ptrtoint %struct.edge_rec* %633 to i32 + %631 = inttoptr i32 %630 to ptr + %632 = getelementptr %struct.edge_rec, ptr %631, i32 0, i32 1 + %633 = load ptr, ptr %632, align 4 + %634 = ptrtoint ptr %633 to i32 %635 = add i32 %634, 16 %636 = and i32 %635, 63 %637 = and i32 %634, -64 %638 = or i32 %636, %637 - %639 = inttoptr i32 %638 to %struct.edge_rec* - %640 = getelementptr %struct.edge_rec, %struct.edge_rec* %174, i32 0, i32 1 - %641 = load %struct.edge_rec*, %struct.edge_rec** %640, align 4 - %642 = ptrtoint %struct.edge_rec* %641 to i32 + %639 = inttoptr i32 %638 to ptr + %640 = getelementptr %struct.edge_rec, ptr %174, i32 0, i32 1 + %641 = load ptr, ptr %640, align 4 + %642 = ptrtoint ptr %641 to i32 %643 = add i32 %642, 16 %644 = and i32 %643, 63 %645 = and i32 %642, -64 %646 = or i32 %644, %645 - %647 = inttoptr i32 %646 to %struct.edge_rec* - %648 = getelementptr %struct.edge_rec, %struct.edge_rec* %647, i32 0, i32 1 - %649 = load %struct.edge_rec*, %struct.edge_rec** %648, align 4 - %650 = getelementptr %struct.edge_rec, %struct.edge_rec* %639, i32 0, i32 1 - %651 = load %struct.edge_rec*, %struct.edge_rec** %650, align 4 - store %struct.edge_rec* %649, %struct.edge_rec** %650, align 4 - store %struct.edge_rec* %651, %struct.edge_rec** %648, align 4 - %652 = load %struct.edge_rec*, %struct.edge_rec** %632, align 4 - %653 = load %struct.edge_rec*, %struct.edge_rec** %640, align 4 - store %struct.edge_rec* %652, %struct.edge_rec** %640, align 4 - store %struct.edge_rec* %653, %struct.edge_rec** %632, align 4 + %647 = inttoptr i32 %646 to ptr + %648 = getelementptr %struct.edge_rec, ptr %647, i32 0, i32 1 + %649 = load ptr, ptr %648, align 4 + %650 = getelementptr %struct.edge_rec, ptr %639, i32 0, i32 1 + %651 = load ptr, ptr %650, align 4 + store ptr %649, ptr %650, align 4 + store ptr %651, ptr %648, align 4 + %652 = load ptr, ptr %632, align 4 + %653 = load ptr, ptr %640, align 4 + store ptr %652, ptr %640, align 4 + store ptr %653, ptr %632, align 4 %654 = add i32 %630, 48 %655 = and i32 %654, 63 %656 = and i32 %598, -64 %657 = or i32 %655, %656 - %658 = inttoptr i32 %657 to %struct.edge_rec* - %659 = getelementptr %struct.edge_rec, %struct.edge_rec* %658, i32 0, i32 1 - %660 = load %struct.edge_rec*, %struct.edge_rec** %659, align 4 - %661 = ptrtoint %struct.edge_rec* %660 to i32 + %658 = inttoptr i32 %657 to ptr + %659 = getelementptr %struct.edge_rec, ptr %658, i32 0, i32 1 + %660 = load ptr, ptr %659, align 4 + %661 = ptrtoint ptr %660 to i32 %662 = add i32 %661, 16 %663 = and i32 %662, 63 %664 = and i32 %661, -64 %665 = or i32 %663, %664 - %666 = inttoptr i32 %665 to %struct.edge_rec* + %666 = inttoptr i32 %665 to ptr br label %bb9.i bb25.i: @@ -873,334 +873,334 @@ bb25.i: %668 = and i32 %667, 63 %669 = and i32 %172, -64 %670 = or i32 %668, %669 - %671 = inttoptr i32 %670 to %struct.edge_rec* - %672 = getelementptr %struct.edge_rec, %struct.edge_rec* %671, i32 0, i32 1 - %673 = load %struct.edge_rec*, %struct.edge_rec** %672, align 4 - %674 = ptrtoint %struct.edge_rec* %673 to i32 + %671 = inttoptr i32 %670 to ptr + %672 = getelementptr %struct.edge_rec, ptr %671, i32 0, i32 1 + %673 = load ptr, ptr %672, align 4 + %674 = ptrtoint ptr %673 to i32 %675 = add i32 %674, 16 %676 = and i32 %675, 63 %677 = and i32 %674, -64 %678 = or i32 %676, %677 - %679 = inttoptr i32 %678 to %struct.edge_rec* - %680 = call %struct.edge_rec* @alloc_edge() nounwind - %681 = getelementptr %struct.edge_rec, %struct.edge_rec* %680, i32 0, i32 1 - store %struct.edge_rec* %680, %struct.edge_rec** %681, align 4 - %682 = getelementptr %struct.edge_rec, %struct.edge_rec* %680, i32 0, i32 0 - store %struct.VERTEX* %501, %struct.VERTEX** %682, align 4 - %683 = ptrtoint %struct.edge_rec* %680 to i32 + %679 = inttoptr i32 %678 to ptr + %680 = call ptr @alloc_edge() nounwind + %681 = getelementptr %struct.edge_rec, ptr %680, i32 0, i32 1 + store ptr %680, ptr %681, align 4 + %682 = getelementptr %struct.edge_rec, ptr %680, i32 0, i32 0 + store ptr %501, ptr %682, align 4 + %683 = ptrtoint ptr %680 to i32 %684 = add i32 %683, 16 - %685 = inttoptr i32 %684 to %struct.edge_rec* + %685 = inttoptr i32 %684 to ptr %686 = add i32 %683, 48 - %687 = inttoptr i32 %686 to %struct.edge_rec* - %688 = getelementptr %struct.edge_rec, %struct.edge_rec* %685, i32 0, i32 1 - store %struct.edge_rec* %687, %struct.edge_rec** %688, align 4 + %687 = inttoptr i32 %686 to ptr + %688 = getelementptr %struct.edge_rec, ptr %685, i32 0, i32 1 + store ptr %687, ptr %688, align 4 %689 = add i32 %683, 32 - %690 = inttoptr i32 %689 to %struct.edge_rec* - %691 = getelementptr %struct.edge_rec, %struct.edge_rec* %690, i32 0, i32 1 - store %struct.edge_rec* %690, %struct.edge_rec** %691, align 4 - %692 = getelementptr %struct.edge_rec, %struct.edge_rec* %690, i32 0, i32 0 - store %struct.VERTEX* %496, %struct.VERTEX** %692, align 4 - %693 = getelementptr %struct.edge_rec, %struct.edge_rec* %687, i32 0, i32 1 - store %struct.edge_rec* %685, %struct.edge_rec** %693, align 4 - %694 = load %struct.edge_rec*, %struct.edge_rec** %681, align 4 - %695 = ptrtoint %struct.edge_rec* %694 to i32 + %690 = inttoptr i32 %689 to ptr + %691 = getelementptr %struct.edge_rec, ptr %690, i32 0, i32 1 + store ptr %690, ptr %691, align 4 + %692 = getelementptr %struct.edge_rec, ptr %690, i32 0, i32 0 + store ptr %496, ptr %692, align 4 + %693 = getelementptr %struct.edge_rec, ptr %687, i32 0, i32 1 + store ptr %685, ptr %693, align 4 + %694 = load ptr, ptr %681, align 4 + %695 = ptrtoint ptr %694 to i32 %696 = add i32 %695, 16 %697 = and i32 %696, 63 %698 = and i32 %695, -64 %699 = or i32 %697, %698 - %700 = inttoptr i32 %699 to %struct.edge_rec* - %701 = getelementptr %struct.edge_rec, %struct.edge_rec* %499, i32 0, i32 1 - %702 = load %struct.edge_rec*, %struct.edge_rec** %701, align 4 - %703 = ptrtoint %struct.edge_rec* %702 to i32 + %700 = inttoptr i32 %699 to ptr + %701 = getelementptr %struct.edge_rec, ptr %499, i32 0, i32 1 + %702 = load ptr, ptr %701, align 4 + %703 = ptrtoint ptr %702 to i32 %704 = add i32 %703, 16 %705 = and i32 %704, 63 %706 = and i32 %703, -64 %707 = or i32 %705, %706 - %708 = inttoptr i32 %707 to %struct.edge_rec* - %709 = getelementptr %struct.edge_rec, %struct.edge_rec* %708, i32 0, i32 1 - %710 = load %struct.edge_rec*, %struct.edge_rec** %709, align 4 - %711 = getelementptr %struct.edge_rec, %struct.edge_rec* %700, i32 0, i32 1 - %712 = load %struct.edge_rec*, %struct.edge_rec** %711, align 4 - store %struct.edge_rec* %710, %struct.edge_rec** %711, align 4 - store %struct.edge_rec* %712, %struct.edge_rec** %709, align 4 - %713 = load %struct.edge_rec*, %struct.edge_rec** %681, align 4 - %714 = load %struct.edge_rec*, %struct.edge_rec** %701, align 4 - store %struct.edge_rec* %713, %struct.edge_rec** %701, align 4 - store %struct.edge_rec* %714, %struct.edge_rec** %681, align 4 + %708 = inttoptr i32 %707 to ptr + %709 = getelementptr %struct.edge_rec, ptr %708, i32 0, i32 1 + %710 = load ptr, ptr %709, align 4 + %711 = getelementptr %struct.edge_rec, ptr %700, i32 0, i32 1 + %712 = load ptr, ptr %711, align 4 + store ptr %710, ptr %711, align 4 + store ptr %712, ptr %709, align 4 + %713 = load ptr, ptr %681, align 4 + %714 = load ptr, ptr %701, align 4 + store ptr %713, ptr %701, align 4 + store ptr %714, ptr %681, align 4 %715 = xor i32 %683, 32 - %716 = inttoptr i32 %715 to %struct.edge_rec* - %717 = getelementptr %struct.edge_rec, %struct.edge_rec* %716, i32 0, i32 1 - %718 = load %struct.edge_rec*, %struct.edge_rec** %717, align 4 - %719 = ptrtoint %struct.edge_rec* %718 to i32 + %716 = inttoptr i32 %715 to ptr + %717 = getelementptr %struct.edge_rec, ptr %716, i32 0, i32 1 + %718 = load ptr, ptr %717, align 4 + %719 = ptrtoint ptr %718 to i32 %720 = add i32 %719, 16 %721 = and i32 %720, 63 %722 = and i32 %719, -64 %723 = or i32 %721, %722 - %724 = inttoptr i32 %723 to %struct.edge_rec* - %725 = getelementptr %struct.edge_rec, %struct.edge_rec* %679, i32 0, i32 1 - %726 = load %struct.edge_rec*, %struct.edge_rec** %725, align 4 - %727 = ptrtoint %struct.edge_rec* %726 to i32 + %724 = inttoptr i32 %723 to ptr + %725 = getelementptr %struct.edge_rec, ptr %679, i32 0, i32 1 + %726 = load ptr, ptr %725, align 4 + %727 = ptrtoint ptr %726 to i32 %728 = add i32 %727, 16 %729 = and i32 %728, 63 %730 = and i32 %727, -64 %731 = or i32 %729, %730 - %732 = inttoptr i32 %731 to %struct.edge_rec* - %733 = getelementptr %struct.edge_rec, %struct.edge_rec* %732, i32 0, i32 1 - %734 = load %struct.edge_rec*, %struct.edge_rec** %733, align 4 - %735 = getelementptr %struct.edge_rec, %struct.edge_rec* %724, i32 0, i32 1 - %736 = load %struct.edge_rec*, %struct.edge_rec** %735, align 4 - store %struct.edge_rec* %734, %struct.edge_rec** %735, align 4 - store %struct.edge_rec* %736, %struct.edge_rec** %733, align 4 - %737 = load %struct.edge_rec*, %struct.edge_rec** %717, align 4 - %738 = load %struct.edge_rec*, %struct.edge_rec** %725, align 4 - store %struct.edge_rec* %737, %struct.edge_rec** %725, align 4 - store %struct.edge_rec* %738, %struct.edge_rec** %717, align 4 - %739 = load %struct.edge_rec*, %struct.edge_rec** %681, align 4 + %732 = inttoptr i32 %731 to ptr + %733 = getelementptr %struct.edge_rec, ptr %732, i32 0, i32 1 + %734 = load ptr, ptr %733, align 4 + %735 = getelementptr %struct.edge_rec, ptr %724, i32 0, i32 1 + %736 = load ptr, ptr %735, align 4 + store ptr %734, ptr %735, align 4 + store ptr %736, ptr %733, align 4 + %737 = load ptr, ptr %717, align 4 + %738 = load ptr, ptr %725, align 4 + store ptr %737, ptr %725, align 4 + store ptr %738, ptr %717, align 4 + %739 = load ptr, ptr %681, align 4 br label %bb9.i do_merge.exit: - %740 = getelementptr %struct.edge_rec, %struct.edge_rec* %ldo_addr.0.ph.i, i32 0, i32 0 - %741 = load %struct.VERTEX*, %struct.VERTEX** %740, align 4 - %742 = icmp eq %struct.VERTEX* %741, %tree_addr.0.i + %740 = getelementptr %struct.edge_rec, ptr %ldo_addr.0.ph.i, i32 0, i32 0 + %741 = load ptr, ptr %740, align 4 + %742 = icmp eq ptr %741, %tree_addr.0.i br i1 %742, label %bb5.loopexit, label %bb2 bb2: - %ldo.07 = phi %struct.edge_rec* [ %747, %bb2 ], [ %ldo_addr.0.ph.i, %do_merge.exit ] - %743 = ptrtoint %struct.edge_rec* %ldo.07 to i32 + %ldo.07 = phi ptr [ %747, %bb2 ], [ %ldo_addr.0.ph.i, %do_merge.exit ] + %743 = ptrtoint ptr %ldo.07 to i32 %744 = xor i32 %743, 32 - %745 = inttoptr i32 %744 to %struct.edge_rec* - %746 = getelementptr %struct.edge_rec, %struct.edge_rec* %745, i32 0, i32 1 - %747 = load %struct.edge_rec*, %struct.edge_rec** %746, align 4 - %748 = getelementptr %struct.edge_rec, %struct.edge_rec* %747, i32 0, i32 0 - %749 = load %struct.VERTEX*, %struct.VERTEX** %748, align 4 - %750 = icmp eq %struct.VERTEX* %749, %tree_addr.0.i + %745 = inttoptr i32 %744 to ptr + %746 = getelementptr %struct.edge_rec, ptr %745, i32 0, i32 1 + %747 = load ptr, ptr %746, align 4 + %748 = getelementptr %struct.edge_rec, ptr %747, i32 0, i32 0 + %749 = load ptr, ptr %748, align 4 + %750 = icmp eq ptr %749, %tree_addr.0.i br i1 %750, label %bb5.loopexit, label %bb2 bb4: - %rdo.05 = phi %struct.edge_rec* [ %755, %bb4 ], [ %rdo_addr.0.i, %bb5.loopexit ] - %751 = getelementptr %struct.edge_rec, %struct.edge_rec* %rdo.05, i32 0, i32 1 - %752 = load %struct.edge_rec*, %struct.edge_rec** %751, align 4 - %753 = ptrtoint %struct.edge_rec* %752 to i32 + %rdo.05 = phi ptr [ %755, %bb4 ], [ %rdo_addr.0.i, %bb5.loopexit ] + %751 = getelementptr %struct.edge_rec, ptr %rdo.05, i32 0, i32 1 + %752 = load ptr, ptr %751, align 4 + %753 = ptrtoint ptr %752 to i32 %754 = xor i32 %753, 32 - %755 = inttoptr i32 %754 to %struct.edge_rec* - %756 = getelementptr %struct.edge_rec, %struct.edge_rec* %755, i32 0, i32 0 - %757 = load %struct.VERTEX*, %struct.VERTEX** %756, align 4 - %758 = icmp eq %struct.VERTEX* %757, %extra + %755 = inttoptr i32 %754 to ptr + %756 = getelementptr %struct.edge_rec, ptr %755, i32 0, i32 0 + %757 = load ptr, ptr %756, align 4 + %758 = icmp eq ptr %757, %extra br i1 %758, label %bb6, label %bb4 bb5.loopexit: - %ldo.0.lcssa = phi %struct.edge_rec* [ %ldo_addr.0.ph.i, %do_merge.exit ], [ %747, %bb2 ] - %759 = getelementptr %struct.edge_rec, %struct.edge_rec* %rdo_addr.0.i, i32 0, i32 0 - %760 = load %struct.VERTEX*, %struct.VERTEX** %759, align 4 - %761 = icmp eq %struct.VERTEX* %760, %extra + %ldo.0.lcssa = phi ptr [ %ldo_addr.0.ph.i, %do_merge.exit ], [ %747, %bb2 ] + %759 = getelementptr %struct.edge_rec, ptr %rdo_addr.0.i, i32 0, i32 0 + %760 = load ptr, ptr %759, align 4 + %761 = icmp eq ptr %760, %extra br i1 %761, label %bb6, label %bb4 bb6: - %rdo.0.lcssa = phi %struct.edge_rec* [ %rdo_addr.0.i, %bb5.loopexit ], [ %755, %bb4 ] - %tmp16 = ptrtoint %struct.edge_rec* %ldo.0.lcssa to i32 - %tmp4 = ptrtoint %struct.edge_rec* %rdo.0.lcssa to i32 + %rdo.0.lcssa = phi ptr [ %rdo_addr.0.i, %bb5.loopexit ], [ %755, %bb4 ] + %tmp16 = ptrtoint ptr %ldo.0.lcssa to i32 + %tmp4 = ptrtoint ptr %rdo.0.lcssa to i32 br label %bb15 bb7: - %762 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 1 - %763 = load %struct.VERTEX*, %struct.VERTEX** %762, align 4 - %764 = icmp eq %struct.VERTEX* %763, null - %765 = call %struct.edge_rec* @alloc_edge() nounwind - %766 = getelementptr %struct.edge_rec, %struct.edge_rec* %765, i32 0, i32 1 - store %struct.edge_rec* %765, %struct.edge_rec** %766, align 4 - %767 = getelementptr %struct.edge_rec, %struct.edge_rec* %765, i32 0, i32 0 + %762 = getelementptr %struct.VERTEX, ptr %tree, i32 0, i32 1 + %763 = load ptr, ptr %762, align 4 + %764 = icmp eq ptr %763, null + %765 = call ptr @alloc_edge() nounwind + %766 = getelementptr %struct.edge_rec, ptr %765, i32 0, i32 1 + store ptr %765, ptr %766, align 4 + %767 = getelementptr %struct.edge_rec, ptr %765, i32 0, i32 0 br i1 %764, label %bb10, label %bb11 bb8: - %768 = call i32 @puts(i8* getelementptr ([21 x i8], [21 x i8]* @_2E_str7, i32 0, i32 0)) nounwind + %768 = call i32 @puts(ptr @_2E_str7) nounwind call void @exit(i32 -1) noreturn nounwind unreachable bb10: - store %struct.VERTEX* %tree, %struct.VERTEX** %767, align 4 - %769 = ptrtoint %struct.edge_rec* %765 to i32 + store ptr %tree, ptr %767, align 4 + %769 = ptrtoint ptr %765 to i32 %770 = add i32 %769, 16 - %771 = inttoptr i32 %770 to %struct.edge_rec* + %771 = inttoptr i32 %770 to ptr %772 = add i32 %769, 48 - %773 = inttoptr i32 %772 to %struct.edge_rec* - %774 = getelementptr %struct.edge_rec, %struct.edge_rec* %771, i32 0, i32 1 - store %struct.edge_rec* %773, %struct.edge_rec** %774, align 4 + %773 = inttoptr i32 %772 to ptr + %774 = getelementptr %struct.edge_rec, ptr %771, i32 0, i32 1 + store ptr %773, ptr %774, align 4 %775 = add i32 %769, 32 - %776 = inttoptr i32 %775 to %struct.edge_rec* - %777 = getelementptr %struct.edge_rec, %struct.edge_rec* %776, i32 0, i32 1 - store %struct.edge_rec* %776, %struct.edge_rec** %777, align 4 - %778 = getelementptr %struct.edge_rec, %struct.edge_rec* %776, i32 0, i32 0 - store %struct.VERTEX* %extra, %struct.VERTEX** %778, align 4 - %779 = getelementptr %struct.edge_rec, %struct.edge_rec* %773, i32 0, i32 1 - store %struct.edge_rec* %771, %struct.edge_rec** %779, align 4 + %776 = inttoptr i32 %775 to ptr + %777 = getelementptr %struct.edge_rec, ptr %776, i32 0, i32 1 + store ptr %776, ptr %777, align 4 + %778 = getelementptr %struct.edge_rec, ptr %776, i32 0, i32 0 + store ptr %extra, ptr %778, align 4 + %779 = getelementptr %struct.edge_rec, ptr %773, i32 0, i32 1 + store ptr %771, ptr %779, align 4 %780 = xor i32 %769, 32 br label %bb15 bb11: - store %struct.VERTEX* %763, %struct.VERTEX** %767, align 4 - %781 = ptrtoint %struct.edge_rec* %765 to i32 + store ptr %763, ptr %767, align 4 + %781 = ptrtoint ptr %765 to i32 %782 = add i32 %781, 16 - %783 = inttoptr i32 %782 to %struct.edge_rec* + %783 = inttoptr i32 %782 to ptr %784 = add i32 %781, 48 - %785 = inttoptr i32 %784 to %struct.edge_rec* - %786 = getelementptr %struct.edge_rec, %struct.edge_rec* %783, i32 0, i32 1 - store %struct.edge_rec* %785, %struct.edge_rec** %786, align 4 + %785 = inttoptr i32 %784 to ptr + %786 = getelementptr %struct.edge_rec, ptr %783, i32 0, i32 1 + store ptr %785, ptr %786, align 4 %787 = add i32 %781, 32 - %788 = inttoptr i32 %787 to %struct.edge_rec* - %789 = getelementptr %struct.edge_rec, %struct.edge_rec* %788, i32 0, i32 1 - store %struct.edge_rec* %788, %struct.edge_rec** %789, align 4 - %790 = getelementptr %struct.edge_rec, %struct.edge_rec* %788, i32 0, i32 0 - store %struct.VERTEX* %tree, %struct.VERTEX** %790, align 4 - %791 = getelementptr %struct.edge_rec, %struct.edge_rec* %785, i32 0, i32 1 - store %struct.edge_rec* %783, %struct.edge_rec** %791, align 4 - %792 = call %struct.edge_rec* @alloc_edge() nounwind - %793 = getelementptr %struct.edge_rec, %struct.edge_rec* %792, i32 0, i32 1 - store %struct.edge_rec* %792, %struct.edge_rec** %793, align 4 - %794 = getelementptr %struct.edge_rec, %struct.edge_rec* %792, i32 0, i32 0 - store %struct.VERTEX* %tree, %struct.VERTEX** %794, align 4 - %795 = ptrtoint %struct.edge_rec* %792 to i32 + %788 = inttoptr i32 %787 to ptr + %789 = getelementptr %struct.edge_rec, ptr %788, i32 0, i32 1 + store ptr %788, ptr %789, align 4 + %790 = getelementptr %struct.edge_rec, ptr %788, i32 0, i32 0 + store ptr %tree, ptr %790, align 4 + %791 = getelementptr %struct.edge_rec, ptr %785, i32 0, i32 1 + store ptr %783, ptr %791, align 4 + %792 = call ptr @alloc_edge() nounwind + %793 = getelementptr %struct.edge_rec, ptr %792, i32 0, i32 1 + store ptr %792, ptr %793, align 4 + %794 = getelementptr %struct.edge_rec, ptr %792, i32 0, i32 0 + store ptr %tree, ptr %794, align 4 + %795 = ptrtoint ptr %792 to i32 %796 = add i32 %795, 16 - %797 = inttoptr i32 %796 to %struct.edge_rec* + %797 = inttoptr i32 %796 to ptr %798 = add i32 %795, 48 - %799 = inttoptr i32 %798 to %struct.edge_rec* - %800 = getelementptr %struct.edge_rec, %struct.edge_rec* %797, i32 0, i32 1 - store %struct.edge_rec* %799, %struct.edge_rec** %800, align 4 + %799 = inttoptr i32 %798 to ptr + %800 = getelementptr %struct.edge_rec, ptr %797, i32 0, i32 1 + store ptr %799, ptr %800, align 4 %801 = add i32 %795, 32 - %802 = inttoptr i32 %801 to %struct.edge_rec* - %803 = getelementptr %struct.edge_rec, %struct.edge_rec* %802, i32 0, i32 1 - store %struct.edge_rec* %802, %struct.edge_rec** %803, align 4 - %804 = getelementptr %struct.edge_rec, %struct.edge_rec* %802, i32 0, i32 0 - store %struct.VERTEX* %extra, %struct.VERTEX** %804, align 4 - %805 = getelementptr %struct.edge_rec, %struct.edge_rec* %799, i32 0, i32 1 - store %struct.edge_rec* %797, %struct.edge_rec** %805, align 4 + %802 = inttoptr i32 %801 to ptr + %803 = getelementptr %struct.edge_rec, ptr %802, i32 0, i32 1 + store ptr %802, ptr %803, align 4 + %804 = getelementptr %struct.edge_rec, ptr %802, i32 0, i32 0 + store ptr %extra, ptr %804, align 4 + %805 = getelementptr %struct.edge_rec, ptr %799, i32 0, i32 1 + store ptr %797, ptr %805, align 4 %806 = xor i32 %781, 32 - %807 = inttoptr i32 %806 to %struct.edge_rec* - %808 = getelementptr %struct.edge_rec, %struct.edge_rec* %807, i32 0, i32 1 - %809 = load %struct.edge_rec*, %struct.edge_rec** %808, align 4 - %810 = ptrtoint %struct.edge_rec* %809 to i32 + %807 = inttoptr i32 %806 to ptr + %808 = getelementptr %struct.edge_rec, ptr %807, i32 0, i32 1 + %809 = load ptr, ptr %808, align 4 + %810 = ptrtoint ptr %809 to i32 %811 = add i32 %810, 16 %812 = and i32 %811, 63 %813 = and i32 %810, -64 %814 = or i32 %812, %813 - %815 = inttoptr i32 %814 to %struct.edge_rec* - %816 = load %struct.edge_rec*, %struct.edge_rec** %793, align 4 - %817 = ptrtoint %struct.edge_rec* %816 to i32 + %815 = inttoptr i32 %814 to ptr + %816 = load ptr, ptr %793, align 4 + %817 = ptrtoint ptr %816 to i32 %818 = add i32 %817, 16 %819 = and i32 %818, 63 %820 = and i32 %817, -64 %821 = or i32 %819, %820 - %822 = inttoptr i32 %821 to %struct.edge_rec* - %823 = getelementptr %struct.edge_rec, %struct.edge_rec* %822, i32 0, i32 1 - %824 = load %struct.edge_rec*, %struct.edge_rec** %823, align 4 - %825 = getelementptr %struct.edge_rec, %struct.edge_rec* %815, i32 0, i32 1 - %826 = load %struct.edge_rec*, %struct.edge_rec** %825, align 4 - store %struct.edge_rec* %824, %struct.edge_rec** %825, align 4 - store %struct.edge_rec* %826, %struct.edge_rec** %823, align 4 - %827 = load %struct.edge_rec*, %struct.edge_rec** %808, align 4 - %828 = load %struct.edge_rec*, %struct.edge_rec** %793, align 4 - store %struct.edge_rec* %827, %struct.edge_rec** %793, align 4 - store %struct.edge_rec* %828, %struct.edge_rec** %808, align 4 + %822 = inttoptr i32 %821 to ptr + %823 = getelementptr %struct.edge_rec, ptr %822, i32 0, i32 1 + %824 = load ptr, ptr %823, align 4 + %825 = getelementptr %struct.edge_rec, ptr %815, i32 0, i32 1 + %826 = load ptr, ptr %825, align 4 + store ptr %824, ptr %825, align 4 + store ptr %826, ptr %823, align 4 + %827 = load ptr, ptr %808, align 4 + %828 = load ptr, ptr %793, align 4 + store ptr %827, ptr %793, align 4 + store ptr %828, ptr %808, align 4 %829 = xor i32 %795, 32 - %830 = inttoptr i32 %829 to %struct.edge_rec* - %831 = getelementptr %struct.edge_rec, %struct.edge_rec* %830, i32 0, i32 0 - %832 = load %struct.VERTEX*, %struct.VERTEX** %831, align 4 + %830 = inttoptr i32 %829 to ptr + %831 = getelementptr %struct.edge_rec, ptr %830, i32 0, i32 0 + %832 = load ptr, ptr %831, align 4 %833 = and i32 %798, 63 %834 = and i32 %795, -64 %835 = or i32 %833, %834 - %836 = inttoptr i32 %835 to %struct.edge_rec* - %837 = getelementptr %struct.edge_rec, %struct.edge_rec* %836, i32 0, i32 1 - %838 = load %struct.edge_rec*, %struct.edge_rec** %837, align 4 - %839 = ptrtoint %struct.edge_rec* %838 to i32 + %836 = inttoptr i32 %835 to ptr + %837 = getelementptr %struct.edge_rec, ptr %836, i32 0, i32 1 + %838 = load ptr, ptr %837, align 4 + %839 = ptrtoint ptr %838 to i32 %840 = add i32 %839, 16 %841 = and i32 %840, 63 %842 = and i32 %839, -64 %843 = or i32 %841, %842 - %844 = inttoptr i32 %843 to %struct.edge_rec* - %845 = load %struct.VERTEX*, %struct.VERTEX** %767, align 4 - %846 = call %struct.edge_rec* @alloc_edge() nounwind - %847 = getelementptr %struct.edge_rec, %struct.edge_rec* %846, i32 0, i32 1 - store %struct.edge_rec* %846, %struct.edge_rec** %847, align 4 - %848 = getelementptr %struct.edge_rec, %struct.edge_rec* %846, i32 0, i32 0 - store %struct.VERTEX* %832, %struct.VERTEX** %848, align 4 - %849 = ptrtoint %struct.edge_rec* %846 to i32 + %844 = inttoptr i32 %843 to ptr + %845 = load ptr, ptr %767, align 4 + %846 = call ptr @alloc_edge() nounwind + %847 = getelementptr %struct.edge_rec, ptr %846, i32 0, i32 1 + store ptr %846, ptr %847, align 4 + %848 = getelementptr %struct.edge_rec, ptr %846, i32 0, i32 0 + store ptr %832, ptr %848, align 4 + %849 = ptrtoint ptr %846 to i32 %850 = add i32 %849, 16 - %851 = inttoptr i32 %850 to %struct.edge_rec* + %851 = inttoptr i32 %850 to ptr %852 = add i32 %849, 48 - %853 = inttoptr i32 %852 to %struct.edge_rec* - %854 = getelementptr %struct.edge_rec, %struct.edge_rec* %851, i32 0, i32 1 - store %struct.edge_rec* %853, %struct.edge_rec** %854, align 4 + %853 = inttoptr i32 %852 to ptr + %854 = getelementptr %struct.edge_rec, ptr %851, i32 0, i32 1 + store ptr %853, ptr %854, align 4 %855 = add i32 %849, 32 - %856 = inttoptr i32 %855 to %struct.edge_rec* - %857 = getelementptr %struct.edge_rec, %struct.edge_rec* %856, i32 0, i32 1 - store %struct.edge_rec* %856, %struct.edge_rec** %857, align 4 - %858 = getelementptr %struct.edge_rec, %struct.edge_rec* %856, i32 0, i32 0 - store %struct.VERTEX* %845, %struct.VERTEX** %858, align 4 - %859 = getelementptr %struct.edge_rec, %struct.edge_rec* %853, i32 0, i32 1 - store %struct.edge_rec* %851, %struct.edge_rec** %859, align 4 - %860 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 - %861 = ptrtoint %struct.edge_rec* %860 to i32 + %856 = inttoptr i32 %855 to ptr + %857 = getelementptr %struct.edge_rec, ptr %856, i32 0, i32 1 + store ptr %856, ptr %857, align 4 + %858 = getelementptr %struct.edge_rec, ptr %856, i32 0, i32 0 + store ptr %845, ptr %858, align 4 + %859 = getelementptr %struct.edge_rec, ptr %853, i32 0, i32 1 + store ptr %851, ptr %859, align 4 + %860 = load ptr, ptr %847, align 4 + %861 = ptrtoint ptr %860 to i32 %862 = add i32 %861, 16 %863 = and i32 %862, 63 %864 = and i32 %861, -64 %865 = or i32 %863, %864 - %866 = inttoptr i32 %865 to %struct.edge_rec* - %867 = getelementptr %struct.edge_rec, %struct.edge_rec* %844, i32 0, i32 1 - %868 = load %struct.edge_rec*, %struct.edge_rec** %867, align 4 - %869 = ptrtoint %struct.edge_rec* %868 to i32 + %866 = inttoptr i32 %865 to ptr + %867 = getelementptr %struct.edge_rec, ptr %844, i32 0, i32 1 + %868 = load ptr, ptr %867, align 4 + %869 = ptrtoint ptr %868 to i32 %870 = add i32 %869, 16 %871 = and i32 %870, 63 %872 = and i32 %869, -64 %873 = or i32 %871, %872 - %874 = inttoptr i32 %873 to %struct.edge_rec* - %875 = getelementptr %struct.edge_rec, %struct.edge_rec* %874, i32 0, i32 1 - %876 = load %struct.edge_rec*, %struct.edge_rec** %875, align 4 - %877 = getelementptr %struct.edge_rec, %struct.edge_rec* %866, i32 0, i32 1 - %878 = load %struct.edge_rec*, %struct.edge_rec** %877, align 4 - store %struct.edge_rec* %876, %struct.edge_rec** %877, align 4 - store %struct.edge_rec* %878, %struct.edge_rec** %875, align 4 - %879 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 - %880 = load %struct.edge_rec*, %struct.edge_rec** %867, align 4 - store %struct.edge_rec* %879, %struct.edge_rec** %867, align 4 - store %struct.edge_rec* %880, %struct.edge_rec** %847, align 4 + %874 = inttoptr i32 %873 to ptr + %875 = getelementptr %struct.edge_rec, ptr %874, i32 0, i32 1 + %876 = load ptr, ptr %875, align 4 + %877 = getelementptr %struct.edge_rec, ptr %866, i32 0, i32 1 + %878 = load ptr, ptr %877, align 4 + store ptr %876, ptr %877, align 4 + store ptr %878, ptr %875, align 4 + %879 = load ptr, ptr %847, align 4 + %880 = load ptr, ptr %867, align 4 + store ptr %879, ptr %867, align 4 + store ptr %880, ptr %847, align 4 %881 = xor i32 %849, 32 - %882 = inttoptr i32 %881 to %struct.edge_rec* - %883 = getelementptr %struct.edge_rec, %struct.edge_rec* %882, i32 0, i32 1 - %884 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 - %885 = ptrtoint %struct.edge_rec* %884 to i32 + %882 = inttoptr i32 %881 to ptr + %883 = getelementptr %struct.edge_rec, ptr %882, i32 0, i32 1 + %884 = load ptr, ptr %883, align 4 + %885 = ptrtoint ptr %884 to i32 %886 = add i32 %885, 16 %887 = and i32 %886, 63 %888 = and i32 %885, -64 %889 = or i32 %887, %888 - %890 = inttoptr i32 %889 to %struct.edge_rec* - %891 = load %struct.edge_rec*, %struct.edge_rec** %766, align 4 - %892 = ptrtoint %struct.edge_rec* %891 to i32 + %890 = inttoptr i32 %889 to ptr + %891 = load ptr, ptr %766, align 4 + %892 = ptrtoint ptr %891 to i32 %893 = add i32 %892, 16 %894 = and i32 %893, 63 %895 = and i32 %892, -64 %896 = or i32 %894, %895 - %897 = inttoptr i32 %896 to %struct.edge_rec* - %898 = getelementptr %struct.edge_rec, %struct.edge_rec* %897, i32 0, i32 1 - %899 = load %struct.edge_rec*, %struct.edge_rec** %898, align 4 - %900 = getelementptr %struct.edge_rec, %struct.edge_rec* %890, i32 0, i32 1 - %901 = load %struct.edge_rec*, %struct.edge_rec** %900, align 4 - store %struct.edge_rec* %899, %struct.edge_rec** %900, align 4 - store %struct.edge_rec* %901, %struct.edge_rec** %898, align 4 - %902 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 - %903 = load %struct.edge_rec*, %struct.edge_rec** %766, align 4 - store %struct.edge_rec* %902, %struct.edge_rec** %766, align 4 - store %struct.edge_rec* %903, %struct.edge_rec** %883, align 4 - %904 = getelementptr %struct.VERTEX, %struct.VERTEX* %763, i32 0, i32 0, i32 0 - %905 = load double, double* %904, align 4 - %906 = getelementptr %struct.VERTEX, %struct.VERTEX* %763, i32 0, i32 0, i32 1 - %907 = load double, double* %906, align 4 - %908 = getelementptr %struct.VERTEX, %struct.VERTEX* %extra, i32 0, i32 0, i32 0 - %909 = load double, double* %908, align 4 - %910 = getelementptr %struct.VERTEX, %struct.VERTEX* %extra, i32 0, i32 0, i32 1 - %911 = load double, double* %910, align 4 - %912 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 0, i32 0 - %913 = load double, double* %912, align 4 - %914 = getelementptr %struct.VERTEX, %struct.VERTEX* %tree, i32 0, i32 0, i32 1 - %915 = load double, double* %914, align 4 + %897 = inttoptr i32 %896 to ptr + %898 = getelementptr %struct.edge_rec, ptr %897, i32 0, i32 1 + %899 = load ptr, ptr %898, align 4 + %900 = getelementptr %struct.edge_rec, ptr %890, i32 0, i32 1 + %901 = load ptr, ptr %900, align 4 + store ptr %899, ptr %900, align 4 + store ptr %901, ptr %898, align 4 + %902 = load ptr, ptr %883, align 4 + %903 = load ptr, ptr %766, align 4 + store ptr %902, ptr %766, align 4 + store ptr %903, ptr %883, align 4 + %904 = getelementptr %struct.VERTEX, ptr %763, i32 0, i32 0, i32 0 + %905 = load double, ptr %904, align 4 + %906 = getelementptr %struct.VERTEX, ptr %763, i32 0, i32 0, i32 1 + %907 = load double, ptr %906, align 4 + %908 = getelementptr %struct.VERTEX, ptr %extra, i32 0, i32 0, i32 0 + %909 = load double, ptr %908, align 4 + %910 = getelementptr %struct.VERTEX, ptr %extra, i32 0, i32 0, i32 1 + %911 = load double, ptr %910, align 4 + %912 = getelementptr %struct.VERTEX, ptr %tree, i32 0, i32 0, i32 0 + %913 = load double, ptr %912, align 4 + %914 = getelementptr %struct.VERTEX, ptr %tree, i32 0, i32 0, i32 1 + %915 = load double, ptr %914, align 4 %916 = fsub double %905, %913 %917 = fsub double %911, %915 %918 = fmul double %916, %917 @@ -1226,93 +1226,93 @@ bb14: %932 = and i32 %850, 63 %933 = and i32 %849, -64 %934 = or i32 %932, %933 - %935 = inttoptr i32 %934 to %struct.edge_rec* - %936 = getelementptr %struct.edge_rec, %struct.edge_rec* %935, i32 0, i32 1 - %937 = load %struct.edge_rec*, %struct.edge_rec** %936, align 4 - %938 = ptrtoint %struct.edge_rec* %937 to i32 + %935 = inttoptr i32 %934 to ptr + %936 = getelementptr %struct.edge_rec, ptr %935, i32 0, i32 1 + %937 = load ptr, ptr %936, align 4 + %938 = ptrtoint ptr %937 to i32 %939 = add i32 %938, 16 %940 = and i32 %939, 63 %941 = and i32 %938, -64 %942 = or i32 %940, %941 - %943 = inttoptr i32 %942 to %struct.edge_rec* - %944 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 - %945 = ptrtoint %struct.edge_rec* %944 to i32 + %943 = inttoptr i32 %942 to ptr + %944 = load ptr, ptr %847, align 4 + %945 = ptrtoint ptr %944 to i32 %946 = add i32 %945, 16 %947 = and i32 %946, 63 %948 = and i32 %945, -64 %949 = or i32 %947, %948 - %950 = inttoptr i32 %949 to %struct.edge_rec* - %951 = getelementptr %struct.edge_rec, %struct.edge_rec* %943, i32 0, i32 1 - %952 = load %struct.edge_rec*, %struct.edge_rec** %951, align 4 - %953 = ptrtoint %struct.edge_rec* %952 to i32 + %950 = inttoptr i32 %949 to ptr + %951 = getelementptr %struct.edge_rec, ptr %943, i32 0, i32 1 + %952 = load ptr, ptr %951, align 4 + %953 = ptrtoint ptr %952 to i32 %954 = add i32 %953, 16 %955 = and i32 %954, 63 %956 = and i32 %953, -64 %957 = or i32 %955, %956 - %958 = inttoptr i32 %957 to %struct.edge_rec* - %959 = getelementptr %struct.edge_rec, %struct.edge_rec* %958, i32 0, i32 1 - %960 = load %struct.edge_rec*, %struct.edge_rec** %959, align 4 - %961 = getelementptr %struct.edge_rec, %struct.edge_rec* %950, i32 0, i32 1 - %962 = load %struct.edge_rec*, %struct.edge_rec** %961, align 4 - store %struct.edge_rec* %960, %struct.edge_rec** %961, align 4 - store %struct.edge_rec* %962, %struct.edge_rec** %959, align 4 - %963 = load %struct.edge_rec*, %struct.edge_rec** %847, align 4 - %964 = load %struct.edge_rec*, %struct.edge_rec** %951, align 4 - store %struct.edge_rec* %963, %struct.edge_rec** %951, align 4 - store %struct.edge_rec* %964, %struct.edge_rec** %847, align 4 + %958 = inttoptr i32 %957 to ptr + %959 = getelementptr %struct.edge_rec, ptr %958, i32 0, i32 1 + %960 = load ptr, ptr %959, align 4 + %961 = getelementptr %struct.edge_rec, ptr %950, i32 0, i32 1 + %962 = load ptr, ptr %961, align 4 + store ptr %960, ptr %961, align 4 + store ptr %962, ptr %959, align 4 + %963 = load ptr, ptr %847, align 4 + %964 = load ptr, ptr %951, align 4 + store ptr %963, ptr %951, align 4 + store ptr %964, ptr %847, align 4 %965 = add i32 %881, 16 %966 = and i32 %965, 63 %967 = or i32 %966, %933 - %968 = inttoptr i32 %967 to %struct.edge_rec* - %969 = getelementptr %struct.edge_rec, %struct.edge_rec* %968, i32 0, i32 1 - %970 = load %struct.edge_rec*, %struct.edge_rec** %969, align 4 - %971 = ptrtoint %struct.edge_rec* %970 to i32 + %968 = inttoptr i32 %967 to ptr + %969 = getelementptr %struct.edge_rec, ptr %968, i32 0, i32 1 + %970 = load ptr, ptr %969, align 4 + %971 = ptrtoint ptr %970 to i32 %972 = add i32 %971, 16 %973 = and i32 %972, 63 %974 = and i32 %971, -64 %975 = or i32 %973, %974 - %976 = inttoptr i32 %975 to %struct.edge_rec* - %977 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 - %978 = ptrtoint %struct.edge_rec* %977 to i32 + %976 = inttoptr i32 %975 to ptr + %977 = load ptr, ptr %883, align 4 + %978 = ptrtoint ptr %977 to i32 %979 = add i32 %978, 16 %980 = and i32 %979, 63 %981 = and i32 %978, -64 %982 = or i32 %980, %981 - %983 = inttoptr i32 %982 to %struct.edge_rec* - %984 = getelementptr %struct.edge_rec, %struct.edge_rec* %976, i32 0, i32 1 - %985 = load %struct.edge_rec*, %struct.edge_rec** %984, align 4 - %986 = ptrtoint %struct.edge_rec* %985 to i32 + %983 = inttoptr i32 %982 to ptr + %984 = getelementptr %struct.edge_rec, ptr %976, i32 0, i32 1 + %985 = load ptr, ptr %984, align 4 + %986 = ptrtoint ptr %985 to i32 %987 = add i32 %986, 16 %988 = and i32 %987, 63 %989 = and i32 %986, -64 %990 = or i32 %988, %989 - %991 = inttoptr i32 %990 to %struct.edge_rec* - %992 = getelementptr %struct.edge_rec, %struct.edge_rec* %991, i32 0, i32 1 - %993 = load %struct.edge_rec*, %struct.edge_rec** %992, align 4 - %994 = getelementptr %struct.edge_rec, %struct.edge_rec* %983, i32 0, i32 1 - %995 = load %struct.edge_rec*, %struct.edge_rec** %994, align 4 - store %struct.edge_rec* %993, %struct.edge_rec** %994, align 4 - store %struct.edge_rec* %995, %struct.edge_rec** %992, align 4 - %996 = load %struct.edge_rec*, %struct.edge_rec** %883, align 4 - %997 = load %struct.edge_rec*, %struct.edge_rec** %984, align 4 - store %struct.edge_rec* %996, %struct.edge_rec** %984, align 4 - store %struct.edge_rec* %997, %struct.edge_rec** %883, align 4 - %998 = inttoptr i32 %933 to %struct.edge_rec* - %999 = load %struct.edge_rec*, %struct.edge_rec** @avail_edge, align 4 - %1000 = getelementptr %struct.edge_rec, %struct.edge_rec* %998, i32 0, i32 1 - store %struct.edge_rec* %999, %struct.edge_rec** %1000, align 4 - store %struct.edge_rec* %998, %struct.edge_rec** @avail_edge, align 4 + %991 = inttoptr i32 %990 to ptr + %992 = getelementptr %struct.edge_rec, ptr %991, i32 0, i32 1 + %993 = load ptr, ptr %992, align 4 + %994 = getelementptr %struct.edge_rec, ptr %983, i32 0, i32 1 + %995 = load ptr, ptr %994, align 4 + store ptr %993, ptr %994, align 4 + store ptr %995, ptr %992, align 4 + %996 = load ptr, ptr %883, align 4 + %997 = load ptr, ptr %984, align 4 + store ptr %996, ptr %984, align 4 + store ptr %997, ptr %883, align 4 + %998 = inttoptr i32 %933 to ptr + %999 = load ptr, ptr @avail_edge, align 4 + %1000 = getelementptr %struct.edge_rec, ptr %998, i32 0, i32 1 + store ptr %999, ptr %1000, align 4 + store ptr %998, ptr @avail_edge, align 4 br label %bb15 bb15: %retval.1.0 = phi i32 [ %780, %bb10 ], [ %829, %bb13 ], [ %829, %bb14 ], [ %tmp4, %bb6 ], [ %849, %bb11 ] %retval.0.0 = phi i32 [ %769, %bb10 ], [ %781, %bb13 ], [ %781, %bb14 ], [ %tmp16, %bb6 ], [ %881, %bb11 ] - %agg.result162 = bitcast %struct.EDGE_PAIR* %agg.result to i64* + %agg.result162 = bitcast ptr %agg.result to ptr %1001 = zext i32 %retval.0.0 to i64 %1002 = zext i32 %retval.1.0 to i64 %1003 = shl i64 %1002, 32 %1004 = or i64 %1003, %1001 - store i64 %1004, i64* %agg.result162, align 4 + store i64 %1004, ptr %agg.result162, align 4 ret void } @@ -1331,8 +1331,8 @@ bb15: ; CHECK: vcmp ; CHECK: vcmp -declare i32 @puts(i8* nocapture) nounwind +declare i32 @puts(ptr nocapture) nounwind declare void @exit(i32) noreturn nounwind -declare %struct.edge_rec* @alloc_edge() nounwind +declare ptr @alloc_edge() nounwind diff --git a/llvm/test/CodeGen/ARM/Windows/wineh-basic.ll b/llvm/test/CodeGen/ARM/Windows/wineh-basic.ll index c4e809f6dd878..d0bdd66d131d2 100644 --- a/llvm/test/CodeGen/ARM/Windows/wineh-basic.ll +++ b/llvm/test/CodeGen/ARM/Windows/wineh-basic.ll @@ -16,9 +16,9 @@ target triple = "thumbv7--windows-msvc19.0.24210" %class.field = type { i8 } ; Function Attrs: nounwind -define arm_aapcs_vfpcc void @"\01??1field@@AAA@XZ"(%class.field* nocapture readnone %this) unnamed_addr #0 align 2 personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) { +define arm_aapcs_vfpcc void @"\01??1field@@AAA@XZ"(ptr nocapture readnone %this) unnamed_addr #0 align 2 personality ptr @__CxxFrameHandler3 { entry: - invoke arm_aapcs_vfpcc void @free(i8* null) + invoke arm_aapcs_vfpcc void @free(ptr null) to label %invoke.cont unwind label %terminate invoke.cont: ; preds = %entry @@ -30,7 +30,7 @@ terminate: ; preds = %entry unreachable } -declare arm_aapcs_vfpcc void @free(i8*) local_unnamed_addr #1 +declare arm_aapcs_vfpcc void @free(ptr) local_unnamed_addr #1 declare arm_aapcs_vfpcc i32 @__CxxFrameHandler3(...) diff --git a/llvm/test/CodeGen/ARM/aes-erratum-fix.ll b/llvm/test/CodeGen/ARM/aes-erratum-fix.ll index 9c2da345956d1..17d1ca65430af 100644 --- a/llvm/test/CodeGen/ARM/aes-erratum-fix.ll +++ b/llvm/test/CodeGen/ARM/aes-erratum-fix.ll @@ -24,7 +24,7 @@ declare arm_aapcs_vfpcc <16 x i8> @get_inputf32(float) local_unnamed_addr -define arm_aapcs_vfpcc void @aese_zero(<16 x i8>* %0) nounwind { +define arm_aapcs_vfpcc void @aese_zero(ptr %0) nounwind { ; CHECK-FIX-LABEL: aese_zero: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vld1.64 {d16, d17}, [r0] @@ -33,14 +33,14 @@ define arm_aapcs_vfpcc void @aese_zero(<16 x i8>* %0) nounwind { ; CHECK-FIX-NEXT: aesmc.8 q8, q9 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r0] ; CHECK-FIX-NEXT: bx lr - %2 = load <16 x i8>, <16 x i8>* %0, align 8 + %2 = load <16 x i8>, ptr %0, align 8 %3 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> zeroinitializer, <16 x i8> %2) %4 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %3) - store <16 x i8> %4, <16 x i8>* %0, align 8 + store <16 x i8> %4, ptr %0, align 8 ret void } -define arm_aapcs_vfpcc void @aese_via_call1(<16 x i8>* %0) nounwind { +define arm_aapcs_vfpcc void @aese_via_call1(ptr %0) nounwind { ; CHECK-FIX-LABEL: aese_via_call1: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: .save {r4, lr} @@ -54,14 +54,14 @@ define arm_aapcs_vfpcc void @aese_via_call1(<16 x i8>* %0) nounwind { ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r4] ; CHECK-FIX-NEXT: pop {r4, pc} %2 = call arm_aapcs_vfpcc <16 x i8> @get_input() - %3 = load <16 x i8>, <16 x i8>* %0, align 8 + %3 = load <16 x i8>, ptr %0, align 8 %4 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %2, <16 x i8> %3) %5 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %4) - store <16 x i8> %5, <16 x i8>* %0, align 8 + store <16 x i8> %5, ptr %0, align 8 ret void } -define arm_aapcs_vfpcc void @aese_via_call2(half %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aese_via_call2(half %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aese_via_call2: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: .save {r4, lr} @@ -75,14 +75,14 @@ define arm_aapcs_vfpcc void @aese_via_call2(half %0, <16 x i8>* %1) nounwind { ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r4] ; CHECK-FIX-NEXT: pop {r4, pc} %3 = call arm_aapcs_vfpcc <16 x i8> @get_inputf16(half %0) - %4 = load <16 x i8>, <16 x i8>* %1, align 8 + %4 = load <16 x i8>, ptr %1, align 8 %5 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 + store <16 x i8> %6, ptr %1, align 8 ret void } -define arm_aapcs_vfpcc void @aese_via_call3(float %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aese_via_call3(float %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aese_via_call3: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: .save {r4, lr} @@ -96,14 +96,14 @@ define arm_aapcs_vfpcc void @aese_via_call3(float %0, <16 x i8>* %1) nounwind { ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r4] ; CHECK-FIX-NEXT: pop {r4, pc} %3 = call arm_aapcs_vfpcc <16 x i8> @get_inputf32(float %0) - %4 = load <16 x i8>, <16 x i8>* %1, align 8 + %4 = load <16 x i8>, ptr %1, align 8 %5 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 + store <16 x i8> %6, ptr %1, align 8 ret void } -define arm_aapcs_vfpcc void @aese_once_via_ptr(<16 x i8>* %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aese_once_via_ptr(ptr %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aese_once_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vld1.64 {d16, d17}, [r0] @@ -112,11 +112,11 @@ define arm_aapcs_vfpcc void @aese_once_via_ptr(<16 x i8>* %0, <16 x i8>* %1) nou ; CHECK-FIX-NEXT: aesmc.8 q8, q9 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %3 = load <16 x i8>, <16 x i8>* %1, align 8 - %4 = load <16 x i8>, <16 x i8>* %0, align 8 + %3 = load <16 x i8>, ptr %1, align 8 + %4 = load <16 x i8>, ptr %0, align 8 %5 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 + store <16 x i8> %6, ptr %1, align 8 ret void } @@ -133,7 +133,7 @@ define arm_aapcs_vfpcc <16 x i8> @aese_once_via_val(<16 x i8> %0, <16 x i8> %1) ret <16 x i8> %4 } -define arm_aapcs_vfpcc void @aese_twice_via_ptr(<16 x i8>* %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aese_twice_via_ptr(ptr %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aese_twice_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vld1.64 {d16, d17}, [r0] @@ -146,15 +146,15 @@ define arm_aapcs_vfpcc void @aese_twice_via_ptr(<16 x i8>* %0, <16 x i8>* %1) no ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %3 = load <16 x i8>, <16 x i8>* %1, align 8 - %4 = load <16 x i8>, <16 x i8>* %0, align 8 + %3 = load <16 x i8>, ptr %1, align 8 + %4 = load <16 x i8>, ptr %0, align 8 %5 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 - %7 = load <16 x i8>, <16 x i8>* %0, align 8 + store <16 x i8> %6, ptr %1, align 8 + %7 = load <16 x i8>, ptr %0, align 8 %8 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %6, <16 x i8> %7) %9 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %8) - store <16 x i8> %9, <16 x i8>* %1, align 8 + store <16 x i8> %9, ptr %1, align 8 ret void } @@ -176,7 +176,7 @@ define arm_aapcs_vfpcc <16 x i8> @aese_twice_via_val(<16 x i8> %0, <16 x i8> %1) ret <16 x i8> %6 } -define arm_aapcs_vfpcc void @aese_loop_via_ptr(i32 %0, <16 x i8>* %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_loop_via_ptr(i32 %0, ptr %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_loop_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: cmp r0, #0 @@ -214,11 +214,11 @@ define arm_aapcs_vfpcc void @aese_loop_via_ptr(i32 %0, <16 x i8>* %1, <16 x i8>* 6: %7 = phi i32 [ %12, %6 ], [ 0, %3 ] - %8 = load <16 x i8>, <16 x i8>* %2, align 8 - %9 = load <16 x i8>, <16 x i8>* %1, align 8 + %8 = load <16 x i8>, ptr %2, align 8 + %9 = load <16 x i8>, ptr %1, align 8 %10 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %8, <16 x i8> %9) %11 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %10) - store <16 x i8> %11, <16 x i8>* %2, align 8 + store <16 x i8> %11, ptr %2, align 8 %12 = add nuw i32 %7, 1 %13 = icmp eq i32 %12, %0 br i1 %13, label %5, label %6 @@ -256,7 +256,7 @@ define arm_aapcs_vfpcc <16 x i8> @aese_loop_via_val(i32 %0, <16 x i8> %1, <16 x br i1 %13, label %5, label %7 } -define arm_aapcs_vfpcc void @aese_set8_via_ptr(i8* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set8_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_set8_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -280,17 +280,17 @@ define arm_aapcs_vfpcc void @aese_set8_via_ptr(i8* %0, <16 x i8> %1, <16 x i8>* ; CHECK-CORTEX-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i8, i8* %0, align 1 - %5 = load <16 x i8>, <16 x i8>* %2, align 8 + %4 = load i8, ptr %0, align 1 + %5 = load <16 x i8>, ptr %2, align 8 %6 = insertelement <16 x i8> %5, i8 %4, i64 0 %7 = insertelement <16 x i8> %1, i8 %4, i64 0 %8 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %6, <16 x i8> %7) %9 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %8) - store <16 x i8> %9, <16 x i8>* %2, align 8 + store <16 x i8> %9, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set8_via_val(i8 zeroext %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set8_via_val(i8 zeroext %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aese_set8_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -301,16 +301,16 @@ define arm_aapcs_vfpcc void @aese_set8_via_val(i8 zeroext %0, <16 x i8> %1, <16 ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = load <16 x i8>, <16 x i8>* %2, align 8 + %4 = load <16 x i8>, ptr %2, align 8 %5 = insertelement <16 x i8> %4, i8 %0, i64 0 %6 = insertelement <16 x i8> %1, i8 %0, i64 0 %7 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %5, <16 x i8> %6) %8 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %7) - store <16 x i8> %8, <16 x i8>* %2, align 8 + store <16 x i8> %8, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set8_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set8_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -336,13 +336,13 @@ define arm_aapcs_vfpcc void @aese_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x br i1 %0, label %5, label %9 5: - %6 = load i8, i8* %1, align 1 - %7 = load <16 x i8>, <16 x i8>* %3, align 8 + %6 = load i8, ptr %1, align 1 + %7 = load <16 x i8>, ptr %3, align 8 %8 = insertelement <16 x i8> %7, i8 %6, i64 0 br label %11 9: - %10 = load <16 x i8>, <16 x i8>* %3, align 8 + %10 = load <16 x i8>, ptr %3, align 8 br label %11 11: @@ -350,7 +350,7 @@ define arm_aapcs_vfpcc void @aese_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x br i1 %0, label %13, label %16 13: - %14 = load i8, i8* %1, align 1 + %14 = load i8, ptr %1, align 1 %15 = insertelement <16 x i8> %2, i8 %14, i64 0 br label %16 @@ -358,11 +358,11 @@ define arm_aapcs_vfpcc void @aese_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x %17 = phi <16 x i8> [ %15, %13 ], [ %2, %11 ] %18 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %12, <16 x i8> %17) %19 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set8_cond_via_val(i1 zeroext %0, i8 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set8_cond_via_val(i1 zeroext %0, i8 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set8_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -381,18 +381,18 @@ define arm_aapcs_vfpcc void @aese_set8_cond_via_val(i1 zeroext %0, i8 zeroext %1 ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load <16 x i8>, <16 x i8>* %3, align 8 + %5 = load <16 x i8>, ptr %3, align 8 %6 = insertelement <16 x i8> %5, i8 %1, i64 0 %7 = select i1 %0, <16 x i8> %6, <16 x i8> %5 %8 = insertelement <16 x i8> %2, i8 %1, i64 0 %9 = select i1 %0, <16 x i8> %8, <16 x i8> %2 %10 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %7, <16 x i8> %9) %11 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %10) - store <16 x i8> %11, <16 x i8>* %3, align 8 + store <16 x i8> %11, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set8_loop_via_ptr(i32 %0, i8* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set8_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set8_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -411,19 +411,19 @@ define arm_aapcs_vfpcc void @aese_set8_loop_via_ptr(i32 %0, i8* %1, <16 x i8> %2 ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load i8, i8* %1, align 1 + %5 = load i8, ptr %1, align 1 %6 = insertelement <16 x i8> %2, i8 %5, i64 0 - %7 = getelementptr inbounds <16 x i8>, <16 x i8>* %3, i32 0, i32 0 - store i8 %5, i8* %7, align 8 + %7 = getelementptr inbounds <16 x i8>, ptr %3, i32 0, i32 0 + store i8 %5, ptr %7, align 8 %8 = icmp eq i32 %0, 0 br i1 %8, label %12, label %9 9: - %10 = load <16 x i8>, <16 x i8>* %3, align 8 + %10 = load <16 x i8>, ptr %3, align 8 br label %13 11: - store <16 x i8> %17, <16 x i8>* %3, align 8 + store <16 x i8> %17, ptr %3, align 8 br label %12 12: @@ -439,7 +439,7 @@ define arm_aapcs_vfpcc void @aese_set8_loop_via_ptr(i32 %0, i8* %1, <16 x i8> %2 br i1 %19, label %11, label %13 } -define arm_aapcs_vfpcc void @aese_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set8_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -462,11 +462,11 @@ define arm_aapcs_vfpcc void @aese_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x 6: %7 = insertelement <16 x i8> %2, i8 %1, i64 0 - %8 = load <16 x i8>, <16 x i8>* %3, align 8 + %8 = load <16 x i8>, ptr %3, align 8 br label %11 9: - store <16 x i8> %16, <16 x i8>* %3, align 8 + store <16 x i8> %16, ptr %3, align 8 br label %10 10: @@ -483,7 +483,7 @@ define arm_aapcs_vfpcc void @aese_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x br i1 %18, label %9, label %11 } -define arm_aapcs_vfpcc void @aese_set16_via_ptr(i16* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set16_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_set16_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -507,9 +507,9 @@ define arm_aapcs_vfpcc void @aese_set16_via_ptr(i16* %0, <16 x i8> %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i16, i16* %0, align 2 - %5 = bitcast <16 x i8>* %2 to <8 x i16>* - %6 = load <8 x i16>, <8 x i16>* %5, align 8 + %4 = load i16, ptr %0, align 2 + %5 = bitcast ptr %2 to ptr + %6 = load <8 x i16>, ptr %5, align 8 %7 = insertelement <8 x i16> %6, i16 %4, i64 0 %8 = bitcast <8 x i16> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <8 x i16> @@ -517,11 +517,11 @@ define arm_aapcs_vfpcc void @aese_set16_via_ptr(i16* %0, <16 x i8> %1, <16 x i8> %11 = bitcast <8 x i16> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set16_via_val(i16 zeroext %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set16_via_val(i16 zeroext %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aese_set16_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -532,8 +532,8 @@ define arm_aapcs_vfpcc void @aese_set16_via_val(i16 zeroext %0, <16 x i8> %1, <1 ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <8 x i16>* - %5 = load <8 x i16>, <8 x i16>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <8 x i16>, ptr %4, align 8 %6 = insertelement <8 x i16> %5, i16 %0, i64 0 %7 = bitcast <8 x i16> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <8 x i16> @@ -541,11 +541,11 @@ define arm_aapcs_vfpcc void @aese_set16_via_val(i16 zeroext %0, <16 x i8> %1, <1 %10 = bitcast <8 x i16> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set16_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set16_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -571,15 +571,15 @@ define arm_aapcs_vfpcc void @aese_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 br i1 %0, label %5, label %10 5: - %6 = load i16, i16* %1, align 2 - %7 = bitcast <16 x i8>* %3 to <8 x i16>* - %8 = load <8 x i16>, <8 x i16>* %7, align 8 + %6 = load i16, ptr %1, align 2 + %7 = bitcast ptr %3 to ptr + %8 = load <8 x i16>, ptr %7, align 8 %9 = insertelement <8 x i16> %8, i16 %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <8 x i16>* - %12 = load <8 x i16>, <8 x i16>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <8 x i16>, ptr %11, align 8 br label %13 13: @@ -587,7 +587,7 @@ define arm_aapcs_vfpcc void @aese_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 br i1 %0, label %15, label %19 15: - %16 = load i16, i16* %1, align 2 + %16 = load i16, ptr %1, align 2 %17 = bitcast <16 x i8> %2 to <8 x i16> %18 = insertelement <8 x i16> %17, i16 %16, i64 0 br label %21 @@ -602,11 +602,11 @@ define arm_aapcs_vfpcc void @aese_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 %24 = bitcast <8 x i16> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set16_cond_via_val(i1 zeroext %0, i16 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set16_cond_via_val(i1 zeroext %0, i16 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set16_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -625,8 +625,8 @@ define arm_aapcs_vfpcc void @aese_set16_cond_via_val(i1 zeroext %0, i16 zeroext ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <8 x i16>* - %6 = load <8 x i16>, <8 x i16>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <8 x i16>, ptr %5, align 8 %7 = insertelement <8 x i16> %6, i16 %1, i64 0 %8 = select i1 %0, <8 x i16> %7, <8 x i16> %6 %9 = bitcast <16 x i8> %2 to <8 x i16> @@ -636,11 +636,11 @@ define arm_aapcs_vfpcc void @aese_set16_cond_via_val(i1 zeroext %0, i16 zeroext %13 = bitcast <8 x i16> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set16_loop_via_ptr(i32 %0, i16* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set16_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set16_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -659,21 +659,21 @@ define arm_aapcs_vfpcc void @aese_set16_loop_via_ptr(i32 %0, i16* %1, <16 x i8> ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load i16, i16* %1, align 2 + %5 = load i16, ptr %1, align 2 %6 = bitcast <16 x i8> %2 to <8 x i16> %7 = insertelement <8 x i16> %6, i16 %5, i64 0 %8 = bitcast <8 x i16> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to i16* - store i16 %5, i16* %9, align 8 + %9 = bitcast ptr %3 to ptr + store i16 %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -689,7 +689,7 @@ define arm_aapcs_vfpcc void @aese_set16_loop_via_ptr(i32 %0, i16* %1, <16 x i8> br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aese_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set16_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -714,8 +714,8 @@ define arm_aapcs_vfpcc void @aese_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 %7 = bitcast <16 x i8> %2 to <8 x i16> %8 = insertelement <8 x i16> %7, i16 %1, i64 0 %9 = bitcast <8 x i16> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <8 x i16>* - %11 = bitcast <16 x i8>* %3 to i16* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -723,19 +723,19 @@ define arm_aapcs_vfpcc void @aese_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <8 x i16>, <8 x i16>* %10, align 8 + %15 = load <8 x i16>, ptr %10, align 8 %16 = insertelement <8 x i16> %15, i16 %1, i64 0 %17 = bitcast <8 x i16> %16 to <16 x i8> - store i16 %1, i16* %11, align 8 + store i16 %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aese_set32_via_ptr(i32* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set32_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_set32_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -759,9 +759,9 @@ define arm_aapcs_vfpcc void @aese_set32_via_ptr(i32* %0, <16 x i8> %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i32, i32* %0, align 4 - %5 = bitcast <16 x i8>* %2 to <4 x i32>* - %6 = load <4 x i32>, <4 x i32>* %5, align 8 + %4 = load i32, ptr %0, align 4 + %5 = bitcast ptr %2 to ptr + %6 = load <4 x i32>, ptr %5, align 8 %7 = insertelement <4 x i32> %6, i32 %4, i64 0 %8 = bitcast <4 x i32> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <4 x i32> @@ -769,11 +769,11 @@ define arm_aapcs_vfpcc void @aese_set32_via_ptr(i32* %0, <16 x i8> %1, <16 x i8> %11 = bitcast <4 x i32> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set32_via_val(i32 %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set32_via_val(i32 %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aese_set32_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -784,8 +784,8 @@ define arm_aapcs_vfpcc void @aese_set32_via_val(i32 %0, <16 x i8> %1, <16 x i8>* ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <4 x i32>* - %5 = load <4 x i32>, <4 x i32>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <4 x i32>, ptr %4, align 8 %6 = insertelement <4 x i32> %5, i32 %0, i64 0 %7 = bitcast <4 x i32> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <4 x i32> @@ -793,11 +793,11 @@ define arm_aapcs_vfpcc void @aese_set32_via_val(i32 %0, <16 x i8> %1, <16 x i8>* %10 = bitcast <4 x i32> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set32_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set32_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -823,15 +823,15 @@ define arm_aapcs_vfpcc void @aese_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 br i1 %0, label %5, label %10 5: - %6 = load i32, i32* %1, align 4 - %7 = bitcast <16 x i8>* %3 to <4 x i32>* - %8 = load <4 x i32>, <4 x i32>* %7, align 8 + %6 = load i32, ptr %1, align 4 + %7 = bitcast ptr %3 to ptr + %8 = load <4 x i32>, ptr %7, align 8 %9 = insertelement <4 x i32> %8, i32 %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <4 x i32>* - %12 = load <4 x i32>, <4 x i32>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <4 x i32>, ptr %11, align 8 br label %13 13: @@ -839,7 +839,7 @@ define arm_aapcs_vfpcc void @aese_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 br i1 %0, label %15, label %19 15: - %16 = load i32, i32* %1, align 4 + %16 = load i32, ptr %1, align 4 %17 = bitcast <16 x i8> %2 to <4 x i32> %18 = insertelement <4 x i32> %17, i32 %16, i64 0 br label %21 @@ -854,11 +854,11 @@ define arm_aapcs_vfpcc void @aese_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 %24 = bitcast <4 x i32> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set32_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -877,8 +877,8 @@ define arm_aapcs_vfpcc void @aese_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <4 x i32>* - %6 = load <4 x i32>, <4 x i32>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <4 x i32>, ptr %5, align 8 %7 = insertelement <4 x i32> %6, i32 %1, i64 0 %8 = select i1 %0, <4 x i32> %7, <4 x i32> %6 %9 = bitcast <16 x i8> %2 to <4 x i32> @@ -888,11 +888,11 @@ define arm_aapcs_vfpcc void @aese_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 %13 = bitcast <4 x i32> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set32_loop_via_ptr(i32 %0, i32* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set32_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set32_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -911,21 +911,21 @@ define arm_aapcs_vfpcc void @aese_set32_loop_via_ptr(i32 %0, i32* %1, <16 x i8> ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load i32, i32* %1, align 4 + %5 = load i32, ptr %1, align 4 %6 = bitcast <16 x i8> %2 to <4 x i32> %7 = insertelement <4 x i32> %6, i32 %5, i64 0 %8 = bitcast <4 x i32> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to i32* - store i32 %5, i32* %9, align 8 + %9 = bitcast ptr %3 to ptr + store i32 %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -941,7 +941,7 @@ define arm_aapcs_vfpcc void @aese_set32_loop_via_ptr(i32 %0, i32* %1, <16 x i8> br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aese_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set32_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -966,8 +966,8 @@ define arm_aapcs_vfpcc void @aese_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> % %7 = bitcast <16 x i8> %2 to <4 x i32> %8 = insertelement <4 x i32> %7, i32 %1, i64 0 %9 = bitcast <4 x i32> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <4 x i32>* - %11 = bitcast <16 x i8>* %3 to i32* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -975,19 +975,19 @@ define arm_aapcs_vfpcc void @aese_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> % 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <4 x i32>, <4 x i32>* %10, align 8 + %15 = load <4 x i32>, ptr %10, align 8 %16 = insertelement <4 x i32> %15, i32 %1, i64 0 %17 = bitcast <4 x i32> %16 to <16 x i8> - store i32 %1, i32* %11, align 8 + store i32 %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aese_set64_via_ptr(i64* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set64_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_set64_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -1009,9 +1009,9 @@ define arm_aapcs_vfpcc void @aese_set64_via_ptr(i64* %0, <16 x i8> %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i64, i64* %0, align 8 - %5 = bitcast <16 x i8>* %2 to <2 x i64>* - %6 = load <2 x i64>, <2 x i64>* %5, align 8 + %4 = load i64, ptr %0, align 8 + %5 = bitcast ptr %2 to ptr + %6 = load <2 x i64>, ptr %5, align 8 %7 = insertelement <2 x i64> %6, i64 %4, i64 0 %8 = bitcast <2 x i64> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <2 x i64> @@ -1019,11 +1019,11 @@ define arm_aapcs_vfpcc void @aese_set64_via_ptr(i64* %0, <16 x i8> %1, <16 x i8> %11 = bitcast <2 x i64> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set64_via_val(i64 %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_set64_via_val(i64 %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aese_set64_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -1036,8 +1036,8 @@ define arm_aapcs_vfpcc void @aese_set64_via_val(i64 %0, <16 x i8> %1, <16 x i8>* ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <2 x i64>* - %5 = load <2 x i64>, <2 x i64>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <2 x i64>, ptr %4, align 8 %6 = insertelement <2 x i64> %5, i64 %0, i64 0 %7 = bitcast <2 x i64> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <2 x i64> @@ -1045,11 +1045,11 @@ define arm_aapcs_vfpcc void @aese_set64_via_val(i64 %0, <16 x i8> %1, <16 x i8>* %10 = bitcast <2 x i64> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set64_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_set64_cond_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: cmp r0, #0 @@ -1091,15 +1091,15 @@ define arm_aapcs_vfpcc void @aese_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 br i1 %0, label %5, label %10 5: - %6 = load i64, i64* %1, align 8 - %7 = bitcast <16 x i8>* %3 to <2 x i64>* - %8 = load <2 x i64>, <2 x i64>* %7, align 8 + %6 = load i64, ptr %1, align 8 + %7 = bitcast ptr %3 to ptr + %8 = load <2 x i64>, ptr %7, align 8 %9 = insertelement <2 x i64> %8, i64 %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <2 x i64>* - %12 = load <2 x i64>, <2 x i64>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <2 x i64>, ptr %11, align 8 br label %13 13: @@ -1107,7 +1107,7 @@ define arm_aapcs_vfpcc void @aese_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 br i1 %0, label %15, label %19 15: - %16 = load i64, i64* %1, align 8 + %16 = load i64, ptr %1, align 8 %17 = bitcast <16 x i8> %2 to <2 x i64> %18 = insertelement <2 x i64> %17, i64 %16, i64 0 br label %21 @@ -1122,11 +1122,11 @@ define arm_aapcs_vfpcc void @aese_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 %24 = bitcast <2 x i64> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set64_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -1148,8 +1148,8 @@ define arm_aapcs_vfpcc void @aese_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <2 x i64>* - %6 = load <2 x i64>, <2 x i64>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <2 x i64>, ptr %5, align 8 %7 = insertelement <2 x i64> %6, i64 %1, i64 0 %8 = select i1 %0, <2 x i64> %7, <2 x i64> %6 %9 = bitcast <16 x i8> %2 to <2 x i64> @@ -1159,11 +1159,11 @@ define arm_aapcs_vfpcc void @aese_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 %13 = bitcast <2 x i64> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_set64_loop_via_ptr(i32 %0, i64* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set64_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_set64_loop_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -1206,21 +1206,21 @@ define arm_aapcs_vfpcc void @aese_set64_loop_via_ptr(i32 %0, i64* %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: @ %bb.3: ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-CORTEX-FIX-NEXT: pop {r4, r5, r11, pc} - %5 = load i64, i64* %1, align 8 + %5 = load i64, ptr %1, align 8 %6 = bitcast <16 x i8> %2 to <2 x i64> %7 = insertelement <2 x i64> %6, i64 %5, i64 0 %8 = bitcast <2 x i64> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to i64* - store i64 %5, i64* %9, align 8 + %9 = bitcast ptr %3 to ptr + store i64 %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -1236,7 +1236,7 @@ define arm_aapcs_vfpcc void @aese_set64_loop_via_ptr(i32 %0, i64* %1, <16 x i8> br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aese_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_set64_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -1264,8 +1264,8 @@ define arm_aapcs_vfpcc void @aese_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> % %7 = bitcast <16 x i8> %2 to <2 x i64> %8 = insertelement <2 x i64> %7, i64 %1, i64 0 %9 = bitcast <2 x i64> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <2 x i64>* - %11 = bitcast <16 x i8>* %3 to i64* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -1273,19 +1273,19 @@ define arm_aapcs_vfpcc void @aese_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> % 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <2 x i64>, <2 x i64>* %10, align 8 + %15 = load <2 x i64>, ptr %10, align 8 %16 = insertelement <2 x i64> %15, i64 %1, i64 0 %17 = bitcast <2 x i64> %16 to <16 x i8> - store i64 %1, i64* %11, align 8 + store i64 %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aese_setf16_via_ptr(half* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_setf16_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_setf16_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -1309,10 +1309,10 @@ define arm_aapcs_vfpcc void @aese_setf16_via_ptr(half* %0, <16 x i8> %1, <16 x i ; CHECK-CORTEX-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = bitcast half* %0 to i16* - %5 = load i16, i16* %4, align 2 - %6 = bitcast <16 x i8>* %2 to <8 x i16>* - %7 = load <8 x i16>, <8 x i16>* %6, align 8 + %4 = bitcast ptr %0 to ptr + %5 = load i16, ptr %4, align 2 + %6 = bitcast ptr %2 to ptr + %7 = load <8 x i16>, ptr %6, align 8 %8 = insertelement <8 x i16> %7, i16 %5, i64 0 %9 = bitcast <8 x i16> %8 to <16 x i8> %10 = bitcast <16 x i8> %1 to <8 x i16> @@ -1320,11 +1320,11 @@ define arm_aapcs_vfpcc void @aese_setf16_via_ptr(half* %0, <16 x i8> %1, <16 x i %12 = bitcast <8 x i16> %11 to <16 x i8> %13 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %9, <16 x i8> %12) %14 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %13) - store <16 x i8> %14, <16 x i8>* %2, align 8 + store <16 x i8> %14, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf16_via_val(half %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_setf16_via_val(half %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aese_setf16_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q1, q1, q1 @@ -1336,8 +1336,8 @@ define arm_aapcs_vfpcc void @aese_setf16_via_val(half %0, <16 x i8> %1, <16 x i8 ; CHECK-FIX-NEXT: aesmc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r0] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <8 x i16>* - %5 = load <8 x i16>, <8 x i16>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <8 x i16>, ptr %4, align 8 %6 = bitcast half %0 to i16 %7 = insertelement <8 x i16> %5, i16 %6, i64 0 %8 = bitcast <8 x i16> %7 to <16 x i8> @@ -1346,11 +1346,11 @@ define arm_aapcs_vfpcc void @aese_setf16_via_val(half %0, <16 x i8> %1, <16 x i8 %11 = bitcast <8 x i16> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf16_cond_via_ptr(i1 zeroext %0, half* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf16_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_setf16_cond_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: .save {r4, r5, r6, r7, r8, r9, r10, r11, lr} @@ -1532,17 +1532,17 @@ define arm_aapcs_vfpcc void @aese_setf16_cond_via_ptr(i1 zeroext %0, half* %1, < br i1 %0, label %5, label %12 5: - %6 = bitcast half* %1 to i16* - %7 = load i16, i16* %6, align 2 - %8 = bitcast <16 x i8>* %3 to <8 x i16>* - %9 = load <8 x i16>, <8 x i16>* %8, align 8 + %6 = bitcast ptr %1 to ptr + %7 = load i16, ptr %6, align 2 + %8 = bitcast ptr %3 to ptr + %9 = load <8 x i16>, ptr %8, align 8 %10 = insertelement <8 x i16> %9, i16 %7, i64 0 %11 = bitcast <8 x i16> %10 to <8 x half> br label %15 12: - %13 = bitcast <16 x i8>* %3 to <8 x half>* - %14 = load <8 x half>, <8 x half>* %13, align 8 + %13 = bitcast ptr %3 to ptr + %14 = load <8 x half>, ptr %13, align 8 br label %15 15: @@ -1550,8 +1550,8 @@ define arm_aapcs_vfpcc void @aese_setf16_cond_via_ptr(i1 zeroext %0, half* %1, < br i1 %0, label %17, label %23 17: - %18 = bitcast half* %1 to i16* - %19 = load i16, i16* %18, align 2 + %18 = bitcast ptr %1 to ptr + %19 = load i16, ptr %18, align 2 %20 = bitcast <16 x i8> %2 to <8 x i16> %21 = insertelement <8 x i16> %20, i16 %19, i64 0 %22 = bitcast <8 x i16> %21 to <8 x half> @@ -1567,11 +1567,11 @@ define arm_aapcs_vfpcc void @aese_setf16_cond_via_ptr(i1 zeroext %0, half* %1, < %28 = bitcast <8 x half> %26 to <16 x i8> %29 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %27, <16 x i8> %28) %30 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %29) - store <16 x i8> %30, <16 x i8>* %3, align 8 + store <16 x i8> %30, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf16_cond_via_val(i1 zeroext %0, half %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf16_cond_via_val(i1 zeroext %0, half %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_setf16_cond_via_val: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: .save {r4, r5, r6, r7, r8, r9, r10, r11, lr} @@ -1753,16 +1753,16 @@ define arm_aapcs_vfpcc void @aese_setf16_cond_via_val(i1 zeroext %0, half %1, <1 br i1 %0, label %5, label %11 5: - %6 = bitcast <16 x i8>* %3 to <8 x i16>* - %7 = load <8 x i16>, <8 x i16>* %6, align 8 + %6 = bitcast ptr %3 to ptr + %7 = load <8 x i16>, ptr %6, align 8 %8 = bitcast half %1 to i16 %9 = insertelement <8 x i16> %7, i16 %8, i64 0 %10 = bitcast <8 x i16> %9 to <8 x half> br label %14 11: - %12 = bitcast <16 x i8>* %3 to <8 x half>* - %13 = load <8 x half>, <8 x half>* %12, align 8 + %12 = bitcast ptr %3 to ptr + %13 = load <8 x half>, ptr %12, align 8 br label %14 14: @@ -1786,11 +1786,11 @@ define arm_aapcs_vfpcc void @aese_setf16_cond_via_val(i1 zeroext %0, half %1, <1 %26 = bitcast <8 x half> %24 to <16 x i8> %27 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %25, <16 x i8> %26) %28 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %27) - store <16 x i8> %28, <16 x i8>* %3, align 8 + store <16 x i8> %28, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf16_loop_via_ptr(i32 %0, half* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf16_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_setf16_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -1809,22 +1809,22 @@ define arm_aapcs_vfpcc void @aese_setf16_loop_via_ptr(i32 %0, half* %1, <16 x i8 ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast half* %1 to i16* - %6 = load i16, i16* %5, align 2 + %5 = bitcast ptr %1 to ptr + %6 = load i16, ptr %5, align 2 %7 = bitcast <16 x i8> %2 to <8 x i16> %8 = insertelement <8 x i16> %7, i16 %6, i64 0 %9 = bitcast <8 x i16> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to i16* - store i16 %6, i16* %10, align 8 + %10 = bitcast ptr %3 to ptr + store i16 %6, ptr %10, align 8 %11 = icmp eq i32 %0, 0 br i1 %11, label %15, label %12 12: - %13 = load <16 x i8>, <16 x i8>* %3, align 8 + %13 = load <16 x i8>, ptr %3, align 8 br label %16 14: - store <16 x i8> %20, <16 x i8>* %3, align 8 + store <16 x i8> %20, ptr %3, align 8 br label %15 15: @@ -1840,7 +1840,7 @@ define arm_aapcs_vfpcc void @aese_setf16_loop_via_ptr(i32 %0, half* %1, <16 x i8 br i1 %22, label %14, label %16 } -define arm_aapcs_vfpcc void @aese_setf16_loop_via_val(i32 %0, half %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf16_loop_via_val(i32 %0, half %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_setf16_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q1, q1, q1 @@ -1867,8 +1867,8 @@ define arm_aapcs_vfpcc void @aese_setf16_loop_via_val(i32 %0, half %1, <16 x i8> %8 = bitcast half %1 to i16 %9 = insertelement <8 x i16> %7, i16 %8, i64 0 %10 = bitcast <8 x i16> %9 to <16 x i8> - %11 = bitcast <16 x i8>* %3 to <8 x i16>* - %12 = bitcast <16 x i8>* %3 to half* + %11 = bitcast ptr %3 to ptr + %12 = bitcast ptr %3 to ptr br label %14 13: @@ -1876,19 +1876,19 @@ define arm_aapcs_vfpcc void @aese_setf16_loop_via_val(i32 %0, half %1, <16 x i8> 14: %15 = phi i32 [ 0, %6 ], [ %21, %14 ] - %16 = load <8 x i16>, <8 x i16>* %11, align 8 + %16 = load <8 x i16>, ptr %11, align 8 %17 = insertelement <8 x i16> %16, i16 %8, i64 0 %18 = bitcast <8 x i16> %17 to <16 x i8> - store half %1, half* %12, align 8 + store half %1, ptr %12, align 8 %19 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %18, <16 x i8> %10) %20 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %19) - store <16 x i8> %20, <16 x i8>* %3, align 8 + store <16 x i8> %20, ptr %3, align 8 %21 = add nuw i32 %15, 1 %22 = icmp eq i32 %21, %0 br i1 %22, label %13, label %14 } -define arm_aapcs_vfpcc void @aese_setf32_via_ptr(float* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_setf32_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aese_setf32_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vldr s0, [r0] @@ -1900,9 +1900,9 @@ define arm_aapcs_vfpcc void @aese_setf32_via_ptr(float* %0, <16 x i8> %1, <16 x ; CHECK-FIX-NEXT: aesmc.8 q8, q1 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = load float, float* %0, align 4 - %5 = bitcast <16 x i8>* %2 to <4 x float>* - %6 = load <4 x float>, <4 x float>* %5, align 8 + %4 = load float, ptr %0, align 4 + %5 = bitcast ptr %2 to ptr + %6 = load <4 x float>, ptr %5, align 8 %7 = insertelement <4 x float> %6, float %4, i64 0 %8 = bitcast <4 x float> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <4 x float> @@ -1910,11 +1910,11 @@ define arm_aapcs_vfpcc void @aese_setf32_via_ptr(float* %0, <16 x i8> %1, <16 x %11 = bitcast <4 x float> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf32_via_val(float %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aese_setf32_via_val(float %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aese_setf32_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vmov.f32 s4, s0 @@ -1926,8 +1926,8 @@ define arm_aapcs_vfpcc void @aese_setf32_via_val(float %0, <16 x i8> %1, <16 x i ; CHECK-FIX-NEXT: aesmc.8 q8, q0 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r0] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <4 x float>* - %5 = load <4 x float>, <4 x float>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <4 x float>, ptr %4, align 8 %6 = insertelement <4 x float> %5, float %0, i64 0 %7 = bitcast <4 x float> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <4 x float> @@ -1935,11 +1935,11 @@ define arm_aapcs_vfpcc void @aese_setf32_via_val(float %0, <16 x i8> %1, <16 x i %10 = bitcast <4 x float> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf32_cond_via_ptr(i1 zeroext %0, float* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf32_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aese_setf32_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -1965,15 +1965,15 @@ define arm_aapcs_vfpcc void @aese_setf32_cond_via_ptr(i1 zeroext %0, float* %1, br i1 %0, label %5, label %10 5: - %6 = load float, float* %1, align 4 - %7 = bitcast <16 x i8>* %3 to <4 x float>* - %8 = load <4 x float>, <4 x float>* %7, align 8 + %6 = load float, ptr %1, align 4 + %7 = bitcast ptr %3 to ptr + %8 = load <4 x float>, ptr %7, align 8 %9 = insertelement <4 x float> %8, float %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <4 x float>* - %12 = load <4 x float>, <4 x float>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <4 x float>, ptr %11, align 8 br label %13 13: @@ -1981,7 +1981,7 @@ define arm_aapcs_vfpcc void @aese_setf32_cond_via_ptr(i1 zeroext %0, float* %1, br i1 %0, label %15, label %19 15: - %16 = load float, float* %1, align 4 + %16 = load float, ptr %1, align 4 %17 = bitcast <16 x i8> %2 to <4 x float> %18 = insertelement <4 x float> %17, float %16, i64 0 br label %21 @@ -1996,11 +1996,11 @@ define arm_aapcs_vfpcc void @aese_setf32_cond_via_ptr(i1 zeroext %0, float* %1, %24 = bitcast <4 x float> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf32_cond_via_val(i1 zeroext %0, float %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf32_cond_via_val(i1 zeroext %0, float %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_setf32_cond_via_val: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vld1.64 {d4, d5}, [r1] @@ -2028,8 +2028,8 @@ define arm_aapcs_vfpcc void @aese_setf32_cond_via_val(i1 zeroext %0, float %1, < ; CHECK-CORTEX-FIX-NEXT: aesmc.8 q8, q2 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <4 x float>* - %6 = load <4 x float>, <4 x float>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <4 x float>, ptr %5, align 8 %7 = insertelement <4 x float> %6, float %1, i64 0 %8 = select i1 %0, <4 x float> %7, <4 x float> %6 %9 = bitcast <16 x i8> %2 to <4 x float> @@ -2039,11 +2039,11 @@ define arm_aapcs_vfpcc void @aese_setf32_cond_via_val(i1 zeroext %0, float %1, < %13 = bitcast <4 x float> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aese_setf32_loop_via_ptr(i32 %0, float* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf32_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_setf32_loop_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vldr s4, [r1] @@ -2081,21 +2081,21 @@ define arm_aapcs_vfpcc void @aese_setf32_loop_via_ptr(i32 %0, float* %1, <16 x i ; CHECK-CORTEX-FIX-NEXT: @ %bb.3: ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-CORTEX-FIX-NEXT: bx lr - %5 = load float, float* %1, align 4 + %5 = load float, ptr %1, align 4 %6 = bitcast <16 x i8> %2 to <4 x float> %7 = insertelement <4 x float> %6, float %5, i64 0 %8 = bitcast <4 x float> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to float* - store float %5, float* %9, align 8 + %9 = bitcast ptr %3 to ptr + store float %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -2111,7 +2111,7 @@ define arm_aapcs_vfpcc void @aese_setf32_loop_via_ptr(i32 %0, float* %1, <16 x i br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aese_setf32_loop_via_val(i32 %0, float %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aese_setf32_loop_via_val(i32 %0, float %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_setf32_loop_via_val: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: cmp r0, #0 @@ -2156,8 +2156,8 @@ define arm_aapcs_vfpcc void @aese_setf32_loop_via_val(i32 %0, float %1, <16 x i8 %7 = bitcast <16 x i8> %2 to <4 x float> %8 = insertelement <4 x float> %7, float %1, i64 0 %9 = bitcast <4 x float> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <4 x float>* - %11 = bitcast <16 x i8>* %3 to float* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -2165,19 +2165,19 @@ define arm_aapcs_vfpcc void @aese_setf32_loop_via_val(i32 %0, float %1, <16 x i8 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <4 x float>, <4 x float>* %10, align 8 + %15 = load <4 x float>, ptr %10, align 8 %16 = insertelement <4 x float> %15, float %1, i64 0 %17 = bitcast <4 x float> %16 to <16 x i8> - store float %1, float* %11, align 8 + store float %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aesd_zero(<16 x i8>* %0) nounwind { +define arm_aapcs_vfpcc void @aesd_zero(ptr %0) nounwind { ; CHECK-FIX-LABEL: aesd_zero: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vld1.64 {d16, d17}, [r0] @@ -2186,14 +2186,14 @@ define arm_aapcs_vfpcc void @aesd_zero(<16 x i8>* %0) nounwind { ; CHECK-FIX-NEXT: aesimc.8 q8, q9 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r0] ; CHECK-FIX-NEXT: bx lr - %2 = load <16 x i8>, <16 x i8>* %0, align 8 + %2 = load <16 x i8>, ptr %0, align 8 %3 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> zeroinitializer, <16 x i8> %2) %4 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %3) - store <16 x i8> %4, <16 x i8>* %0, align 8 + store <16 x i8> %4, ptr %0, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_via_call1(<16 x i8>* %0) nounwind { +define arm_aapcs_vfpcc void @aesd_via_call1(ptr %0) nounwind { ; CHECK-FIX-LABEL: aesd_via_call1: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: .save {r4, lr} @@ -2207,14 +2207,14 @@ define arm_aapcs_vfpcc void @aesd_via_call1(<16 x i8>* %0) nounwind { ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r4] ; CHECK-FIX-NEXT: pop {r4, pc} %2 = call arm_aapcs_vfpcc <16 x i8> @get_input() - %3 = load <16 x i8>, <16 x i8>* %0, align 8 + %3 = load <16 x i8>, ptr %0, align 8 %4 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %2, <16 x i8> %3) %5 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %4) - store <16 x i8> %5, <16 x i8>* %0, align 8 + store <16 x i8> %5, ptr %0, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_via_call2(half %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aesd_via_call2(half %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aesd_via_call2: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: .save {r4, lr} @@ -2228,14 +2228,14 @@ define arm_aapcs_vfpcc void @aesd_via_call2(half %0, <16 x i8>* %1) nounwind { ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r4] ; CHECK-FIX-NEXT: pop {r4, pc} %3 = call arm_aapcs_vfpcc <16 x i8> @get_inputf16(half %0) - %4 = load <16 x i8>, <16 x i8>* %1, align 8 + %4 = load <16 x i8>, ptr %1, align 8 %5 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 + store <16 x i8> %6, ptr %1, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_via_call3(float %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aesd_via_call3(float %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aesd_via_call3: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: .save {r4, lr} @@ -2249,14 +2249,14 @@ define arm_aapcs_vfpcc void @aesd_via_call3(float %0, <16 x i8>* %1) nounwind { ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r4] ; CHECK-FIX-NEXT: pop {r4, pc} %3 = call arm_aapcs_vfpcc <16 x i8> @get_inputf32(float %0) - %4 = load <16 x i8>, <16 x i8>* %1, align 8 + %4 = load <16 x i8>, ptr %1, align 8 %5 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 + store <16 x i8> %6, ptr %1, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_once_via_ptr(<16 x i8>* %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aesd_once_via_ptr(ptr %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aesd_once_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vld1.64 {d16, d17}, [r0] @@ -2265,11 +2265,11 @@ define arm_aapcs_vfpcc void @aesd_once_via_ptr(<16 x i8>* %0, <16 x i8>* %1) nou ; CHECK-FIX-NEXT: aesimc.8 q8, q9 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %3 = load <16 x i8>, <16 x i8>* %1, align 8 - %4 = load <16 x i8>, <16 x i8>* %0, align 8 + %3 = load <16 x i8>, ptr %1, align 8 + %4 = load <16 x i8>, ptr %0, align 8 %5 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 + store <16 x i8> %6, ptr %1, align 8 ret void } @@ -2286,7 +2286,7 @@ define arm_aapcs_vfpcc <16 x i8> @aesd_once_via_val(<16 x i8> %0, <16 x i8> %1) ret <16 x i8> %4 } -define arm_aapcs_vfpcc void @aesd_twice_via_ptr(<16 x i8>* %0, <16 x i8>* %1) nounwind { +define arm_aapcs_vfpcc void @aesd_twice_via_ptr(ptr %0, ptr %1) nounwind { ; CHECK-FIX-LABEL: aesd_twice_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vld1.64 {d16, d17}, [r0] @@ -2299,15 +2299,15 @@ define arm_aapcs_vfpcc void @aesd_twice_via_ptr(<16 x i8>* %0, <16 x i8>* %1) no ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %3 = load <16 x i8>, <16 x i8>* %1, align 8 - %4 = load <16 x i8>, <16 x i8>* %0, align 8 + %3 = load <16 x i8>, ptr %1, align 8 + %4 = load <16 x i8>, ptr %0, align 8 %5 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %3, <16 x i8> %4) %6 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %5) - store <16 x i8> %6, <16 x i8>* %1, align 8 - %7 = load <16 x i8>, <16 x i8>* %0, align 8 + store <16 x i8> %6, ptr %1, align 8 + %7 = load <16 x i8>, ptr %0, align 8 %8 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %6, <16 x i8> %7) %9 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %8) - store <16 x i8> %9, <16 x i8>* %1, align 8 + store <16 x i8> %9, ptr %1, align 8 ret void } @@ -2329,7 +2329,7 @@ define arm_aapcs_vfpcc <16 x i8> @aesd_twice_via_val(<16 x i8> %0, <16 x i8> %1) ret <16 x i8> %6 } -define arm_aapcs_vfpcc void @aesd_loop_via_ptr(i32 %0, <16 x i8>* %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_loop_via_ptr(i32 %0, ptr %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_loop_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: cmp r0, #0 @@ -2367,11 +2367,11 @@ define arm_aapcs_vfpcc void @aesd_loop_via_ptr(i32 %0, <16 x i8>* %1, <16 x i8>* 6: %7 = phi i32 [ %12, %6 ], [ 0, %3 ] - %8 = load <16 x i8>, <16 x i8>* %2, align 8 - %9 = load <16 x i8>, <16 x i8>* %1, align 8 + %8 = load <16 x i8>, ptr %2, align 8 + %9 = load <16 x i8>, ptr %1, align 8 %10 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %8, <16 x i8> %9) %11 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %10) - store <16 x i8> %11, <16 x i8>* %2, align 8 + store <16 x i8> %11, ptr %2, align 8 %12 = add nuw i32 %7, 1 %13 = icmp eq i32 %12, %0 br i1 %13, label %5, label %6 @@ -2409,7 +2409,7 @@ define arm_aapcs_vfpcc <16 x i8> @aesd_loop_via_val(i32 %0, <16 x i8> %1, <16 x br i1 %13, label %5, label %7 } -define arm_aapcs_vfpcc void @aesd_set8_via_ptr(i8* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set8_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_set8_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -2433,17 +2433,17 @@ define arm_aapcs_vfpcc void @aesd_set8_via_ptr(i8* %0, <16 x i8> %1, <16 x i8>* ; CHECK-CORTEX-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i8, i8* %0, align 1 - %5 = load <16 x i8>, <16 x i8>* %2, align 8 + %4 = load i8, ptr %0, align 1 + %5 = load <16 x i8>, ptr %2, align 8 %6 = insertelement <16 x i8> %5, i8 %4, i64 0 %7 = insertelement <16 x i8> %1, i8 %4, i64 0 %8 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %6, <16 x i8> %7) %9 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %8) - store <16 x i8> %9, <16 x i8>* %2, align 8 + store <16 x i8> %9, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set8_via_val(i8 zeroext %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set8_via_val(i8 zeroext %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aesd_set8_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2454,16 +2454,16 @@ define arm_aapcs_vfpcc void @aesd_set8_via_val(i8 zeroext %0, <16 x i8> %1, <16 ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = load <16 x i8>, <16 x i8>* %2, align 8 + %4 = load <16 x i8>, ptr %2, align 8 %5 = insertelement <16 x i8> %4, i8 %0, i64 0 %6 = insertelement <16 x i8> %1, i8 %0, i64 0 %7 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %5, <16 x i8> %6) %8 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %7) - store <16 x i8> %8, <16 x i8>* %2, align 8 + store <16 x i8> %8, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set8_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set8_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2489,13 +2489,13 @@ define arm_aapcs_vfpcc void @aesd_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x br i1 %0, label %5, label %9 5: - %6 = load i8, i8* %1, align 1 - %7 = load <16 x i8>, <16 x i8>* %3, align 8 + %6 = load i8, ptr %1, align 1 + %7 = load <16 x i8>, ptr %3, align 8 %8 = insertelement <16 x i8> %7, i8 %6, i64 0 br label %11 9: - %10 = load <16 x i8>, <16 x i8>* %3, align 8 + %10 = load <16 x i8>, ptr %3, align 8 br label %11 11: @@ -2503,7 +2503,7 @@ define arm_aapcs_vfpcc void @aesd_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x br i1 %0, label %13, label %16 13: - %14 = load i8, i8* %1, align 1 + %14 = load i8, ptr %1, align 1 %15 = insertelement <16 x i8> %2, i8 %14, i64 0 br label %16 @@ -2511,11 +2511,11 @@ define arm_aapcs_vfpcc void @aesd_set8_cond_via_ptr(i1 zeroext %0, i8* %1, <16 x %17 = phi <16 x i8> [ %15, %13 ], [ %2, %11 ] %18 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %12, <16 x i8> %17) %19 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set8_cond_via_val(i1 zeroext %0, i8 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set8_cond_via_val(i1 zeroext %0, i8 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set8_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2534,18 +2534,18 @@ define arm_aapcs_vfpcc void @aesd_set8_cond_via_val(i1 zeroext %0, i8 zeroext %1 ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load <16 x i8>, <16 x i8>* %3, align 8 + %5 = load <16 x i8>, ptr %3, align 8 %6 = insertelement <16 x i8> %5, i8 %1, i64 0 %7 = select i1 %0, <16 x i8> %6, <16 x i8> %5 %8 = insertelement <16 x i8> %2, i8 %1, i64 0 %9 = select i1 %0, <16 x i8> %8, <16 x i8> %2 %10 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %7, <16 x i8> %9) %11 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %10) - store <16 x i8> %11, <16 x i8>* %3, align 8 + store <16 x i8> %11, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set8_loop_via_ptr(i32 %0, i8* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set8_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set8_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2564,19 +2564,19 @@ define arm_aapcs_vfpcc void @aesd_set8_loop_via_ptr(i32 %0, i8* %1, <16 x i8> %2 ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load i8, i8* %1, align 1 + %5 = load i8, ptr %1, align 1 %6 = insertelement <16 x i8> %2, i8 %5, i64 0 - %7 = getelementptr inbounds <16 x i8>, <16 x i8>* %3, i32 0, i32 0 - store i8 %5, i8* %7, align 8 + %7 = getelementptr inbounds <16 x i8>, ptr %3, i32 0, i32 0 + store i8 %5, ptr %7, align 8 %8 = icmp eq i32 %0, 0 br i1 %8, label %12, label %9 9: - %10 = load <16 x i8>, <16 x i8>* %3, align 8 + %10 = load <16 x i8>, ptr %3, align 8 br label %13 11: - store <16 x i8> %17, <16 x i8>* %3, align 8 + store <16 x i8> %17, ptr %3, align 8 br label %12 12: @@ -2592,7 +2592,7 @@ define arm_aapcs_vfpcc void @aesd_set8_loop_via_ptr(i32 %0, i8* %1, <16 x i8> %2 br i1 %19, label %11, label %13 } -define arm_aapcs_vfpcc void @aesd_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set8_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2615,11 +2615,11 @@ define arm_aapcs_vfpcc void @aesd_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x 6: %7 = insertelement <16 x i8> %2, i8 %1, i64 0 - %8 = load <16 x i8>, <16 x i8>* %3, align 8 + %8 = load <16 x i8>, ptr %3, align 8 br label %11 9: - store <16 x i8> %16, <16 x i8>* %3, align 8 + store <16 x i8> %16, ptr %3, align 8 br label %10 10: @@ -2636,7 +2636,7 @@ define arm_aapcs_vfpcc void @aesd_set8_loop_via_val(i32 %0, i8 zeroext %1, <16 x br i1 %18, label %9, label %11 } -define arm_aapcs_vfpcc void @aesd_set16_via_ptr(i16* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set16_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_set16_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -2660,9 +2660,9 @@ define arm_aapcs_vfpcc void @aesd_set16_via_ptr(i16* %0, <16 x i8> %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i16, i16* %0, align 2 - %5 = bitcast <16 x i8>* %2 to <8 x i16>* - %6 = load <8 x i16>, <8 x i16>* %5, align 8 + %4 = load i16, ptr %0, align 2 + %5 = bitcast ptr %2 to ptr + %6 = load <8 x i16>, ptr %5, align 8 %7 = insertelement <8 x i16> %6, i16 %4, i64 0 %8 = bitcast <8 x i16> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <8 x i16> @@ -2670,11 +2670,11 @@ define arm_aapcs_vfpcc void @aesd_set16_via_ptr(i16* %0, <16 x i8> %1, <16 x i8> %11 = bitcast <8 x i16> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set16_via_val(i16 zeroext %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set16_via_val(i16 zeroext %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aesd_set16_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2685,8 +2685,8 @@ define arm_aapcs_vfpcc void @aesd_set16_via_val(i16 zeroext %0, <16 x i8> %1, <1 ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <8 x i16>* - %5 = load <8 x i16>, <8 x i16>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <8 x i16>, ptr %4, align 8 %6 = insertelement <8 x i16> %5, i16 %0, i64 0 %7 = bitcast <8 x i16> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <8 x i16> @@ -2694,11 +2694,11 @@ define arm_aapcs_vfpcc void @aesd_set16_via_val(i16 zeroext %0, <16 x i8> %1, <1 %10 = bitcast <8 x i16> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set16_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set16_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2724,15 +2724,15 @@ define arm_aapcs_vfpcc void @aesd_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 br i1 %0, label %5, label %10 5: - %6 = load i16, i16* %1, align 2 - %7 = bitcast <16 x i8>* %3 to <8 x i16>* - %8 = load <8 x i16>, <8 x i16>* %7, align 8 + %6 = load i16, ptr %1, align 2 + %7 = bitcast ptr %3 to ptr + %8 = load <8 x i16>, ptr %7, align 8 %9 = insertelement <8 x i16> %8, i16 %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <8 x i16>* - %12 = load <8 x i16>, <8 x i16>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <8 x i16>, ptr %11, align 8 br label %13 13: @@ -2740,7 +2740,7 @@ define arm_aapcs_vfpcc void @aesd_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 br i1 %0, label %15, label %19 15: - %16 = load i16, i16* %1, align 2 + %16 = load i16, ptr %1, align 2 %17 = bitcast <16 x i8> %2 to <8 x i16> %18 = insertelement <8 x i16> %17, i16 %16, i64 0 br label %21 @@ -2755,11 +2755,11 @@ define arm_aapcs_vfpcc void @aesd_set16_cond_via_ptr(i1 zeroext %0, i16* %1, <16 %24 = bitcast <8 x i16> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set16_cond_via_val(i1 zeroext %0, i16 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set16_cond_via_val(i1 zeroext %0, i16 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set16_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2778,8 +2778,8 @@ define arm_aapcs_vfpcc void @aesd_set16_cond_via_val(i1 zeroext %0, i16 zeroext ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <8 x i16>* - %6 = load <8 x i16>, <8 x i16>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <8 x i16>, ptr %5, align 8 %7 = insertelement <8 x i16> %6, i16 %1, i64 0 %8 = select i1 %0, <8 x i16> %7, <8 x i16> %6 %9 = bitcast <16 x i8> %2 to <8 x i16> @@ -2789,11 +2789,11 @@ define arm_aapcs_vfpcc void @aesd_set16_cond_via_val(i1 zeroext %0, i16 zeroext %13 = bitcast <8 x i16> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set16_loop_via_ptr(i32 %0, i16* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set16_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set16_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2812,21 +2812,21 @@ define arm_aapcs_vfpcc void @aesd_set16_loop_via_ptr(i32 %0, i16* %1, <16 x i8> ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load i16, i16* %1, align 2 + %5 = load i16, ptr %1, align 2 %6 = bitcast <16 x i8> %2 to <8 x i16> %7 = insertelement <8 x i16> %6, i16 %5, i64 0 %8 = bitcast <8 x i16> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to i16* - store i16 %5, i16* %9, align 8 + %9 = bitcast ptr %3 to ptr + store i16 %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -2842,7 +2842,7 @@ define arm_aapcs_vfpcc void @aesd_set16_loop_via_ptr(i32 %0, i16* %1, <16 x i8> br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aesd_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set16_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2867,8 +2867,8 @@ define arm_aapcs_vfpcc void @aesd_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 %7 = bitcast <16 x i8> %2 to <8 x i16> %8 = insertelement <8 x i16> %7, i16 %1, i64 0 %9 = bitcast <8 x i16> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <8 x i16>* - %11 = bitcast <16 x i8>* %3 to i16* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -2876,19 +2876,19 @@ define arm_aapcs_vfpcc void @aesd_set16_loop_via_val(i32 %0, i16 zeroext %1, <16 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <8 x i16>, <8 x i16>* %10, align 8 + %15 = load <8 x i16>, ptr %10, align 8 %16 = insertelement <8 x i16> %15, i16 %1, i64 0 %17 = bitcast <8 x i16> %16 to <16 x i8> - store i16 %1, i16* %11, align 8 + store i16 %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aesd_set32_via_ptr(i32* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set32_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_set32_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -2912,9 +2912,9 @@ define arm_aapcs_vfpcc void @aesd_set32_via_ptr(i32* %0, <16 x i8> %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i32, i32* %0, align 4 - %5 = bitcast <16 x i8>* %2 to <4 x i32>* - %6 = load <4 x i32>, <4 x i32>* %5, align 8 + %4 = load i32, ptr %0, align 4 + %5 = bitcast ptr %2 to ptr + %6 = load <4 x i32>, ptr %5, align 8 %7 = insertelement <4 x i32> %6, i32 %4, i64 0 %8 = bitcast <4 x i32> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <4 x i32> @@ -2922,11 +2922,11 @@ define arm_aapcs_vfpcc void @aesd_set32_via_ptr(i32* %0, <16 x i8> %1, <16 x i8> %11 = bitcast <4 x i32> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set32_via_val(i32 %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set32_via_val(i32 %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aesd_set32_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2937,8 +2937,8 @@ define arm_aapcs_vfpcc void @aesd_set32_via_val(i32 %0, <16 x i8> %1, <16 x i8>* ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <4 x i32>* - %5 = load <4 x i32>, <4 x i32>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <4 x i32>, ptr %4, align 8 %6 = insertelement <4 x i32> %5, i32 %0, i64 0 %7 = bitcast <4 x i32> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <4 x i32> @@ -2946,11 +2946,11 @@ define arm_aapcs_vfpcc void @aesd_set32_via_val(i32 %0, <16 x i8> %1, <16 x i8>* %10 = bitcast <4 x i32> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set32_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set32_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -2976,15 +2976,15 @@ define arm_aapcs_vfpcc void @aesd_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 br i1 %0, label %5, label %10 5: - %6 = load i32, i32* %1, align 4 - %7 = bitcast <16 x i8>* %3 to <4 x i32>* - %8 = load <4 x i32>, <4 x i32>* %7, align 8 + %6 = load i32, ptr %1, align 4 + %7 = bitcast ptr %3 to ptr + %8 = load <4 x i32>, ptr %7, align 8 %9 = insertelement <4 x i32> %8, i32 %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <4 x i32>* - %12 = load <4 x i32>, <4 x i32>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <4 x i32>, ptr %11, align 8 br label %13 13: @@ -2992,7 +2992,7 @@ define arm_aapcs_vfpcc void @aesd_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 br i1 %0, label %15, label %19 15: - %16 = load i32, i32* %1, align 4 + %16 = load i32, ptr %1, align 4 %17 = bitcast <16 x i8> %2 to <4 x i32> %18 = insertelement <4 x i32> %17, i32 %16, i64 0 br label %21 @@ -3007,11 +3007,11 @@ define arm_aapcs_vfpcc void @aesd_set32_cond_via_ptr(i1 zeroext %0, i32* %1, <16 %24 = bitcast <4 x i32> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set32_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -3030,8 +3030,8 @@ define arm_aapcs_vfpcc void @aesd_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <4 x i32>* - %6 = load <4 x i32>, <4 x i32>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <4 x i32>, ptr %5, align 8 %7 = insertelement <4 x i32> %6, i32 %1, i64 0 %8 = select i1 %0, <4 x i32> %7, <4 x i32> %6 %9 = bitcast <16 x i8> %2 to <4 x i32> @@ -3041,11 +3041,11 @@ define arm_aapcs_vfpcc void @aesd_set32_cond_via_val(i1 zeroext %0, i32 %1, <16 %13 = bitcast <4 x i32> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set32_loop_via_ptr(i32 %0, i32* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set32_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set32_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -3064,21 +3064,21 @@ define arm_aapcs_vfpcc void @aesd_set32_loop_via_ptr(i32 %0, i32* %1, <16 x i8> ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = load i32, i32* %1, align 4 + %5 = load i32, ptr %1, align 4 %6 = bitcast <16 x i8> %2 to <4 x i32> %7 = insertelement <4 x i32> %6, i32 %5, i64 0 %8 = bitcast <4 x i32> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to i32* - store i32 %5, i32* %9, align 8 + %9 = bitcast ptr %3 to ptr + store i32 %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -3094,7 +3094,7 @@ define arm_aapcs_vfpcc void @aesd_set32_loop_via_ptr(i32 %0, i32* %1, <16 x i8> br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aesd_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set32_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -3119,8 +3119,8 @@ define arm_aapcs_vfpcc void @aesd_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> % %7 = bitcast <16 x i8> %2 to <4 x i32> %8 = insertelement <4 x i32> %7, i32 %1, i64 0 %9 = bitcast <4 x i32> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <4 x i32>* - %11 = bitcast <16 x i8>* %3 to i32* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -3128,19 +3128,19 @@ define arm_aapcs_vfpcc void @aesd_set32_loop_via_val(i32 %0, i32 %1, <16 x i8> % 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <4 x i32>, <4 x i32>* %10, align 8 + %15 = load <4 x i32>, ptr %10, align 8 %16 = insertelement <4 x i32> %15, i32 %1, i64 0 %17 = bitcast <4 x i32> %16 to <16 x i8> - store i32 %1, i32* %11, align 8 + store i32 %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aesd_set64_via_ptr(i64* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set64_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_set64_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -3162,9 +3162,9 @@ define arm_aapcs_vfpcc void @aesd_set64_via_ptr(i64* %0, <16 x i8> %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = load i64, i64* %0, align 8 - %5 = bitcast <16 x i8>* %2 to <2 x i64>* - %6 = load <2 x i64>, <2 x i64>* %5, align 8 + %4 = load i64, ptr %0, align 8 + %5 = bitcast ptr %2 to ptr + %6 = load <2 x i64>, ptr %5, align 8 %7 = insertelement <2 x i64> %6, i64 %4, i64 0 %8 = bitcast <2 x i64> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <2 x i64> @@ -3172,11 +3172,11 @@ define arm_aapcs_vfpcc void @aesd_set64_via_ptr(i64* %0, <16 x i8> %1, <16 x i8> %11 = bitcast <2 x i64> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set64_via_val(i64 %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_set64_via_val(i64 %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aesd_set64_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -3189,8 +3189,8 @@ define arm_aapcs_vfpcc void @aesd_set64_via_val(i64 %0, <16 x i8> %1, <16 x i8>* ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <2 x i64>* - %5 = load <2 x i64>, <2 x i64>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <2 x i64>, ptr %4, align 8 %6 = insertelement <2 x i64> %5, i64 %0, i64 0 %7 = bitcast <2 x i64> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <2 x i64> @@ -3198,11 +3198,11 @@ define arm_aapcs_vfpcc void @aesd_set64_via_val(i64 %0, <16 x i8> %1, <16 x i8>* %10 = bitcast <2 x i64> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set64_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_set64_cond_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: cmp r0, #0 @@ -3244,15 +3244,15 @@ define arm_aapcs_vfpcc void @aesd_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 br i1 %0, label %5, label %10 5: - %6 = load i64, i64* %1, align 8 - %7 = bitcast <16 x i8>* %3 to <2 x i64>* - %8 = load <2 x i64>, <2 x i64>* %7, align 8 + %6 = load i64, ptr %1, align 8 + %7 = bitcast ptr %3 to ptr + %8 = load <2 x i64>, ptr %7, align 8 %9 = insertelement <2 x i64> %8, i64 %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <2 x i64>* - %12 = load <2 x i64>, <2 x i64>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <2 x i64>, ptr %11, align 8 br label %13 13: @@ -3260,7 +3260,7 @@ define arm_aapcs_vfpcc void @aesd_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 br i1 %0, label %15, label %19 15: - %16 = load i64, i64* %1, align 8 + %16 = load i64, ptr %1, align 8 %17 = bitcast <16 x i8> %2 to <2 x i64> %18 = insertelement <2 x i64> %17, i64 %16, i64 0 br label %21 @@ -3275,11 +3275,11 @@ define arm_aapcs_vfpcc void @aesd_set64_cond_via_ptr(i1 zeroext %0, i64* %1, <16 %24 = bitcast <2 x i64> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set64_cond_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -3301,8 +3301,8 @@ define arm_aapcs_vfpcc void @aesd_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <2 x i64>* - %6 = load <2 x i64>, <2 x i64>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <2 x i64>, ptr %5, align 8 %7 = insertelement <2 x i64> %6, i64 %1, i64 0 %8 = select i1 %0, <2 x i64> %7, <2 x i64> %6 %9 = bitcast <16 x i8> %2 to <2 x i64> @@ -3312,11 +3312,11 @@ define arm_aapcs_vfpcc void @aesd_set64_cond_via_val(i1 zeroext %0, i64 %1, <16 %13 = bitcast <2 x i64> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_set64_loop_via_ptr(i32 %0, i64* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set64_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_set64_loop_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -3359,21 +3359,21 @@ define arm_aapcs_vfpcc void @aesd_set64_loop_via_ptr(i32 %0, i64* %1, <16 x i8> ; CHECK-CORTEX-FIX-NEXT: @ %bb.3: ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-CORTEX-FIX-NEXT: pop {r4, r5, r11, pc} - %5 = load i64, i64* %1, align 8 + %5 = load i64, ptr %1, align 8 %6 = bitcast <16 x i8> %2 to <2 x i64> %7 = insertelement <2 x i64> %6, i64 %5, i64 0 %8 = bitcast <2 x i64> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to i64* - store i64 %5, i64* %9, align 8 + %9 = bitcast ptr %3 to ptr + store i64 %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -3389,7 +3389,7 @@ define arm_aapcs_vfpcc void @aesd_set64_loop_via_ptr(i32 %0, i64* %1, <16 x i8> br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aesd_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_set64_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -3417,8 +3417,8 @@ define arm_aapcs_vfpcc void @aesd_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> % %7 = bitcast <16 x i8> %2 to <2 x i64> %8 = insertelement <2 x i64> %7, i64 %1, i64 0 %9 = bitcast <2 x i64> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <2 x i64>* - %11 = bitcast <16 x i8>* %3 to i64* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -3426,19 +3426,19 @@ define arm_aapcs_vfpcc void @aesd_set64_loop_via_val(i32 %0, i64 %1, <16 x i8> % 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <2 x i64>, <2 x i64>* %10, align 8 + %15 = load <2 x i64>, ptr %10, align 8 %16 = insertelement <2 x i64> %15, i64 %1, i64 0 %17 = bitcast <2 x i64> %16 to <16 x i8> - store i64 %1, i64* %11, align 8 + store i64 %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aesd_setf16_via_ptr(half* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_setf16_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_setf16_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vorr q0, q0, q0 @@ -3462,10 +3462,10 @@ define arm_aapcs_vfpcc void @aesd_setf16_via_ptr(half* %0, <16 x i8> %1, <16 x i ; CHECK-CORTEX-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %4 = bitcast half* %0 to i16* - %5 = load i16, i16* %4, align 2 - %6 = bitcast <16 x i8>* %2 to <8 x i16>* - %7 = load <8 x i16>, <8 x i16>* %6, align 8 + %4 = bitcast ptr %0 to ptr + %5 = load i16, ptr %4, align 2 + %6 = bitcast ptr %2 to ptr + %7 = load <8 x i16>, ptr %6, align 8 %8 = insertelement <8 x i16> %7, i16 %5, i64 0 %9 = bitcast <8 x i16> %8 to <16 x i8> %10 = bitcast <16 x i8> %1 to <8 x i16> @@ -3473,11 +3473,11 @@ define arm_aapcs_vfpcc void @aesd_setf16_via_ptr(half* %0, <16 x i8> %1, <16 x i %12 = bitcast <8 x i16> %11 to <16 x i8> %13 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %9, <16 x i8> %12) %14 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %13) - store <16 x i8> %14, <16 x i8>* %2, align 8 + store <16 x i8> %14, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf16_via_val(half %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_setf16_via_val(half %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aesd_setf16_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q1, q1, q1 @@ -3489,8 +3489,8 @@ define arm_aapcs_vfpcc void @aesd_setf16_via_val(half %0, <16 x i8> %1, <16 x i8 ; CHECK-FIX-NEXT: aesimc.8 q8, q8 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r0] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <8 x i16>* - %5 = load <8 x i16>, <8 x i16>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <8 x i16>, ptr %4, align 8 %6 = bitcast half %0 to i16 %7 = insertelement <8 x i16> %5, i16 %6, i64 0 %8 = bitcast <8 x i16> %7 to <16 x i8> @@ -3499,11 +3499,11 @@ define arm_aapcs_vfpcc void @aesd_setf16_via_val(half %0, <16 x i8> %1, <16 x i8 %11 = bitcast <8 x i16> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf16_cond_via_ptr(i1 zeroext %0, half* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf16_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_setf16_cond_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: .save {r4, r5, r6, r7, r8, r9, r10, r11, lr} @@ -3685,17 +3685,17 @@ define arm_aapcs_vfpcc void @aesd_setf16_cond_via_ptr(i1 zeroext %0, half* %1, < br i1 %0, label %5, label %12 5: - %6 = bitcast half* %1 to i16* - %7 = load i16, i16* %6, align 2 - %8 = bitcast <16 x i8>* %3 to <8 x i16>* - %9 = load <8 x i16>, <8 x i16>* %8, align 8 + %6 = bitcast ptr %1 to ptr + %7 = load i16, ptr %6, align 2 + %8 = bitcast ptr %3 to ptr + %9 = load <8 x i16>, ptr %8, align 8 %10 = insertelement <8 x i16> %9, i16 %7, i64 0 %11 = bitcast <8 x i16> %10 to <8 x half> br label %15 12: - %13 = bitcast <16 x i8>* %3 to <8 x half>* - %14 = load <8 x half>, <8 x half>* %13, align 8 + %13 = bitcast ptr %3 to ptr + %14 = load <8 x half>, ptr %13, align 8 br label %15 15: @@ -3703,8 +3703,8 @@ define arm_aapcs_vfpcc void @aesd_setf16_cond_via_ptr(i1 zeroext %0, half* %1, < br i1 %0, label %17, label %23 17: - %18 = bitcast half* %1 to i16* - %19 = load i16, i16* %18, align 2 + %18 = bitcast ptr %1 to ptr + %19 = load i16, ptr %18, align 2 %20 = bitcast <16 x i8> %2 to <8 x i16> %21 = insertelement <8 x i16> %20, i16 %19, i64 0 %22 = bitcast <8 x i16> %21 to <8 x half> @@ -3720,11 +3720,11 @@ define arm_aapcs_vfpcc void @aesd_setf16_cond_via_ptr(i1 zeroext %0, half* %1, < %28 = bitcast <8 x half> %26 to <16 x i8> %29 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %27, <16 x i8> %28) %30 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %29) - store <16 x i8> %30, <16 x i8>* %3, align 8 + store <16 x i8> %30, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf16_cond_via_val(i1 zeroext %0, half %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf16_cond_via_val(i1 zeroext %0, half %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_setf16_cond_via_val: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: .save {r4, r5, r6, r7, r8, r9, r10, r11, lr} @@ -3906,16 +3906,16 @@ define arm_aapcs_vfpcc void @aesd_setf16_cond_via_val(i1 zeroext %0, half %1, <1 br i1 %0, label %5, label %11 5: - %6 = bitcast <16 x i8>* %3 to <8 x i16>* - %7 = load <8 x i16>, <8 x i16>* %6, align 8 + %6 = bitcast ptr %3 to ptr + %7 = load <8 x i16>, ptr %6, align 8 %8 = bitcast half %1 to i16 %9 = insertelement <8 x i16> %7, i16 %8, i64 0 %10 = bitcast <8 x i16> %9 to <8 x half> br label %14 11: - %12 = bitcast <16 x i8>* %3 to <8 x half>* - %13 = load <8 x half>, <8 x half>* %12, align 8 + %12 = bitcast ptr %3 to ptr + %13 = load <8 x half>, ptr %12, align 8 br label %14 14: @@ -3939,11 +3939,11 @@ define arm_aapcs_vfpcc void @aesd_setf16_cond_via_val(i1 zeroext %0, half %1, <1 %26 = bitcast <8 x half> %24 to <16 x i8> %27 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %25, <16 x i8> %26) %28 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %27) - store <16 x i8> %28, <16 x i8>* %3, align 8 + store <16 x i8> %28, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf16_loop_via_ptr(i32 %0, half* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf16_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_setf16_loop_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -3962,22 +3962,22 @@ define arm_aapcs_vfpcc void @aesd_setf16_loop_via_ptr(i32 %0, half* %1, <16 x i8 ; CHECK-FIX-NEXT: @ %bb.3: ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-FIX-NEXT: bx lr - %5 = bitcast half* %1 to i16* - %6 = load i16, i16* %5, align 2 + %5 = bitcast ptr %1 to ptr + %6 = load i16, ptr %5, align 2 %7 = bitcast <16 x i8> %2 to <8 x i16> %8 = insertelement <8 x i16> %7, i16 %6, i64 0 %9 = bitcast <8 x i16> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to i16* - store i16 %6, i16* %10, align 8 + %10 = bitcast ptr %3 to ptr + store i16 %6, ptr %10, align 8 %11 = icmp eq i32 %0, 0 br i1 %11, label %15, label %12 12: - %13 = load <16 x i8>, <16 x i8>* %3, align 8 + %13 = load <16 x i8>, ptr %3, align 8 br label %16 14: - store <16 x i8> %20, <16 x i8>* %3, align 8 + store <16 x i8> %20, ptr %3, align 8 br label %15 15: @@ -3993,7 +3993,7 @@ define arm_aapcs_vfpcc void @aesd_setf16_loop_via_ptr(i32 %0, half* %1, <16 x i8 br i1 %22, label %14, label %16 } -define arm_aapcs_vfpcc void @aesd_setf16_loop_via_val(i32 %0, half %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf16_loop_via_val(i32 %0, half %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_setf16_loop_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q1, q1, q1 @@ -4020,8 +4020,8 @@ define arm_aapcs_vfpcc void @aesd_setf16_loop_via_val(i32 %0, half %1, <16 x i8> %8 = bitcast half %1 to i16 %9 = insertelement <8 x i16> %7, i16 %8, i64 0 %10 = bitcast <8 x i16> %9 to <16 x i8> - %11 = bitcast <16 x i8>* %3 to <8 x i16>* - %12 = bitcast <16 x i8>* %3 to half* + %11 = bitcast ptr %3 to ptr + %12 = bitcast ptr %3 to ptr br label %14 13: @@ -4029,19 +4029,19 @@ define arm_aapcs_vfpcc void @aesd_setf16_loop_via_val(i32 %0, half %1, <16 x i8> 14: %15 = phi i32 [ 0, %6 ], [ %21, %14 ] - %16 = load <8 x i16>, <8 x i16>* %11, align 8 + %16 = load <8 x i16>, ptr %11, align 8 %17 = insertelement <8 x i16> %16, i16 %8, i64 0 %18 = bitcast <8 x i16> %17 to <16 x i8> - store half %1, half* %12, align 8 + store half %1, ptr %12, align 8 %19 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %18, <16 x i8> %10) %20 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %19) - store <16 x i8> %20, <16 x i8>* %3, align 8 + store <16 x i8> %20, ptr %3, align 8 %21 = add nuw i32 %15, 1 %22 = icmp eq i32 %21, %0 br i1 %22, label %13, label %14 } -define arm_aapcs_vfpcc void @aesd_setf32_via_ptr(float* %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_setf32_via_ptr(ptr %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aesd_setf32_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vldr s0, [r0] @@ -4053,9 +4053,9 @@ define arm_aapcs_vfpcc void @aesd_setf32_via_ptr(float* %0, <16 x i8> %1, <16 x ; CHECK-FIX-NEXT: aesimc.8 q8, q1 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-FIX-NEXT: bx lr - %4 = load float, float* %0, align 4 - %5 = bitcast <16 x i8>* %2 to <4 x float>* - %6 = load <4 x float>, <4 x float>* %5, align 8 + %4 = load float, ptr %0, align 4 + %5 = bitcast ptr %2 to ptr + %6 = load <4 x float>, ptr %5, align 8 %7 = insertelement <4 x float> %6, float %4, i64 0 %8 = bitcast <4 x float> %7 to <16 x i8> %9 = bitcast <16 x i8> %1 to <4 x float> @@ -4063,11 +4063,11 @@ define arm_aapcs_vfpcc void @aesd_setf32_via_ptr(float* %0, <16 x i8> %1, <16 x %11 = bitcast <4 x float> %10 to <16 x i8> %12 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %8, <16 x i8> %11) %13 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %12) - store <16 x i8> %13, <16 x i8>* %2, align 8 + store <16 x i8> %13, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf32_via_val(float %0, <16 x i8> %1, <16 x i8>* %2) nounwind { +define arm_aapcs_vfpcc void @aesd_setf32_via_val(float %0, <16 x i8> %1, ptr %2) nounwind { ; CHECK-FIX-LABEL: aesd_setf32_via_val: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vmov.f32 s4, s0 @@ -4079,8 +4079,8 @@ define arm_aapcs_vfpcc void @aesd_setf32_via_val(float %0, <16 x i8> %1, <16 x i ; CHECK-FIX-NEXT: aesimc.8 q8, q0 ; CHECK-FIX-NEXT: vst1.64 {d16, d17}, [r0] ; CHECK-FIX-NEXT: bx lr - %4 = bitcast <16 x i8>* %2 to <4 x float>* - %5 = load <4 x float>, <4 x float>* %4, align 8 + %4 = bitcast ptr %2 to ptr + %5 = load <4 x float>, ptr %4, align 8 %6 = insertelement <4 x float> %5, float %0, i64 0 %7 = bitcast <4 x float> %6 to <16 x i8> %8 = bitcast <16 x i8> %1 to <4 x float> @@ -4088,11 +4088,11 @@ define arm_aapcs_vfpcc void @aesd_setf32_via_val(float %0, <16 x i8> %1, <16 x i %10 = bitcast <4 x float> %9 to <16 x i8> %11 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %7, <16 x i8> %10) %12 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %11) - store <16 x i8> %12, <16 x i8>* %2, align 8 + store <16 x i8> %12, ptr %2, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf32_cond_via_ptr(i1 zeroext %0, float* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf32_cond_via_ptr(i1 zeroext %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-LABEL: aesd_setf32_cond_via_ptr: ; CHECK-FIX: @ %bb.0: ; CHECK-FIX-NEXT: vorr q0, q0, q0 @@ -4118,15 +4118,15 @@ define arm_aapcs_vfpcc void @aesd_setf32_cond_via_ptr(i1 zeroext %0, float* %1, br i1 %0, label %5, label %10 5: - %6 = load float, float* %1, align 4 - %7 = bitcast <16 x i8>* %3 to <4 x float>* - %8 = load <4 x float>, <4 x float>* %7, align 8 + %6 = load float, ptr %1, align 4 + %7 = bitcast ptr %3 to ptr + %8 = load <4 x float>, ptr %7, align 8 %9 = insertelement <4 x float> %8, float %6, i64 0 br label %13 10: - %11 = bitcast <16 x i8>* %3 to <4 x float>* - %12 = load <4 x float>, <4 x float>* %11, align 8 + %11 = bitcast ptr %3 to ptr + %12 = load <4 x float>, ptr %11, align 8 br label %13 13: @@ -4134,7 +4134,7 @@ define arm_aapcs_vfpcc void @aesd_setf32_cond_via_ptr(i1 zeroext %0, float* %1, br i1 %0, label %15, label %19 15: - %16 = load float, float* %1, align 4 + %16 = load float, ptr %1, align 4 %17 = bitcast <16 x i8> %2 to <4 x float> %18 = insertelement <4 x float> %17, float %16, i64 0 br label %21 @@ -4149,11 +4149,11 @@ define arm_aapcs_vfpcc void @aesd_setf32_cond_via_ptr(i1 zeroext %0, float* %1, %24 = bitcast <4 x float> %22 to <16 x i8> %25 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %23, <16 x i8> %24) %26 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %25) - store <16 x i8> %26, <16 x i8>* %3, align 8 + store <16 x i8> %26, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf32_cond_via_val(i1 zeroext %0, float %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf32_cond_via_val(i1 zeroext %0, float %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_setf32_cond_via_val: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vld1.64 {d4, d5}, [r1] @@ -4181,8 +4181,8 @@ define arm_aapcs_vfpcc void @aesd_setf32_cond_via_val(i1 zeroext %0, float %1, < ; CHECK-CORTEX-FIX-NEXT: aesimc.8 q8, q2 ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r1] ; CHECK-CORTEX-FIX-NEXT: bx lr - %5 = bitcast <16 x i8>* %3 to <4 x float>* - %6 = load <4 x float>, <4 x float>* %5, align 8 + %5 = bitcast ptr %3 to ptr + %6 = load <4 x float>, ptr %5, align 8 %7 = insertelement <4 x float> %6, float %1, i64 0 %8 = select i1 %0, <4 x float> %7, <4 x float> %6 %9 = bitcast <16 x i8> %2 to <4 x float> @@ -4192,11 +4192,11 @@ define arm_aapcs_vfpcc void @aesd_setf32_cond_via_val(i1 zeroext %0, float %1, < %13 = bitcast <4 x float> %11 to <16 x i8> %14 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %12, <16 x i8> %13) %15 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %14) - store <16 x i8> %15, <16 x i8>* %3, align 8 + store <16 x i8> %15, ptr %3, align 8 ret void } -define arm_aapcs_vfpcc void @aesd_setf32_loop_via_ptr(i32 %0, float* %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf32_loop_via_ptr(i32 %0, ptr %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_setf32_loop_via_ptr: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vldr s4, [r1] @@ -4234,21 +4234,21 @@ define arm_aapcs_vfpcc void @aesd_setf32_loop_via_ptr(i32 %0, float* %1, <16 x i ; CHECK-CORTEX-FIX-NEXT: @ %bb.3: ; CHECK-CORTEX-FIX-NEXT: vst1.64 {d16, d17}, [r2] ; CHECK-CORTEX-FIX-NEXT: bx lr - %5 = load float, float* %1, align 4 + %5 = load float, ptr %1, align 4 %6 = bitcast <16 x i8> %2 to <4 x float> %7 = insertelement <4 x float> %6, float %5, i64 0 %8 = bitcast <4 x float> %7 to <16 x i8> - %9 = bitcast <16 x i8>* %3 to float* - store float %5, float* %9, align 8 + %9 = bitcast ptr %3 to ptr + store float %5, ptr %9, align 8 %10 = icmp eq i32 %0, 0 br i1 %10, label %14, label %11 11: - %12 = load <16 x i8>, <16 x i8>* %3, align 8 + %12 = load <16 x i8>, ptr %3, align 8 br label %15 13: - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 br label %14 14: @@ -4264,7 +4264,7 @@ define arm_aapcs_vfpcc void @aesd_setf32_loop_via_ptr(i32 %0, float* %1, <16 x i br i1 %21, label %13, label %15 } -define arm_aapcs_vfpcc void @aesd_setf32_loop_via_val(i32 %0, float %1, <16 x i8> %2, <16 x i8>* %3) nounwind { +define arm_aapcs_vfpcc void @aesd_setf32_loop_via_val(i32 %0, float %1, <16 x i8> %2, ptr %3) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aesd_setf32_loop_via_val: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: cmp r0, #0 @@ -4309,8 +4309,8 @@ define arm_aapcs_vfpcc void @aesd_setf32_loop_via_val(i32 %0, float %1, <16 x i8 %7 = bitcast <16 x i8> %2 to <4 x float> %8 = insertelement <4 x float> %7, float %1, i64 0 %9 = bitcast <4 x float> %8 to <16 x i8> - %10 = bitcast <16 x i8>* %3 to <4 x float>* - %11 = bitcast <16 x i8>* %3 to float* + %10 = bitcast ptr %3 to ptr + %11 = bitcast ptr %3 to ptr br label %13 12: @@ -4318,19 +4318,19 @@ define arm_aapcs_vfpcc void @aesd_setf32_loop_via_val(i32 %0, float %1, <16 x i8 13: %14 = phi i32 [ 0, %6 ], [ %20, %13 ] - %15 = load <4 x float>, <4 x float>* %10, align 8 + %15 = load <4 x float>, ptr %10, align 8 %16 = insertelement <4 x float> %15, float %1, i64 0 %17 = bitcast <4 x float> %16 to <16 x i8> - store float %1, float* %11, align 8 + store float %1, ptr %11, align 8 %18 = call <16 x i8> @llvm.arm.neon.aesd(<16 x i8> %17, <16 x i8> %9) %19 = call <16 x i8> @llvm.arm.neon.aesimc(<16 x i8> %18) - store <16 x i8> %19, <16 x i8>* %3, align 8 + store <16 x i8> %19, ptr %3, align 8 %20 = add nuw i32 %14, 1 %21 = icmp eq i32 %20, %0 br i1 %21, label %12, label %13 } -define arm_aapcs_vfpcc void @aese_constantisland(<16 x i8>* %0) nounwind { +define arm_aapcs_vfpcc void @aese_constantisland(ptr %0) nounwind { ; CHECK-FIX-NOSCHED-LABEL: aese_constantisland: ; CHECK-FIX-NOSCHED: @ %bb.0: ; CHECK-FIX-NOSCHED-NEXT: vld1.64 {d16, d17}, [r0] @@ -4388,9 +4388,9 @@ define arm_aapcs_vfpcc void @aese_constantisland(<16 x i8>* %0) nounwind { ; CHECK-CORTEX-FIX-NEXT: .byte 13 @ 0xd ; CHECK-CORTEX-FIX-NEXT: .byte 14 @ 0xe ; CHECK-CORTEX-FIX-NEXT: .byte 15 @ 0xf - %2 = load <16 x i8>, <16 x i8>* %0, align 8 + %2 = load <16 x i8>, ptr %0, align 8 %3 = call <16 x i8> @llvm.arm.neon.aese(<16 x i8> , <16 x i8> %2) %4 = call <16 x i8> @llvm.arm.neon.aesmc(<16 x i8> %3) - store <16 x i8> %4, <16 x i8>* %0, align 8 + store <16 x i8> %4, ptr %0, align 8 ret void } diff --git a/llvm/test/CodeGen/ARM/aliases.ll b/llvm/test/CodeGen/ARM/aliases.ll index cc423afa240c4..6075ad813e990 100644 --- a/llvm/test/CodeGen/ARM/aliases.ll +++ b/llvm/test/CodeGen/ARM/aliases.ll @@ -48,7 +48,7 @@ define i32 @foo_f() { @A = alias i64, ptr @bar @structvar = private global {i32, i32} {i32 1, i32 2} -@elem0 = alias i32, getelementptr({i32, i32}, ptr @structvar, i32 0, i32 0) +@elem0 = alias i32, ptr @structvar @elem1 = alias i32, getelementptr({i32, i32}, ptr @structvar, i32 0, i32 1) define i32 @test() { diff --git a/llvm/test/CodeGen/ARM/code-placement.ll b/llvm/test/CodeGen/ARM/code-placement.ll index 01d72f134aacb..c8bb10cd104cf 100644 --- a/llvm/test/CodeGen/ARM/code-placement.ll +++ b/llvm/test/CodeGen/ARM/code-placement.ll @@ -2,12 +2,12 @@ ; PHI elimination shouldn't break backedge. %struct.list_data_s = type { i16, i16 } -%struct.list_head = type { %struct.list_head*, %struct.list_data_s* } +%struct.list_head = type { ptr, ptr } -define arm_apcscc %struct.list_head* @t1(%struct.list_head* %list) nounwind { +define arm_apcscc ptr @t1(ptr %list) nounwind { entry: ; CHECK-LABEL: t1: - %0 = icmp eq %struct.list_head* %list, null + %0 = icmp eq ptr %list, null br i1 %0, label %bb2, label %bb bb: @@ -15,21 +15,21 @@ bb: ; CHECK: bne LBB0_[[LABEL]] ; CHECK-NOT: b LBB0_[[LABEL]] ; CHECK: bx lr - %list_addr.05 = phi %struct.list_head* [ %2, %bb ], [ %list, %entry ] - %next.04 = phi %struct.list_head* [ %list_addr.05, %bb ], [ null, %entry ] - %1 = getelementptr inbounds %struct.list_head, %struct.list_head* %list_addr.05, i32 0, i32 0 - %2 = load %struct.list_head*, %struct.list_head** %1, align 4 - store %struct.list_head* %next.04, %struct.list_head** %1, align 4 - %3 = icmp eq %struct.list_head* %2, null + %list_addr.05 = phi ptr [ %2, %bb ], [ %list, %entry ] + %next.04 = phi ptr [ %list_addr.05, %bb ], [ null, %entry ] + %1 = getelementptr inbounds %struct.list_head, ptr %list_addr.05, i32 0, i32 0 + %2 = load ptr, ptr %1, align 4 + store ptr %next.04, ptr %1, align 4 + %3 = icmp eq ptr %2, null br i1 %3, label %bb2, label %bb bb2: - %next.0.lcssa = phi %struct.list_head* [ null, %entry ], [ %list_addr.05, %bb ] - ret %struct.list_head* %next.0.lcssa + %next.0.lcssa = phi ptr [ null, %entry ], [ %list_addr.05, %bb ] + ret ptr %next.0.lcssa } ; Optimize loop entry, eliminate intra loop branches -define i32 @t2(i32 %passes, i32* nocapture %src, i32 %size) nounwind readonly { +define i32 @t2(i32 %passes, ptr nocapture %src, i32 %size) nounwind readonly { entry: ; CHECK-LABEL: t2: %0 = icmp eq i32 %passes, 0 ; [#uses=1] @@ -42,8 +42,8 @@ bb1: ; preds = %bb2.preheader, %bb1 %indvar = phi i32 [ %indvar.next, %bb1 ], [ 0, %bb2.preheader ] ; [#uses=2] %sum.08 = phi i32 [ %2, %bb1 ], [ %sum.110, %bb2.preheader ] ; [#uses=1] %tmp17 = sub i32 %i.07, %indvar ; [#uses=1] - %scevgep = getelementptr i32, i32* %src, i32 %tmp17 ; [#uses=1] - %1 = load i32, i32* %scevgep, align 4 ; [#uses=1] + %scevgep = getelementptr i32, ptr %src, i32 %tmp17 ; [#uses=1] + %1 = load i32, ptr %scevgep, align 4 ; [#uses=1] %2 = add nsw i32 %1, %sum.08 ; [#uses=2] %indvar.next = add i32 %indvar, 1 ; [#uses=2] %exitcond = icmp eq i32 %indvar.next, %size ; [#uses=1] diff --git a/llvm/test/CodeGen/ARM/constant-island-movwt.mir b/llvm/test/CodeGen/ARM/constant-island-movwt.mir index 2a2b4a9d65dde..7d21a4e4875c3 100644 --- a/llvm/test/CodeGen/ARM/constant-island-movwt.mir +++ b/llvm/test/CodeGen/ARM/constant-island-movwt.mir @@ -6,7 +6,7 @@ target datalayout = "e-m:w-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "thumbv7-unknown-windows-gnu" - %struct.A = type { [201 x i8*] } + %struct.A = type { [201 x ptr] } @.str.17 = private unnamed_addr constant [10 x i8] c"__ashlhi3\00", align 1 @.str.18 = private unnamed_addr constant [10 x i8] c"__ashlsi3\00", align 1 @@ -147,166 +147,166 @@ @.str.153 = private unnamed_addr constant [9 x i8] c"copysign\00", align 1 ; Function Attrs: nounwind - define arm_aapcs_vfpcc void @func(%struct.A* %obj) #0 { + define arm_aapcs_vfpcc void @func(ptr %obj) #0 { entry: - %arrayidx.i1 = bitcast %struct.A* %obj to i8** - %0 = bitcast i8** %arrayidx.i1 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %0 - %arrayidx.i62 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 4 - %1 = bitcast i8** %arrayidx.i62 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %1 - %arrayidx.i523 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 8 - %2 = bitcast i8** %arrayidx.i523 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %2 - %arrayidx.i519 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 12 - %3 = bitcast i8** %arrayidx.i519 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %3 - %arrayidx.i515 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 16 - %4 = bitcast i8** %arrayidx.i515 to i8* - call void @llvm.memset.p0i8.i64(i8* align 4 %4, i8 0, i64 40, i1 false) - %arrayidx.i511 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 20 - %5 = bitcast i8** %arrayidx.i511 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %5 - %arrayidx.i507 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 24 - %6 = bitcast i8** %arrayidx.i507 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %6 - %arrayidx.i503 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 28 - %7 = bitcast i8** %arrayidx.i503 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %7 - %arrayidx.i499 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 32 - %8 = bitcast i8** %arrayidx.i499 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %8 - %arrayidx.i495 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 36 - %9 = bitcast i8** %arrayidx.i495 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %9 - %arrayidx.i491 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 40 - %arrayidx.i481 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 50 - %10 = bitcast i8** %arrayidx.i491 to i8* - call void @llvm.memset.p0i8.i64(i8* align 4 %10, i8 0, i64 40, i1 false) - %11 = bitcast i8** %arrayidx.i481 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %11 - %arrayidx.i477 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 54 - %12 = bitcast i8** %arrayidx.i477 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %12 - %arrayidx.i473 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 58 - %13 = bitcast i8** %arrayidx.i473 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %13 - %arrayidx.i469 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 62 - %14 = bitcast i8** %arrayidx.i469 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %14 - %arrayidx.i465 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 66 - %15 = bitcast i8** %arrayidx.i465 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %15 - %arrayidx.i461 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 70 - %16 = bitcast i8** %arrayidx.i461 to i8* - call void @llvm.memset.p0i8.i64(i8* align 4 %16, i8 0, i64 40, i1 false) - %arrayidx.i457 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 74 - %17 = bitcast i8** %arrayidx.i457 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %17 - %arrayidx.i453 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 78 - %18 = bitcast i8** %arrayidx.i453 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %18 - %arrayidx.i449 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 82 - %arrayidx.i445 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 86 - %19 = bitcast i8** %arrayidx.i445 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %19 - %arrayidx.i441 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 90 - %20 = bitcast i8** %arrayidx.i441 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %20 - %arrayidx.i437 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 94 - %21 = bitcast i8** %arrayidx.i437 to i8* - call void @llvm.memset.p0i8.i64(i8* align 4 %21, i8 0, i64 28, i1 false) - %arrayidx.i433 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 98 - %22 = bitcast i8** %arrayidx.i433 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %22 - %arrayidx.i429 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 102 - %23 = bitcast i8** %arrayidx.i429 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %23 - %arrayidx.i425 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 106 - %24 = bitcast i8** %arrayidx.i425 to i8* - call void @llvm.memset.p0i8.i64(i8* align 4 %24, i8 0, i64 28, i1 false) - %arrayidx.i421 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 110 - %25 = bitcast i8** %arrayidx.i421 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %25 - %arrayidx.i417 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 114 - %26 = bitcast i8** %arrayidx.i417 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %26 - %arrayidx.i413 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 118 - %27 = bitcast i8** %arrayidx.i413 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %27 - %arrayidx.i409 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 122 - %28 = bitcast i8** %arrayidx.i409 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %28 - %arrayidx.i405 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 126 - %29 = bitcast i8** %arrayidx.i405 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %29 - %arrayidx.i401 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 130 - %30 = bitcast i8** %arrayidx.i401 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %30 - %arrayidx.i397 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 134 - %31 = bitcast i8** %arrayidx.i397 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %31 - %arrayidx.i393 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 138 - %32 = bitcast i8** %arrayidx.i393 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %32 - %arrayidx.i389 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 142 - %33 = bitcast i8** %arrayidx.i389 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %33 - %arrayidx.i385 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 146 - %34 = bitcast i8** %arrayidx.i385 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %34 - %arrayidx.i381 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 150 - store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.127, i32 0, i32 0), i8** %arrayidx.i381 - %arrayidx.i380 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 151 - store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.127, i32 0, i32 0), i8** %arrayidx.i380 - %arrayidx.i379 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 152 - %arrayidx.i375 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 156 - %arrayidx.i374 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 157 - %arrayidx.i373 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 158 - %arrayidx.i372 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 159 - %35 = bitcast i8** %arrayidx.i379 to i8* - call void @llvm.memset.p0i8.i64(i8* align 4 %35, i8 0, i64 28, i1 false) - store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.128, i32 0, i32 0), i8** %arrayidx.i372 - %arrayidx.i371 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 160 - store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.129, i32 0, i32 0), i8** %arrayidx.i371 - %arrayidx.i370 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 161 - %36 = bitcast i8** %arrayidx.i370 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %36 - %arrayidx.i366 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 165 - %37 = bitcast i8** %arrayidx.i366 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %37 - %arrayidx.i362 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 169 - %38 = bitcast i8** %arrayidx.i362 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %38 - %arrayidx.i358 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 173 - %39 = bitcast i8** %arrayidx.i358 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %39 - %arrayidx.i354 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 177 - %40 = bitcast i8** %arrayidx.i354 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %40 - %arrayidx.i350 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 181 - %41 = bitcast i8** %arrayidx.i350 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %41 - %arrayidx.i346 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 185 - %42 = bitcast i8** %arrayidx.i346 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %42 - %arrayidx.i342 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 189 - %43 = bitcast i8** %arrayidx.i342 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %43 - %arrayidx.i338 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 193 - %44 = bitcast i8** %arrayidx.i338 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %44 - %arrayidx.i334 = getelementptr inbounds %struct.A, %struct.A* %obj, i32 0, i32 0, i32 197 - %45 = bitcast i8** %arrayidx.i334 to <4 x i8*>* - store <4 x i8*> , <4 x i8*>* %45 + %arrayidx.i1 = bitcast ptr %obj to ptr + %0 = bitcast ptr %arrayidx.i1 to ptr + store <4 x ptr> , ptr %0 + %arrayidx.i62 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 4 + %1 = bitcast ptr %arrayidx.i62 to ptr + store <4 x ptr> , ptr %1 + %arrayidx.i523 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 8 + %2 = bitcast ptr %arrayidx.i523 to ptr + store <4 x ptr> , ptr %2 + %arrayidx.i519 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 12 + %3 = bitcast ptr %arrayidx.i519 to ptr + store <4 x ptr> , ptr %3 + %arrayidx.i515 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 16 + %4 = bitcast ptr %arrayidx.i515 to ptr + call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 40, i1 false) + %arrayidx.i511 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 20 + %5 = bitcast ptr %arrayidx.i511 to ptr + store <4 x ptr> , ptr %5 + %arrayidx.i507 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 24 + %6 = bitcast ptr %arrayidx.i507 to ptr + store <4 x ptr> , ptr %6 + %arrayidx.i503 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 28 + %7 = bitcast ptr %arrayidx.i503 to ptr + store <4 x ptr> , ptr %7 + %arrayidx.i499 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 32 + %8 = bitcast ptr %arrayidx.i499 to ptr + store <4 x ptr> , ptr %8 + %arrayidx.i495 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 36 + %9 = bitcast ptr %arrayidx.i495 to ptr + store <4 x ptr> , ptr %9 + %arrayidx.i491 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 40 + %arrayidx.i481 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 50 + %10 = bitcast ptr %arrayidx.i491 to ptr + call void @llvm.memset.p0.i64(ptr align 4 %10, i8 0, i64 40, i1 false) + %11 = bitcast ptr %arrayidx.i481 to ptr + store <4 x ptr> , ptr %11 + %arrayidx.i477 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 54 + %12 = bitcast ptr %arrayidx.i477 to ptr + store <4 x ptr> , ptr %12 + %arrayidx.i473 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 58 + %13 = bitcast ptr %arrayidx.i473 to ptr + store <4 x ptr> , ptr %13 + %arrayidx.i469 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 62 + %14 = bitcast ptr %arrayidx.i469 to ptr + store <4 x ptr> , ptr %14 + %arrayidx.i465 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 66 + %15 = bitcast ptr %arrayidx.i465 to ptr + store <4 x ptr> , ptr %15 + %arrayidx.i461 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 70 + %16 = bitcast ptr %arrayidx.i461 to ptr + call void @llvm.memset.p0.i64(ptr align 4 %16, i8 0, i64 40, i1 false) + %arrayidx.i457 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 74 + %17 = bitcast ptr %arrayidx.i457 to ptr + store <4 x ptr> , ptr %17 + %arrayidx.i453 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 78 + %18 = bitcast ptr %arrayidx.i453 to ptr + store <4 x ptr> , ptr %18 + %arrayidx.i449 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 82 + %arrayidx.i445 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 86 + %19 = bitcast ptr %arrayidx.i445 to ptr + store <4 x ptr> , ptr %19 + %arrayidx.i441 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 90 + %20 = bitcast ptr %arrayidx.i441 to ptr + store <4 x ptr> , ptr %20 + %arrayidx.i437 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 94 + %21 = bitcast ptr %arrayidx.i437 to ptr + call void @llvm.memset.p0.i64(ptr align 4 %21, i8 0, i64 28, i1 false) + %arrayidx.i433 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 98 + %22 = bitcast ptr %arrayidx.i433 to ptr + store <4 x ptr> , ptr %22 + %arrayidx.i429 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 102 + %23 = bitcast ptr %arrayidx.i429 to ptr + store <4 x ptr> , ptr %23 + %arrayidx.i425 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 106 + %24 = bitcast ptr %arrayidx.i425 to ptr + call void @llvm.memset.p0.i64(ptr align 4 %24, i8 0, i64 28, i1 false) + %arrayidx.i421 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 110 + %25 = bitcast ptr %arrayidx.i421 to ptr + store <4 x ptr> , ptr %25 + %arrayidx.i417 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 114 + %26 = bitcast ptr %arrayidx.i417 to ptr + store <4 x ptr> , ptr %26 + %arrayidx.i413 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 118 + %27 = bitcast ptr %arrayidx.i413 to ptr + store <4 x ptr> , ptr %27 + %arrayidx.i409 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 122 + %28 = bitcast ptr %arrayidx.i409 to ptr + store <4 x ptr> , ptr %28 + %arrayidx.i405 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 126 + %29 = bitcast ptr %arrayidx.i405 to ptr + store <4 x ptr> , ptr %29 + %arrayidx.i401 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 130 + %30 = bitcast ptr %arrayidx.i401 to ptr + store <4 x ptr> , ptr %30 + %arrayidx.i397 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 134 + %31 = bitcast ptr %arrayidx.i397 to ptr + store <4 x ptr> , ptr %31 + %arrayidx.i393 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 138 + %32 = bitcast ptr %arrayidx.i393 to ptr + store <4 x ptr> , ptr %32 + %arrayidx.i389 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 142 + %33 = bitcast ptr %arrayidx.i389 to ptr + store <4 x ptr> , ptr %33 + %arrayidx.i385 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 146 + %34 = bitcast ptr %arrayidx.i385 to ptr + store <4 x ptr> , ptr %34 + %arrayidx.i381 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 150 + store ptr @.str.127, ptr %arrayidx.i381 + %arrayidx.i380 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 151 + store ptr @.str.127, ptr %arrayidx.i380 + %arrayidx.i379 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 152 + %arrayidx.i375 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 156 + %arrayidx.i374 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 157 + %arrayidx.i373 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 158 + %arrayidx.i372 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 159 + %35 = bitcast ptr %arrayidx.i379 to ptr + call void @llvm.memset.p0.i64(ptr align 4 %35, i8 0, i64 28, i1 false) + store ptr @.str.128, ptr %arrayidx.i372 + %arrayidx.i371 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 160 + store ptr @.str.129, ptr %arrayidx.i371 + %arrayidx.i370 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 161 + %36 = bitcast ptr %arrayidx.i370 to ptr + store <4 x ptr> , ptr %36 + %arrayidx.i366 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 165 + %37 = bitcast ptr %arrayidx.i366 to ptr + store <4 x ptr> , ptr %37 + %arrayidx.i362 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 169 + %38 = bitcast ptr %arrayidx.i362 to ptr + store <4 x ptr> , ptr %38 + %arrayidx.i358 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 173 + %39 = bitcast ptr %arrayidx.i358 to ptr + store <4 x ptr> , ptr %39 + %arrayidx.i354 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 177 + %40 = bitcast ptr %arrayidx.i354 to ptr + store <4 x ptr> , ptr %40 + %arrayidx.i350 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 181 + %41 = bitcast ptr %arrayidx.i350 to ptr + store <4 x ptr> , ptr %41 + %arrayidx.i346 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 185 + %42 = bitcast ptr %arrayidx.i346 to ptr + store <4 x ptr> , ptr %42 + %arrayidx.i342 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 189 + %43 = bitcast ptr %arrayidx.i342 to ptr + store <4 x ptr> , ptr %43 + %arrayidx.i338 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 193 + %44 = bitcast ptr %arrayidx.i338 to ptr + store <4 x ptr> , ptr %44 + %arrayidx.i334 = getelementptr inbounds %struct.A, ptr %obj, i32 0, i32 0, i32 197 + %45 = bitcast ptr %arrayidx.i334 to ptr + store <4 x ptr> , ptr %45 ret void } ; Function Attrs: argmemonly nounwind - declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i1) #1 + declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1) #1 ; Function Attrs: nounwind - declare void @llvm.stackprotector(i8*, i8**) #2 + declare void @llvm.stackprotector(ptr, ptr) #2 attributes #0 = { nounwind "target-cpu"="cortex-a9" "target-features"="+dsp,+fp16,+neon,+strict-align,+thumb-mode,+vfp3" } attributes #1 = { argmemonly nounwind } diff --git a/llvm/test/CodeGen/ARM/cortex-a57-misched-basic.ll b/llvm/test/CodeGen/ARM/cortex-a57-misched-basic.ll index ad729c2ff2a3a..2e8a05417d439 100644 --- a/llvm/test/CodeGen/ARM/cortex-a57-misched-basic.ll +++ b/llvm/test/CodeGen/ARM/cortex-a57-misched-basic.ll @@ -41,10 +41,10 @@ target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "armv8r-arm-none-eabi" ; Function Attrs: norecurse nounwind readnone -define hidden i32 @foo(i32 %a, i32 %b, i32 %c, i32* %d) local_unnamed_addr #0 { +define hidden i32 @foo(i32 %a, i32 %b, i32 %c, ptr %d) local_unnamed_addr #0 { entry: %xor = xor i32 %c, %b - %ld = load i32, i32* %d + %ld = load i32, ptr %d %add = add nsw i32 %xor, %ld %div = sdiv i32 %a, %b %sub = sub i32 %div, %add diff --git a/llvm/test/CodeGen/ARM/debug-info-blocks.ll b/llvm/test/CodeGen/ARM/debug-info-blocks.ll index 8ef341faed6b7..2f68abef18ed0 100644 --- a/llvm/test/CodeGen/ARM/debug-info-blocks.ll +++ b/llvm/test/CodeGen/ARM/debug-info-blocks.ll @@ -16,89 +16,89 @@ target triple = "thumbv7-apple-ios" %0 = type opaque %1 = type { [4 x i32] } -%2 = type <{ i8*, i32, i32, i8*, %struct.Re*, i8*, %3*, %struct.my_struct* }> +%2 = type <{ ptr, i32, i32, ptr, ptr, ptr, ptr, ptr }> %3 = type opaque %struct.CP = type { float, float } %struct.CR = type { %struct.CP, %struct.CP } %struct.Re = type { i32, i32 } -%struct.__block_byref_mydata = type { i8*, %struct.__block_byref_mydata*, i32, i32, i8*, i8*, %0* } +%struct.__block_byref_mydata = type { ptr, ptr, i32, i32, ptr, ptr, ptr } %struct.my_struct = type opaque -@"\01L_OBJC_SELECTOR_REFERENCES_13" = external hidden global i8*, section "__DATA, __objc_selrefs, literal_pointers, no_dead_strip" +@"\01L_OBJC_SELECTOR_REFERENCES_13" = external hidden global ptr, section "__DATA, __objc_selrefs, literal_pointers, no_dead_strip" @"OBJC_IVAR_$_MyWork._bounds" = external hidden global i32, section "__DATA, __objc_const", align 4 @"OBJC_IVAR_$_MyWork._data" = external hidden global i32, section "__DATA, __objc_const", align 4 -@"\01L_OBJC_SELECTOR_REFERENCES_222" = external hidden global i8*, section "__DATA, __objc_selrefs, literal_pointers, no_dead_strip" +@"\01L_OBJC_SELECTOR_REFERENCES_222" = external hidden global ptr, section "__DATA, __objc_selrefs, literal_pointers, no_dead_strip" declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone -declare i8* @objc_msgSend(i8*, i8*, ...) +declare ptr @objc_msgSend(ptr, ptr, ...) declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone -declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i1) nounwind +declare void @llvm.memcpy.p0.p0.i32(ptr nocapture, ptr nocapture, i32, i1) nounwind -define hidden void @foobar_func_block_invoke_0(i8* %.block_descriptor, %0* %loadedMydata, [4 x i32] %bounds.coerce0, [4 x i32] %data.coerce0) ssp !dbg !23 { - %1 = alloca %0*, align 4 +define hidden void @foobar_func_block_invoke_0(ptr %.block_descriptor, ptr %loadedMydata, [4 x i32] %bounds.coerce0, [4 x i32] %data.coerce0) ssp !dbg !23 { + %1 = alloca ptr, align 4 %bounds = alloca %struct.CR, align 4 %data = alloca %struct.CR, align 4 - call void @llvm.dbg.value(metadata i8* %.block_descriptor, metadata !27, metadata !DIExpression()), !dbg !129 - store %0* %loadedMydata, %0** %1, align 4 - call void @llvm.dbg.declare(metadata %0** %1, metadata !130, metadata !DIExpression()), !dbg !131 - %2 = bitcast %struct.CR* %bounds to %1* - %3 = getelementptr %1, %1* %2, i32 0, i32 0 - store [4 x i32] %bounds.coerce0, [4 x i32]* %3 - call void @llvm.dbg.declare(metadata %struct.CR* %bounds, metadata !132, metadata !DIExpression()), !dbg !133 - %4 = bitcast %struct.CR* %data to %1* - %5 = getelementptr %1, %1* %4, i32 0, i32 0 - store [4 x i32] %data.coerce0, [4 x i32]* %5 - call void @llvm.dbg.declare(metadata %struct.CR* %data, metadata !134, metadata !DIExpression()), !dbg !135 - %6 = bitcast i8* %.block_descriptor to %2* - %7 = getelementptr inbounds %2, %2* %6, i32 0, i32 6 - call void @llvm.dbg.declare(metadata %2* %6, metadata !136, metadata !163), !dbg !137 - call void @llvm.dbg.declare(metadata %2* %6, metadata !138, metadata !164), !dbg !137 - call void @llvm.dbg.declare(metadata %2* %6, metadata !139, metadata !165), !dbg !140 - %8 = load %0*, %0** %1, align 4, !dbg !141 - %9 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_13", !dbg !141 - %10 = bitcast %0* %8 to i8*, !dbg !141 - %11 = call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i8* (i8*, i8*)*)(i8* %10, i8* %9), !dbg !141 - %12 = bitcast i8* %11 to %0*, !dbg !141 - %13 = getelementptr inbounds %2, %2* %6, i32 0, i32 5, !dbg !141 - %14 = load i8*, i8** %13, !dbg !141 - %15 = bitcast i8* %14 to %struct.__block_byref_mydata*, !dbg !141 - %16 = getelementptr inbounds %struct.__block_byref_mydata, %struct.__block_byref_mydata* %15, i32 0, i32 1, !dbg !141 - %17 = load %struct.__block_byref_mydata*, %struct.__block_byref_mydata** %16, !dbg !141 - %18 = getelementptr inbounds %struct.__block_byref_mydata, %struct.__block_byref_mydata* %17, i32 0, i32 6, !dbg !141 - store %0* %12, %0** %18, align 4, !dbg !141 - %19 = getelementptr inbounds %2, %2* %6, i32 0, i32 6, !dbg !143 - %20 = load %3*, %3** %19, align 4, !dbg !143 - %21 = load i32, i32* @"OBJC_IVAR_$_MyWork._data", !dbg !143 - %22 = bitcast %3* %20 to i8*, !dbg !143 - %23 = getelementptr inbounds i8, i8* %22, i32 %21, !dbg !143 - %24 = bitcast i8* %23 to %struct.CR*, !dbg !143 - %25 = bitcast %struct.CR* %24 to i8*, !dbg !143 - %26 = bitcast %struct.CR* %data to i8*, !dbg !143 - call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %25, i8* align 4 %26, i32 16, i1 false), !dbg !143 - %27 = getelementptr inbounds %2, %2* %6, i32 0, i32 6, !dbg !144 - %28 = load %3*, %3** %27, align 4, !dbg !144 - %29 = load i32, i32* @"OBJC_IVAR_$_MyWork._bounds", !dbg !144 - %30 = bitcast %3* %28 to i8*, !dbg !144 - %31 = getelementptr inbounds i8, i8* %30, i32 %29, !dbg !144 - %32 = bitcast i8* %31 to %struct.CR*, !dbg !144 - %33 = bitcast %struct.CR* %32 to i8*, !dbg !144 - %34 = bitcast %struct.CR* %bounds to i8*, !dbg !144 - call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %33, i8* align 4 %34, i32 16, i1 false), !dbg !144 - %35 = getelementptr inbounds %2, %2* %6, i32 0, i32 6, !dbg !145 - %36 = load %3*, %3** %35, align 4, !dbg !145 - %37 = getelementptr inbounds %2, %2* %6, i32 0, i32 5, !dbg !145 - %38 = load i8*, i8** %37, !dbg !145 - %39 = bitcast i8* %38 to %struct.__block_byref_mydata*, !dbg !145 - %40 = getelementptr inbounds %struct.__block_byref_mydata, %struct.__block_byref_mydata* %39, i32 0, i32 1, !dbg !145 - %41 = load %struct.__block_byref_mydata*, %struct.__block_byref_mydata** %40, !dbg !145 - %42 = getelementptr inbounds %struct.__block_byref_mydata, %struct.__block_byref_mydata* %41, i32 0, i32 6, !dbg !145 - %43 = load %0*, %0** %42, align 4, !dbg !145 - %44 = load i8*, i8** @"\01L_OBJC_SELECTOR_REFERENCES_222", !dbg !145 - %45 = bitcast %3* %36 to i8*, !dbg !145 - call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to void (i8*, i8*, %0*)*)(i8* %45, i8* %44, %0* %43), !dbg !145 + call void @llvm.dbg.value(metadata ptr %.block_descriptor, metadata !27, metadata !DIExpression()), !dbg !129 + store ptr %loadedMydata, ptr %1, align 4 + call void @llvm.dbg.declare(metadata ptr %1, metadata !130, metadata !DIExpression()), !dbg !131 + %2 = bitcast ptr %bounds to ptr + %3 = getelementptr %1, ptr %2, i32 0, i32 0 + store [4 x i32] %bounds.coerce0, ptr %3 + call void @llvm.dbg.declare(metadata ptr %bounds, metadata !132, metadata !DIExpression()), !dbg !133 + %4 = bitcast ptr %data to ptr + %5 = getelementptr %1, ptr %4, i32 0, i32 0 + store [4 x i32] %data.coerce0, ptr %5 + call void @llvm.dbg.declare(metadata ptr %data, metadata !134, metadata !DIExpression()), !dbg !135 + %6 = bitcast ptr %.block_descriptor to ptr + %7 = getelementptr inbounds %2, ptr %6, i32 0, i32 6 + call void @llvm.dbg.declare(metadata ptr %6, metadata !136, metadata !163), !dbg !137 + call void @llvm.dbg.declare(metadata ptr %6, metadata !138, metadata !164), !dbg !137 + call void @llvm.dbg.declare(metadata ptr %6, metadata !139, metadata !165), !dbg !140 + %8 = load ptr, ptr %1, align 4, !dbg !141 + %9 = load ptr, ptr @"\01L_OBJC_SELECTOR_REFERENCES_13", !dbg !141 + %10 = bitcast ptr %8 to ptr, !dbg !141 + %11 = call ptr @objc_msgSend(ptr %10, ptr %9), !dbg !141 + %12 = bitcast ptr %11 to ptr, !dbg !141 + %13 = getelementptr inbounds %2, ptr %6, i32 0, i32 5, !dbg !141 + %14 = load ptr, ptr %13, !dbg !141 + %15 = bitcast ptr %14 to ptr, !dbg !141 + %16 = getelementptr inbounds %struct.__block_byref_mydata, ptr %15, i32 0, i32 1, !dbg !141 + %17 = load ptr, ptr %16, !dbg !141 + %18 = getelementptr inbounds %struct.__block_byref_mydata, ptr %17, i32 0, i32 6, !dbg !141 + store ptr %12, ptr %18, align 4, !dbg !141 + %19 = getelementptr inbounds %2, ptr %6, i32 0, i32 6, !dbg !143 + %20 = load ptr, ptr %19, align 4, !dbg !143 + %21 = load i32, ptr @"OBJC_IVAR_$_MyWork._data", !dbg !143 + %22 = bitcast ptr %20 to ptr, !dbg !143 + %23 = getelementptr inbounds i8, ptr %22, i32 %21, !dbg !143 + %24 = bitcast ptr %23 to ptr, !dbg !143 + %25 = bitcast ptr %24 to ptr, !dbg !143 + %26 = bitcast ptr %data to ptr, !dbg !143 + call void @llvm.memcpy.p0.p0.i32(ptr align 4 %25, ptr align 4 %26, i32 16, i1 false), !dbg !143 + %27 = getelementptr inbounds %2, ptr %6, i32 0, i32 6, !dbg !144 + %28 = load ptr, ptr %27, align 4, !dbg !144 + %29 = load i32, ptr @"OBJC_IVAR_$_MyWork._bounds", !dbg !144 + %30 = bitcast ptr %28 to ptr, !dbg !144 + %31 = getelementptr inbounds i8, ptr %30, i32 %29, !dbg !144 + %32 = bitcast ptr %31 to ptr, !dbg !144 + %33 = bitcast ptr %32 to ptr, !dbg !144 + %34 = bitcast ptr %bounds to ptr, !dbg !144 + call void @llvm.memcpy.p0.p0.i32(ptr align 4 %33, ptr align 4 %34, i32 16, i1 false), !dbg !144 + %35 = getelementptr inbounds %2, ptr %6, i32 0, i32 6, !dbg !145 + %36 = load ptr, ptr %35, align 4, !dbg !145 + %37 = getelementptr inbounds %2, ptr %6, i32 0, i32 5, !dbg !145 + %38 = load ptr, ptr %37, !dbg !145 + %39 = bitcast ptr %38 to ptr, !dbg !145 + %40 = getelementptr inbounds %struct.__block_byref_mydata, ptr %39, i32 0, i32 1, !dbg !145 + %41 = load ptr, ptr %40, !dbg !145 + %42 = getelementptr inbounds %struct.__block_byref_mydata, ptr %41, i32 0, i32 6, !dbg !145 + %43 = load ptr, ptr %42, align 4, !dbg !145 + %44 = load ptr, ptr @"\01L_OBJC_SELECTOR_REFERENCES_222", !dbg !145 + %45 = bitcast ptr %36 to ptr, !dbg !145 + call void @objc_msgSend(ptr %45, ptr %44, ptr %43), !dbg !145 ret void, !dbg !146 } diff --git a/llvm/test/CodeGen/ARM/debug-info-d16-reg.ll b/llvm/test/CodeGen/ARM/debug-info-d16-reg.ll index bba2c390ea914..f5e7ffed8bbe9 100644 --- a/llvm/test/CodeGen/ARM/debug-info-d16-reg.ll +++ b/llvm/test/CodeGen/ARM/debug-info-d16-reg.ll @@ -10,51 +10,51 @@ target triple = "thumbv7-apple-darwin10" @.str = private unnamed_addr constant [11 x i8] c"%p %lf %c\0A\00", align 4 @.str1 = private unnamed_addr constant [6 x i8] c"point\00", align 4 -define i32 @inlineprinter(i8* %ptr, double %val, i8 zeroext %c) nounwind optsize !dbg !9 { +define i32 @inlineprinter(ptr %ptr, double %val, i8 zeroext %c) nounwind optsize !dbg !9 { entry: - tail call void @llvm.dbg.value(metadata i8* %ptr, metadata !19, metadata !DIExpression()), !dbg !26 + tail call void @llvm.dbg.value(metadata ptr %ptr, metadata !19, metadata !DIExpression()), !dbg !26 tail call void @llvm.dbg.value(metadata double %val, metadata !20, metadata !DIExpression()), !dbg !26 tail call void @llvm.dbg.value(metadata i8 %c, metadata !21, metadata !DIExpression()), !dbg !26 %0 = zext i8 %c to i32, !dbg !27 - %1 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %val, i32 %0) nounwind, !dbg !27 + %1 = tail call i32 (ptr, ...) @printf(ptr @.str, ptr %ptr, double %val, i32 %0) nounwind, !dbg !27 ret i32 0, !dbg !29 } -define i32 @printer(i8* %ptr, double %val, i8 zeroext %c) nounwind optsize noinline !dbg !0 { +define i32 @printer(ptr %ptr, double %val, i8 zeroext %c) nounwind optsize noinline !dbg !0 { entry: - tail call void @llvm.dbg.value(metadata i8* %ptr, metadata !16, metadata !DIExpression()), !dbg !30 + tail call void @llvm.dbg.value(metadata ptr %ptr, metadata !16, metadata !DIExpression()), !dbg !30 tail call void @llvm.dbg.value(metadata double %val, metadata !17, metadata !DIExpression()), !dbg !30 tail call void @llvm.dbg.value(metadata i8 %c, metadata !18, metadata !DIExpression()), !dbg !30 %0 = zext i8 %c to i32, !dbg !31 - %1 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %val, i32 %0) nounwind, !dbg !31 + %1 = tail call i32 (ptr, ...) @printf(ptr @.str, ptr %ptr, double %val, i32 %0) nounwind, !dbg !31 ret i32 0, !dbg !33 } -declare i32 @printf(i8* nocapture, ...) nounwind +declare i32 @printf(ptr nocapture, ...) nounwind declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone -define i32 @main(i32 %argc, i8** nocapture %argv) nounwind optsize !dbg !10 { +define i32 @main(i32 %argc, ptr nocapture %argv) nounwind optsize !dbg !10 { entry: tail call void @llvm.dbg.value(metadata i32 %argc, metadata !22, metadata !DIExpression()), !dbg !34 - tail call void @llvm.dbg.value(metadata i8** %argv, metadata !23, metadata !DIExpression()), !dbg !34 + tail call void @llvm.dbg.value(metadata ptr %argv, metadata !23, metadata !DIExpression()), !dbg !34 %0 = sitofp i32 %argc to double, !dbg !35 %1 = fadd double %0, 5.555552e+05, !dbg !35 tail call void @llvm.dbg.value(metadata double %1, metadata !24, metadata !DIExpression()), !dbg !35 - %2 = tail call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0)) nounwind, !dbg !36 - %3 = getelementptr inbounds i8, i8* bitcast (i32 (i32, i8**)* @main to i8*), i32 %argc, !dbg !37 + %2 = tail call i32 @puts(ptr @.str1) nounwind, !dbg !36 + %3 = getelementptr inbounds i8, ptr @main, i32 %argc, !dbg !37 %4 = trunc i32 %argc to i8, !dbg !37 %5 = add i8 %4, 97, !dbg !37 - tail call void @llvm.dbg.value(metadata i8* %3, metadata !49, metadata !DIExpression()) nounwind, !dbg !38 + tail call void @llvm.dbg.value(metadata ptr %3, metadata !49, metadata !DIExpression()) nounwind, !dbg !38 tail call void @llvm.dbg.value(metadata double %1, metadata !50, metadata !DIExpression()) nounwind, !dbg !38 tail call void @llvm.dbg.value(metadata i8 %5, metadata !51, metadata !DIExpression()) nounwind, !dbg !38 %6 = zext i8 %5 to i32, !dbg !39 - %7 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %3, double %1, i32 %6) nounwind, !dbg !39 - %8 = tail call i32 @printer(i8* %3, double %1, i8 zeroext %5) nounwind, !dbg !40 + %7 = tail call i32 (ptr, ...) @printf(ptr @.str, ptr %3, double %1, i32 %6) nounwind, !dbg !39 + %8 = tail call i32 @printer(ptr %3, double %1, i8 zeroext %5) nounwind, !dbg !40 ret i32 0, !dbg !41 } -declare i32 @puts(i8* nocapture) nounwind +declare i32 @puts(ptr nocapture) nounwind !llvm.dbg.cu = !{!2} !llvm.module.flags = !{!48} diff --git a/llvm/test/CodeGen/ARM/debug-info-s16-reg.ll b/llvm/test/CodeGen/ARM/debug-info-s16-reg.ll index c260b2ef6749b..2f256141f4c6f 100644 --- a/llvm/test/CodeGen/ARM/debug-info-s16-reg.ll +++ b/llvm/test/CodeGen/ARM/debug-info-s16-reg.ll @@ -10,53 +10,53 @@ target triple = "thumbv7-apple-macosx10.6.7" @.str = private unnamed_addr constant [11 x i8] c"%p %lf %c\0A\00" @.str1 = private unnamed_addr constant [6 x i8] c"point\00" -define i32 @inlineprinter(i8* %ptr, float %val, i8 zeroext %c) nounwind optsize ssp !dbg !0 { +define i32 @inlineprinter(ptr %ptr, float %val, i8 zeroext %c) nounwind optsize ssp !dbg !0 { entry: - tail call void @llvm.dbg.value(metadata i8* %ptr, metadata !8, metadata !DIExpression()), !dbg !24 + tail call void @llvm.dbg.value(metadata ptr %ptr, metadata !8, metadata !DIExpression()), !dbg !24 tail call void @llvm.dbg.value(metadata float %val, metadata !10, metadata !DIExpression()), !dbg !25 tail call void @llvm.dbg.value(metadata i8 %c, metadata !12, metadata !DIExpression()), !dbg !26 %conv = fpext float %val to double, !dbg !27 %conv3 = zext i8 %c to i32, !dbg !27 - %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !27 + %call = tail call i32 (ptr, ...) @printf(ptr @.str, ptr %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !27 ret i32 0, !dbg !29 } -declare i32 @printf(i8* nocapture, ...) nounwind optsize +declare i32 @printf(ptr nocapture, ...) nounwind optsize -define i32 @printer(i8* %ptr, float %val, i8 zeroext %c) nounwind optsize noinline ssp !dbg !6 { +define i32 @printer(ptr %ptr, float %val, i8 zeroext %c) nounwind optsize noinline ssp !dbg !6 { entry: - tail call void @llvm.dbg.value(metadata i8* %ptr, metadata !14, metadata !DIExpression()), !dbg !30 + tail call void @llvm.dbg.value(metadata ptr %ptr, metadata !14, metadata !DIExpression()), !dbg !30 tail call void @llvm.dbg.value(metadata float %val, metadata !15, metadata !DIExpression()), !dbg !31 tail call void @llvm.dbg.value(metadata i8 %c, metadata !16, metadata !DIExpression()), !dbg !32 %conv = fpext float %val to double, !dbg !33 %conv3 = zext i8 %c to i32, !dbg !33 - %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !33 + %call = tail call i32 (ptr, ...) @printf(ptr @.str, ptr %ptr, double %conv, i32 %conv3) nounwind optsize, !dbg !33 ret i32 0, !dbg !35 } -define i32 @main(i32 %argc, i8** nocapture %argv) nounwind optsize ssp !dbg !7 { +define i32 @main(i32 %argc, ptr nocapture %argv) nounwind optsize ssp !dbg !7 { entry: tail call void @llvm.dbg.value(metadata i32 %argc, metadata !17, metadata !DIExpression()), !dbg !36 - tail call void @llvm.dbg.value(metadata i8** %argv, metadata !18, metadata !DIExpression()), !dbg !37 + tail call void @llvm.dbg.value(metadata ptr %argv, metadata !18, metadata !DIExpression()), !dbg !37 %conv = sitofp i32 %argc to double, !dbg !38 %add = fadd double %conv, 5.555552e+05, !dbg !38 %conv1 = fptrunc double %add to float, !dbg !38 tail call void @llvm.dbg.value(metadata float %conv1, metadata !22, metadata !DIExpression()), !dbg !38 - %call = tail call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0)) nounwind optsize, !dbg !39 - %add.ptr = getelementptr i8, i8* bitcast (i32 (i32, i8**)* @main to i8*), i32 %argc, !dbg !40 + %call = tail call i32 @puts(ptr @.str1) nounwind optsize, !dbg !39 + %add.ptr = getelementptr i8, ptr @main, i32 %argc, !dbg !40 %add5 = add nsw i32 %argc, 97, !dbg !40 %conv6 = trunc i32 %add5 to i8, !dbg !40 - tail call void @llvm.dbg.value(metadata i8* %add.ptr, metadata !58, metadata !DIExpression()) nounwind, !dbg !41 + tail call void @llvm.dbg.value(metadata ptr %add.ptr, metadata !58, metadata !DIExpression()) nounwind, !dbg !41 tail call void @llvm.dbg.value(metadata float %conv1, metadata !60, metadata !DIExpression()) nounwind, !dbg !42 tail call void @llvm.dbg.value(metadata i8 %conv6, metadata !62, metadata !DIExpression()) nounwind, !dbg !43 %conv.i = fpext float %conv1 to double, !dbg !44 %conv3.i = and i32 %add5, 255, !dbg !44 - %call.i = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* %add.ptr, double %conv.i, i32 %conv3.i) nounwind optsize, !dbg !44 - %call14 = tail call i32 @printer(i8* %add.ptr, float %conv1, i8 zeroext %conv6) optsize, !dbg !45 + %call.i = tail call i32 (ptr, ...) @printf(ptr @.str, ptr %add.ptr, double %conv.i, i32 %conv3.i) nounwind optsize, !dbg !44 + %call14 = tail call i32 @printer(ptr %add.ptr, float %conv1, i8 zeroext %conv6) optsize, !dbg !45 ret i32 0, !dbg !46 } -declare i32 @puts(i8* nocapture) nounwind optsize +declare i32 @puts(ptr nocapture) nounwind optsize declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone diff --git a/llvm/test/CodeGen/ARM/dwarf-eh.ll b/llvm/test/CodeGen/ARM/dwarf-eh.ll index 34a20328fb025..75cf0861a3e46 100644 --- a/llvm/test/CodeGen/ARM/dwarf-eh.ll +++ b/llvm/test/CodeGen/ARM/dwarf-eh.ll @@ -9,55 +9,55 @@ target triple = "armv5e--netbsd-eabi" %struct.exception = type { i8 } -@_ZTVN10__cxxabiv117__class_type_infoE = external global i8* +@_ZTVN10__cxxabiv117__class_type_infoE = external global ptr @_ZTS9exception = linkonce_odr constant [11 x i8] c"9exception\00" -@_ZTI9exception = linkonce_odr unnamed_addr constant { i8*, i8* } { i8* bitcast (i8** getelementptr inbounds (i8*, i8** @_ZTVN10__cxxabiv117__class_type_infoE, i32 2) to i8*), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @_ZTS9exception, i32 0, i32 0) } +@_ZTI9exception = linkonce_odr unnamed_addr constant { ptr, ptr } { ptr getelementptr inbounds (ptr, ptr @_ZTVN10__cxxabiv117__class_type_infoE, i32 2), ptr @_ZTS9exception } -define void @f() uwtable personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { - %1 = alloca i8* +define void @f() uwtable personality ptr @__gxx_personality_v0 { + %1 = alloca ptr %2 = alloca i32 - %e = alloca %struct.exception*, align 4 + %e = alloca ptr, align 4 invoke void @g() to label %3 unwind label %4 br label %16 - %5 = landingpad { i8*, i32 } - catch i8* bitcast ({ i8*, i8* }* @_ZTI9exception to i8*) - %6 = extractvalue { i8*, i32 } %5, 0 - store i8* %6, i8** %1 - %7 = extractvalue { i8*, i32 } %5, 1 - store i32 %7, i32* %2 + %5 = landingpad { ptr, i32 } + catch ptr @_ZTI9exception + %6 = extractvalue { ptr, i32 } %5, 0 + store ptr %6, ptr %1 + %7 = extractvalue { ptr, i32 } %5, 1 + store i32 %7, ptr %2 br label %8 - %9 = load i32, i32* %2 - %10 = call i32 @llvm.eh.typeid.for(i8* bitcast ({ i8*, i8* }* @_ZTI9exception to i8*)) nounwind + %9 = load i32, ptr %2 + %10 = call i32 @llvm.eh.typeid.for(ptr @_ZTI9exception) nounwind %11 = icmp eq i32 %9, %10 br i1 %11, label %12, label %17 - %13 = load i8*, i8** %1 - %14 = call i8* @__cxa_begin_catch(i8* %13) #3 - %15 = bitcast i8* %14 to %struct.exception* - store %struct.exception* %15, %struct.exception** %e + %13 = load ptr, ptr %1 + %14 = call ptr @__cxa_begin_catch(ptr %13) #3 + %15 = bitcast ptr %14 to ptr + store ptr %15, ptr %e call void @__cxa_end_catch() br label %16 ret void - %18 = load i8*, i8** %1 - %19 = load i32, i32* %2 - %20 = insertvalue { i8*, i32 } undef, i8* %18, 0 - %21 = insertvalue { i8*, i32 } %20, i32 %19, 1 - resume { i8*, i32 } %21 + %18 = load ptr, ptr %1 + %19 = load i32, ptr %2 + %20 = insertvalue { ptr, i32 } undef, ptr %18, 0 + %21 = insertvalue { ptr, i32 } %20, i32 %19, 1 + resume { ptr, i32 } %21 } declare void @g() declare i32 @__gxx_personality_v0(...) -declare i32 @llvm.eh.typeid.for(i8*) nounwind readnone +declare i32 @llvm.eh.typeid.for(ptr) nounwind readnone -declare i8* @__cxa_begin_catch(i8*) +declare ptr @__cxa_begin_catch(ptr) declare void @__cxa_end_catch() diff --git a/llvm/test/CodeGen/ARM/ldrcppic.ll b/llvm/test/CodeGen/ARM/ldrcppic.ll index 0a4c8abcad6c4..5ec70b508ffcf 100644 --- a/llvm/test/CodeGen/ARM/ldrcppic.ll +++ b/llvm/test/CodeGen/ARM/ldrcppic.ll @@ -23,7 +23,7 @@ define dso_local fastcc void @_ZN15UsecaseSelector26IsAllowedImplDefinedFormatE1 br i1 undef, label %4, label %13 ;