Skip to content

Commit

Permalink
fixup! [AIE] Add basic clang support, including intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinschwarz committed Jun 19, 2024
1 parent 1cfe273 commit a3b510d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions clang/test/CodeGen/aie/aie-abi-cpp.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --return-type --skip-function-body
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature
//===- aie-abi-cpp.cpp ------------------------------------------*- C++ -*-===//
//
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
Expand All @@ -23,5 +23,5 @@ class C2I {
// CHECK-SAME: (ptr noundef [[TMP0:%.*]]) #[[ATTR0:[0-9]+]] {
void pass_C2I(C2I) {}
// CHECK-LABEL: define {{[^@]*}}void @_Z7ret_C2Iv
// CHECK-SAME: (ptr noalias sret([[CLASS_C2I:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
// CHECK-SAME: (ptr dead_on_unwind noalias writable sret([[CLASS_C2I:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
C2I ret_C2I() {}
6 changes: 3 additions & 3 deletions clang/test/CodeGen/aie/aie-abi-struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ struct S4I_A8 {
};

// CHECK-LABEL: define {{[^@]*}}void @ret_S4I_A8
// CHECK-SAME: (ptr noalias sret([[STRUCT_S4I_A8:%.*]]) align 8 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
// CHECK-SAME: (ptr dead_on_unwind noalias writable sret([[STRUCT_S4I_A8:%.*]]) align 8 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
struct S4I_A8 ret_S4I_A8(void) { return {}; }
// CHECK-LABEL: define {{[^@]*}}void @pass_S4I_A8
// CHECK-SAME: ([[STRUCT_S4I_A8:%.*]] [[DOTCOERCE:%.*]]) #[[ATTR0:[0-9]+]] {
Expand All @@ -137,7 +137,7 @@ struct S5I {
};

// CHECK-LABEL: define {{[^@]*}}void @ret_S5I
// CHECK-SAME: (ptr noalias sret([[STRUCT_S5I:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
// CHECK-SAME: (ptr dead_on_unwind noalias writable sret([[STRUCT_S5I:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
struct S5I ret_S5I(void) { return {}; }
// CHECK-LABEL: define {{[^@]*}}void @pass_S5I
// CHECK-SAME: ([[STRUCT_S5I:%.*]] [[DOTCOERCE:%.*]]) #[[ATTR0:[0-9]+]] {
Expand All @@ -148,7 +148,7 @@ struct S5xI {
};

// CHECK-LABEL: define {{[^@]*}}void @ret_S5xI
// CHECK-SAME: (ptr noalias sret([[STRUCT_S5XI:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
// CHECK-SAME: (ptr dead_on_unwind noalias writable sret([[STRUCT_S5XI:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
struct S5xI ret_S5xI(void) { return {}; }
// CHECK-LABEL: define {{[^@]*}}void @pass_S5xI
// CHECK-SAME: ([[STRUCT_S5XI:%.*]] [[DOTCOERCE:%.*]]) #[[ATTR0:[0-9]+]] {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aie/aie-abi-vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct S3xv2int32 {
v2int32 a[3];
};
// CHECK-LABEL: define {{[^@]*}}void @ret_S3xv2int32
// CHECK-SAME: (ptr noalias sret([[STRUCT_S3XV2INT32:%.*]]) align 8 [[AGG_RESULT:%.*]]) #[[ATTR1:[0-9]+]] {
// CHECK-SAME: (ptr dead_on_unwind noalias writable sret([[STRUCT_S3XV2INT32:%.*]]) align 8 [[AGG_RESULT:%.*]]) #[[ATTR1:[0-9]+]] {
S3xv2int32 ret_S3xv2int32(void) { return {}; }

/****** 128-bits vector ******/
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/aie/aie-abi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ typedef struct S3 {

// align 4 %agg.result)
// CHECK-LABEL: define {{[^@]*}}void @ret_st3
// CHECK-SAME: (ptr noalias sret([[STRUCT_S3:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
// CHECK-SAME: (ptr dead_on_unwind noalias writable sret([[STRUCT_S3:%.*]]) align 4 [[AGG_RESULT:%.*]]) #[[ATTR0:[0-9]+]] {
st3 ret_st3(void) { return {0, 0, 0, 0, 0}; }

// CHECK-LABEL: define {{[^@]*}}i32 @tk_st3
Expand Down

0 comments on commit a3b510d

Please sign in to comment.