diff --git a/CMakeLists.txt b/CMakeLists.txt index c074b8c..561625e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + cmake_minimum_required(VERSION 3.13.3) project(llvm-dialects) diff --git a/docker/update-dialects.sh b/docker/update-dialects.sh index 9e667fc..5ae7c7d 100755 --- a/docker/update-dialects.sh +++ b/docker/update-dialects.sh @@ -1,4 +1,23 @@ #!/usr/bin/env bash +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + # Update the driver and clone a specified version of dialects. set -e diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index b2b6877..1617b22 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + ### Example application diff --git a/example/ExampleDialect.cpp b/example/ExampleDialect.cpp index e807dea..17e3e34 100644 --- a/example/ExampleDialect.cpp +++ b/example/ExampleDialect.cpp @@ -1,27 +1,20 @@ /* *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * - * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: + * http://www.apache.org/licenses/LICENSE-2.0 * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - **********************************************************************************************************************/ + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #include "ExampleDialect.h" diff --git a/example/ExampleDialect.h b/example/ExampleDialect.h index 41d78f8..81579d3 100644 --- a/example/ExampleDialect.h +++ b/example/ExampleDialect.h @@ -1,27 +1,20 @@ /* *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * - * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: + * http://www.apache.org/licenses/LICENSE-2.0 * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - **********************************************************************************************************************/ + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #pragma once diff --git a/example/ExampleDialect.td b/example/ExampleDialect.td index c3710fc..1b2a2bf 100644 --- a/example/ExampleDialect.td +++ b/example/ExampleDialect.td @@ -1,27 +1,20 @@ /* *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * - * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: + * http://www.apache.org/licenses/LICENSE-2.0 * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - **********************************************************************************************************************/ + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ include "llvm-dialects/Dialect/Dialect.td" diff --git a/example/ExampleMain.cpp b/example/ExampleMain.cpp index 18b4c5f..dca3b5e 100644 --- a/example/ExampleMain.cpp +++ b/example/ExampleMain.cpp @@ -1,27 +1,20 @@ /* *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * - * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: + * http://www.apache.org/licenses/LICENSE-2.0 * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - **********************************************************************************************************************/ + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #include "ExampleDialect.h" diff --git a/include/llvm-dialects/Dialect/Builder.h b/include/llvm-dialects/Dialect/Builder.h index cb0cfe1..b9baaf6 100644 --- a/include/llvm-dialects/Dialect/Builder.h +++ b/include/llvm-dialects/Dialect/Builder.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/Dialect/ContextExtension.h b/include/llvm-dialects/Dialect/ContextExtension.h index 240ff4d..40909dc 100644 --- a/include/llvm-dialects/Dialect/ContextExtension.h +++ b/include/llvm-dialects/Dialect/ContextExtension.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/Dialect/Dialect.h b/include/llvm-dialects/Dialect/Dialect.h index f3b92ef..4c9741d 100644 --- a/include/llvm-dialects/Dialect/Dialect.h +++ b/include/llvm-dialects/Dialect/Dialect.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/Dialect/Dialect.td b/include/llvm-dialects/Dialect/Dialect.td index 55557a7..dcea24a 100644 --- a/include/llvm-dialects/Dialect/Dialect.td +++ b/include/llvm-dialects/Dialect/Dialect.td @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ def args; diff --git a/include/llvm-dialects/Dialect/OpDescription.h b/include/llvm-dialects/Dialect/OpDescription.h index 1a19a21..a1ecc49 100644 --- a/include/llvm-dialects/Dialect/OpDescription.h +++ b/include/llvm-dialects/Dialect/OpDescription.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/Dialect/OpMap.h b/include/llvm-dialects/Dialect/OpMap.h index 5873fea..8c278b8 100644 --- a/include/llvm-dialects/Dialect/OpMap.h +++ b/include/llvm-dialects/Dialect/OpMap.h @@ -1,27 +1,20 @@ /* -*********************************************************************************************************************** -* -* Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -*all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -**********************************************************************************************************************/ + *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #pragma once diff --git a/include/llvm-dialects/Dialect/OpSet.h b/include/llvm-dialects/Dialect/OpSet.h index ed7f33d..f4a76e4 100644 --- a/include/llvm-dialects/Dialect/OpSet.h +++ b/include/llvm-dialects/Dialect/OpSet.h @@ -1,27 +1,20 @@ /* -*********************************************************************************************************************** -* -* Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -*all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -**********************************************************************************************************************/ + *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #pragma once diff --git a/include/llvm-dialects/Dialect/Utils.h b/include/llvm-dialects/Dialect/Utils.h index 8e3f283..2c34b34 100644 --- a/include/llvm-dialects/Dialect/Utils.h +++ b/include/llvm-dialects/Dialect/Utils.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/Dialect/Verifier.h b/include/llvm-dialects/Dialect/Verifier.h index 13ae571..c48caf2 100644 --- a/include/llvm-dialects/Dialect/Verifier.h +++ b/include/llvm-dialects/Dialect/Verifier.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/Dialect/Visitor.h b/include/llvm-dialects/Dialect/Visitor.h index bce34ca..fd6e731 100644 --- a/include/llvm-dialects/Dialect/Visitor.h +++ b/include/llvm-dialects/Dialect/Visitor.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Common.h b/include/llvm-dialects/TableGen/Common.h index d28fe35..f08075b 100644 --- a/include/llvm-dialects/TableGen/Common.h +++ b/include/llvm-dialects/TableGen/Common.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Constraints.h b/include/llvm-dialects/TableGen/Constraints.h index b3bea23..3a82ed3 100644 --- a/include/llvm-dialects/TableGen/Constraints.h +++ b/include/llvm-dialects/TableGen/Constraints.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/DialectType.h b/include/llvm-dialects/TableGen/DialectType.h index f7a725b..5dd1a18 100644 --- a/include/llvm-dialects/TableGen/DialectType.h +++ b/include/llvm-dialects/TableGen/DialectType.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Dialects.h b/include/llvm-dialects/TableGen/Dialects.h index 671baf9..60317d8 100644 --- a/include/llvm-dialects/TableGen/Dialects.h +++ b/include/llvm-dialects/TableGen/Dialects.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Evaluator.h b/include/llvm-dialects/TableGen/Evaluator.h index 0e94b8a..0abaa2a 100644 --- a/include/llvm-dialects/TableGen/Evaluator.h +++ b/include/llvm-dialects/TableGen/Evaluator.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Format.h b/include/llvm-dialects/TableGen/Format.h index 4524bb2..4fe0c9c 100644 --- a/include/llvm-dialects/TableGen/Format.h +++ b/include/llvm-dialects/TableGen/Format.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ //===----------------------------------------------------------------------===// // diff --git a/include/llvm-dialects/TableGen/GenDialect.h b/include/llvm-dialects/TableGen/GenDialect.h index 03b3ed0..407ae63 100644 --- a/include/llvm-dialects/TableGen/GenDialect.h +++ b/include/llvm-dialects/TableGen/GenDialect.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/NamedValue.h b/include/llvm-dialects/TableGen/NamedValue.h index e93693a..6da4f80 100644 --- a/include/llvm-dialects/TableGen/NamedValue.h +++ b/include/llvm-dialects/TableGen/NamedValue.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Operations.h b/include/llvm-dialects/TableGen/Operations.h index ae725d4..bf82f51 100644 --- a/include/llvm-dialects/TableGen/Operations.h +++ b/include/llvm-dialects/TableGen/Operations.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Predicates.h b/include/llvm-dialects/TableGen/Predicates.h index 1814c14..4211e58 100644 --- a/include/llvm-dialects/TableGen/Predicates.h +++ b/include/llvm-dialects/TableGen/Predicates.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/SymbolTable.h b/include/llvm-dialects/TableGen/SymbolTable.h index f975654..d2a158c 100644 --- a/include/llvm-dialects/TableGen/SymbolTable.h +++ b/include/llvm-dialects/TableGen/SymbolTable.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/include/llvm-dialects/TableGen/Traits.h b/include/llvm-dialects/TableGen/Traits.h index 8fb7c06..0a4eaad 100644 --- a/include/llvm-dialects/TableGen/Traits.h +++ b/include/llvm-dialects/TableGen/Traits.h @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #pragma once diff --git a/lib/Dialect/Builder.cpp b/lib/Dialect/Builder.cpp index 059ee74..5b5b0e0 100644 --- a/lib/Dialect/Builder.cpp +++ b/lib/Dialect/Builder.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/Dialect/Builder.h" diff --git a/lib/Dialect/ContextExtension.cpp b/lib/Dialect/ContextExtension.cpp index 8329aa5..f93de50 100644 --- a/lib/Dialect/ContextExtension.cpp +++ b/lib/Dialect/ContextExtension.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/Dialect/ContextExtension.h" diff --git a/lib/Dialect/Dialect.cpp b/lib/Dialect/Dialect.cpp index 7049480..5875ed5 100644 --- a/lib/Dialect/Dialect.cpp +++ b/lib/Dialect/Dialect.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/Dialect/Dialect.h" diff --git a/lib/Dialect/OpDescription.cpp b/lib/Dialect/OpDescription.cpp index d01a682..24a2c57 100644 --- a/lib/Dialect/OpDescription.cpp +++ b/lib/Dialect/OpDescription.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/Dialect/OpDescription.h" diff --git a/lib/Dialect/Utils.cpp b/lib/Dialect/Utils.cpp index c0538a8..2c88314 100644 --- a/lib/Dialect/Utils.cpp +++ b/lib/Dialect/Utils.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/Dialect/Utils.h" diff --git a/lib/Dialect/Verifier.cpp b/lib/Dialect/Verifier.cpp index 07bfa0c..67d5f5d 100644 --- a/lib/Dialect/Verifier.cpp +++ b/lib/Dialect/Verifier.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/Dialect/Verifier.h" diff --git a/lib/Dialect/Visitor.cpp b/lib/Dialect/Visitor.cpp index 9fbdd0d..cf14c47 100644 --- a/lib/Dialect/Visitor.cpp +++ b/lib/Dialect/Visitor.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2024 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/Dialect/Visitor.h" diff --git a/lib/TableGen/Common.cpp b/lib/TableGen/Common.cpp index 0569008..78e7508 100644 --- a/lib/TableGen/Common.cpp +++ b/lib/TableGen/Common.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Common.h" diff --git a/lib/TableGen/Constraints.cpp b/lib/TableGen/Constraints.cpp index bebfe1f..6008ebd 100644 --- a/lib/TableGen/Constraints.cpp +++ b/lib/TableGen/Constraints.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Constraints.h" diff --git a/lib/TableGen/DialectType.cpp b/lib/TableGen/DialectType.cpp index 00a785d..183c52c 100644 --- a/lib/TableGen/DialectType.cpp +++ b/lib/TableGen/DialectType.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/DialectType.h" diff --git a/lib/TableGen/Dialects.cpp b/lib/TableGen/Dialects.cpp index a8fb0a5..6c05eb9 100644 --- a/lib/TableGen/Dialects.cpp +++ b/lib/TableGen/Dialects.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Dialects.h" diff --git a/lib/TableGen/Evaluator.cpp b/lib/TableGen/Evaluator.cpp index 2a49676..9b6ef8f 100644 --- a/lib/TableGen/Evaluator.cpp +++ b/lib/TableGen/Evaluator.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Evaluator.h" diff --git a/lib/TableGen/GenDialect.cpp b/lib/TableGen/GenDialect.cpp index aee1344..34bea86 100644 --- a/lib/TableGen/GenDialect.cpp +++ b/lib/TableGen/GenDialect.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/GenDialect.h" diff --git a/lib/TableGen/NamedValue.cpp b/lib/TableGen/NamedValue.cpp index 673414a..71ca7d9 100644 --- a/lib/TableGen/NamedValue.cpp +++ b/lib/TableGen/NamedValue.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/NamedValue.h" diff --git a/lib/TableGen/Operations.cpp b/lib/TableGen/Operations.cpp index 2b0bf56..b0c5eb6 100644 --- a/lib/TableGen/Operations.cpp +++ b/lib/TableGen/Operations.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Operations.h" diff --git a/lib/TableGen/Predicates.cpp b/lib/TableGen/Predicates.cpp index 37196de..f992ae4 100644 --- a/lib/TableGen/Predicates.cpp +++ b/lib/TableGen/Predicates.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Predicates.h" diff --git a/lib/TableGen/SymbolTable.cpp b/lib/TableGen/SymbolTable.cpp index 0b3476c..f2be7d5 100644 --- a/lib/TableGen/SymbolTable.cpp +++ b/lib/TableGen/SymbolTable.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/SymbolTable.h" diff --git a/lib/TableGen/Traits.cpp b/lib/TableGen/Traits.cpp index 9a43b1e..7f5a18a 100644 --- a/lib/TableGen/Traits.cpp +++ b/lib/TableGen/Traits.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,6 +13,7 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Traits.h" diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3121c60..89a1e0f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,27 +1,20 @@ ## ####################################################################################################################### + # Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All Rights Reserved. # - # Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All Rights Reserved. + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at # - # Permission is hereby granted, free of charge, to any person obtaining a copy - # of this software and associated documentation files (the "Software"), to deal - # in the Software without restriction, including without limitation the rights - # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - # copies of the Software, and to permit persons to whom the Software is - # furnished to do so, subject to the following conditions: - # - # The above copyright notice and this permission notice shall be included in all - # copies or substantial portions of the Software. - # - # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - # SOFTWARE. + # http://www.apache.org/licenses/LICENSE-2.0 # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. ####################################################################################################################### + ## set(LLVM_DIALECTS_TEST_DEPENDS FileCheck count not llvm-dialects-example) add_custom_target(llvm-dialects-test-depends DEPENDS ${LLVM_DIALECTS_TEST_DEPENDS}) diff --git a/test/example/test-builder.test b/test/example/test-builder.test index df4c6c4..941ed8f 100644 --- a/test/example/test-builder.test +++ b/test/example/test-builder.test @@ -1,3 +1,22 @@ +;; + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ; Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + ; + ; Licensed under the Apache License, Version 2.0 (the "License"); + ; you may not use this file except in compliance with the License. + ; You may obtain a copy of the License at + ; + ; http://www.apache.org/licenses/LICENSE-2.0 + ; + ; Unless required by applicable law or agreed to in writing, software + ; distributed under the License is distributed on an "AS IS" BASIS, + ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ; See the License for the specific language governing permissions and + ; limitations under the License. + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; + + ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --tool llvm-dialects-example --check-globals --include-generated-funcs ; NOTE: stdin isn't used by the example program, but the redirect makes the UTC tool happy. ; RUN: llvm-dialects-example - | FileCheck --check-prefixes=CHECK %s diff --git a/test/example/test-generated.test b/test/example/test-generated.test index dc9e94c..2e63537 100644 --- a/test/example/test-generated.test +++ b/test/example/test-generated.test @@ -1,2 +1,21 @@ +;; + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ; Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + ; + ; Licensed under the Apache License, Version 2.0 (the "License"); + ; you may not use this file except in compliance with the License. + ; You may obtain a copy of the License at + ; + ; http://www.apache.org/licenses/LICENSE-2.0 + ; + ; Unless required by applicable law or agreed to in writing, software + ; distributed under the License is distributed on an "AS IS" BASIS, + ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ; See the License for the specific language governing permissions and + ; limitations under the License. + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; + + ; RUN: diff --strip-trailing-cr -U 5 %S/generated/ExampleDialect.h.inc test_build_dir/../example/ExampleDialect.h.inc ; RUN: diff --strip-trailing-cr -U 5 %S/generated/ExampleDialect.cpp.inc test_build_dir/../example/ExampleDialect.cpp.inc diff --git a/test/example/verifier-basic.ll b/test/example/verifier-basic.ll index 261cdbd..b5254ed 100644 --- a/test/example/verifier-basic.ll +++ b/test/example/verifier-basic.ll @@ -1,3 +1,22 @@ +;; + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ; Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + ; + ; Licensed under the Apache License, Version 2.0 (the "License"); + ; you may not use this file except in compliance with the License. + ; You may obtain a copy of the License at + ; + ; http://www.apache.org/licenses/LICENSE-2.0 + ; + ; Unless required by applicable law or agreed to in writing, software + ; distributed under the License is distributed on an "AS IS" BASIS, + ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ; See the License for the specific language governing permissions and + ; limitations under the License. + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; + + ; RUN: not llvm-dialects-example -verify %s | FileCheck --check-prefixes=CHECK %s define void @test1(ptr %p) { diff --git a/test/example/visitor-basic.ll b/test/example/visitor-basic.ll index 49a336c..7d92fad 100644 --- a/test/example/visitor-basic.ll +++ b/test/example/visitor-basic.ll @@ -1,3 +1,22 @@ +;; + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ; Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + ; + ; Licensed under the Apache License, Version 2.0 (the "License"); + ; you may not use this file except in compliance with the License. + ; You may obtain a copy of the License at + ; + ; http://www.apache.org/licenses/LICENSE-2.0 + ; + ; Unless required by applicable law or agreed to in writing, software + ; distributed under the License is distributed on an "AS IS" BASIS, + ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ; See the License for the specific language governing permissions and + ; limitations under the License. + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; + + ; RUN: llvm-dialects-example -visit %s | FileCheck --check-prefixes=DEFAULT %s ; DEFAULT: visiting ReadOp: %v = call i32 @xd.ir.read__i32() diff --git a/test/example/visitor-rpot.ll b/test/example/visitor-rpot.ll index 70ca557..ea3f779 100644 --- a/test/example/visitor-rpot.ll +++ b/test/example/visitor-rpot.ll @@ -1,3 +1,22 @@ +;; + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ; Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + ; + ; Licensed under the Apache License, Version 2.0 (the "License"); + ; you may not use this file except in compliance with the License. + ; You may obtain a copy of the License at + ; + ; http://www.apache.org/licenses/LICENSE-2.0 + ; + ; Unless required by applicable law or agreed to in writing, software + ; distributed under the License is distributed on an "AS IS" BASIS, + ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ; See the License for the specific language governing permissions and + ; limitations under the License. + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; + + ; RUN: llvm-dialects-example -visit %s | FileCheck --check-prefixes=DEFAULT %s ; RUN: llvm-dialects-example -visit -rpot %s | FileCheck --check-prefixes=RPOT %s diff --git a/test/lit.cfg.py b/test/lit.cfg.py index 7a42b0f..e3f1aa0 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + # -*- Python -*- # Configuration file for the 'lit' test runner. diff --git a/test/lit.site.cfg.py.in b/test/lit.site.cfg.py.in index be35224..2000f21 100644 --- a/test/lit.site.cfg.py.in +++ b/test/lit.site.cfg.py.in @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + @LIT_SITE_CFG_IN_HEADER@ import sys diff --git a/test/tablegen/duplicate-ops.td b/test/tablegen/duplicate-ops.td index 101c505..2475195 100644 --- a/test/tablegen/duplicate-ops.td +++ b/test/tablegen/duplicate-ops.td @@ -1,3 +1,21 @@ +/* + *********************************************************************************************************************** + * Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ + // RUN: not --crash llvm-dialects-tblgen -gen-dialect-defs -dialect=dups -I%S/../../include %s 2>&1 | FileCheck --check-prefixes=CHECK %s // CHECK: Found op with non-unique mnemonic: duplicate.op diff --git a/test/tablegen/logic-or-free-variables.td b/test/tablegen/logic-or-free-variables.td index 6adc308..52cb056 100644 --- a/test/tablegen/logic-or-free-variables.td +++ b/test/tablegen/logic-or-free-variables.td @@ -1,3 +1,21 @@ +/* + *********************************************************************************************************************** + * Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ + // RUN: llvm-dialects-tblgen -gen-dialect-defs -dialect=test -I%S/../../include %s 2>&1 | FileCheck --check-prefixes=CHECK %s // Only check that the generation runs through without error. diff --git a/test/tablegen/no-or-capture.test.td b/test/tablegen/no-or-capture.test.td index 304d3d3..46243fb 100644 --- a/test/tablegen/no-or-capture.test.td +++ b/test/tablegen/no-or-capture.test.td @@ -1,3 +1,21 @@ +/* + *********************************************************************************************************************** + * Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ + // RUN: not --crash llvm-dialects-tblgen -gen-dialect-defs -dialect=test -I%S/../../include %s 2>&1 | FileCheck --check-prefixes=CHECK %s // CHECK: failed to generate verifier method for IAddOp: diff --git a/test/tablegen/no-type-result.td b/test/tablegen/no-type-result.td index 35ffb43..2e042de 100644 --- a/test/tablegen/no-type-result.td +++ b/test/tablegen/no-type-result.td @@ -1,3 +1,21 @@ +/* + *********************************************************************************************************************** + * Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ + // RUN: not --crash llvm-dialects-tblgen -gen-dialect-defs -dialect=test -I%S/../../include %s 2>&1 | FileCheck --check-prefixes=CHECK %s // CHECK: Operation result cannot be 'type' diff --git a/test/tablegen/single-vararg.td b/test/tablegen/single-vararg.td index a31eb17..fbf1f81 100644 --- a/test/tablegen/single-vararg.td +++ b/test/tablegen/single-vararg.td @@ -1,3 +1,21 @@ +/* + *********************************************************************************************************************** + * Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ + // RUN: llvm-dialects-tblgen -gen-dialect-decls -dialect=test -I%S/../../include %s 2>&1 | FileCheck --check-prefixes=CHECK %s // CHECK: #ifdef GET_INCLUDES diff --git a/test/tablegen/superclass-vararg.td b/test/tablegen/superclass-vararg.td index 68a0693..4f3cc1d 100644 --- a/test/tablegen/superclass-vararg.td +++ b/test/tablegen/superclass-vararg.td @@ -1,3 +1,21 @@ +/* + *********************************************************************************************************************** + * Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ + // RUN: not --crash llvm-dialects-tblgen -gen-dialect-decls -dialect=test -I%S/../../include %s 2>&1 | FileCheck --check-prefixes=CHECK %s // CHECK: Superclass SuperClassVarArgOp already has variadic arguments, cannot have any other arguments. diff --git a/test/tablegen/vararg-non-tail-pos.td b/test/tablegen/vararg-non-tail-pos.td index 65fd9df..4ed4914 100644 --- a/test/tablegen/vararg-non-tail-pos.td +++ b/test/tablegen/vararg-non-tail-pos.td @@ -1,3 +1,21 @@ +/* + *********************************************************************************************************************** + * Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ + // RUN: not --crash llvm-dialects-tblgen -gen-dialect-defs -dialect=test -I%S/../../include %s 2>&1 | FileCheck --check-prefixes=CHECK %s // CHECK: No other argument can follow a definition of 'varargs' diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index e8379c5..eb4f4e8 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + add_custom_target(DialectsUnitTests) set_target_properties(DialectsUnitTests PROPERTIES FOLDER "Dialects Unit Tests") diff --git a/test/unit/dialect/CMakeLists.txt b/test/unit/dialect/CMakeLists.txt index a5a05bd..28ddfb7 100644 --- a/test/unit/dialect/CMakeLists.txt +++ b/test/unit/dialect/CMakeLists.txt @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + ### TableGen for the test dialect diff --git a/test/unit/dialect/TestDialect.cpp b/test/unit/dialect/TestDialect.cpp index e3a24e9..aa601ed 100644 --- a/test/unit/dialect/TestDialect.cpp +++ b/test/unit/dialect/TestDialect.cpp @@ -1,27 +1,20 @@ /* -*********************************************************************************************************************** -* -* Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -*all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -**********************************************************************************************************************/ + *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #include "TestDialect.h" diff --git a/test/unit/dialect/TestDialect.h b/test/unit/dialect/TestDialect.h index b9af23b..54543d2 100644 --- a/test/unit/dialect/TestDialect.h +++ b/test/unit/dialect/TestDialect.h @@ -1,27 +1,20 @@ /* -*********************************************************************************************************************** -* -* Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -*all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -**********************************************************************************************************************/ + *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #pragma once diff --git a/test/unit/dialect/TestDialect.td b/test/unit/dialect/TestDialect.td index b22c36e..1dfecd9 100644 --- a/test/unit/dialect/TestDialect.td +++ b/test/unit/dialect/TestDialect.td @@ -1,27 +1,20 @@ /* *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. * - * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: + * http://www.apache.org/licenses/LICENSE-2.0 * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - **********************************************************************************************************************/ + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ include "llvm-dialects/Dialect/Dialect.td" diff --git a/test/unit/interface/CMakeLists.txt b/test/unit/interface/CMakeLists.txt index 664e266..282a192 100644 --- a/test/unit/interface/CMakeLists.txt +++ b/test/unit/interface/CMakeLists.txt @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + add_dialects_unit_test(DialectsADTTests OpSetTests.cpp OpMapTests.cpp diff --git a/test/unit/interface/OpMapIRTests.cpp b/test/unit/interface/OpMapIRTests.cpp index 4895394..8aa8b61 100644 --- a/test/unit/interface/OpMapIRTests.cpp +++ b/test/unit/interface/OpMapIRTests.cpp @@ -1,27 +1,20 @@ /* -*********************************************************************************************************************** -* -* Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -*all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -**********************************************************************************************************************/ + *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #include "TestDialect.h" #include "llvm-dialects/Dialect/Builder.h" diff --git a/test/unit/interface/OpMapTests.cpp b/test/unit/interface/OpMapTests.cpp index 00e8483..4d5dc04 100644 --- a/test/unit/interface/OpMapTests.cpp +++ b/test/unit/interface/OpMapTests.cpp @@ -1,27 +1,20 @@ /* -*********************************************************************************************************************** -* -* Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -*all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -**********************************************************************************************************************/ + *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #include "TestDialect.h" #include "llvm-dialects/Dialect/OpDescription.h" diff --git a/test/unit/interface/OpSetTests.cpp b/test/unit/interface/OpSetTests.cpp index 8a226ad..1f99da9 100644 --- a/test/unit/interface/OpSetTests.cpp +++ b/test/unit/interface/OpSetTests.cpp @@ -1,27 +1,20 @@ /* -*********************************************************************************************************************** -* -* Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -*all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -* SOFTWARE. -* -**********************************************************************************************************************/ + *********************************************************************************************************************** + * Copyright (c) 2023 Advanced Micro Devices, Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *********************************************************************************************************************** + */ #include "TestDialect.h" #include "llvm-dialects/Dialect/OpDescription.h" diff --git a/test/unit/lit.site.cfg.py.in b/test/unit/lit.site.cfg.py.in index 3fc3a07..811391b 100644 --- a/test/unit/lit.site.cfg.py.in +++ b/test/unit/lit.site.cfg.py.in @@ -1,3 +1,22 @@ +## + ####################################################################################################################### + # Copyright (c) 2024 Advanced Micro Devices, Inc. All Rights Reserved. + # + # Licensed under the Apache License, Version 2.0 (the "License"); + # you may not use this file except in compliance with the License. + # You may obtain a copy of the License at + # + # http://www.apache.org/licenses/LICENSE-2.0 + # + # Unless required by applicable law or agreed to in writing, software + # distributed under the License is distributed on an "AS IS" BASIS, + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + # See the License for the specific language governing permissions and + # limitations under the License. + ####################################################################################################################### + ## + + @LIT_SITE_CFG_IN_HEADER@ import sys diff --git a/utils/llvm-dialects-tblgen.cpp b/utils/llvm-dialects-tblgen.cpp index a391a6a..137ffe9 100644 --- a/utils/llvm-dialects-tblgen.cpp +++ b/utils/llvm-dialects-tblgen.cpp @@ -1,4 +1,5 @@ /* + *********************************************************************************************************************** * Copyright (c) 2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -11,7 +12,8 @@ * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and - * limitations under the License. + * limitations under the License. + *********************************************************************************************************************** */ #include "llvm-dialects/TableGen/Common.h"