From f9202e661582f924d5fd0a0c02d011c54042c524 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:36:56 -0500 Subject: [PATCH 1/6] Update examples/LegacyPassManager/HelloWorld/HelloWorld.cpp Co-authored-by: Micah Snyder --- examples/LegacyPassManager/HelloWorld/HelloWorld.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/LegacyPassManager/HelloWorld/HelloWorld.cpp b/examples/LegacyPassManager/HelloWorld/HelloWorld.cpp index f8680f20d6..a51d50bbc5 100644 --- a/examples/LegacyPassManager/HelloWorld/HelloWorld.cpp +++ b/examples/LegacyPassManager/HelloWorld/HelloWorld.cpp @@ -10,7 +10,6 @@ #include "llvm/IR/LegacyPassManager.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" -//#include "Common/clambc.h" using namespace llvm; namespace { From fabf4e81d98425290493fb54462f348b95177bc6 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:37:05 -0500 Subject: [PATCH 2/6] Update examples/PassManager/AnalysisPlugin/AnalysisPlugin.cpp Co-authored-by: Micah Snyder --- examples/PassManager/AnalysisPlugin/AnalysisPlugin.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/PassManager/AnalysisPlugin/AnalysisPlugin.cpp b/examples/PassManager/AnalysisPlugin/AnalysisPlugin.cpp index 450236f98a..b063b90430 100644 --- a/examples/PassManager/AnalysisPlugin/AnalysisPlugin.cpp +++ b/examples/PassManager/AnalysisPlugin/AnalysisPlugin.cpp @@ -20,9 +20,6 @@ * MA 02110-1301, USA. */ -//#include "Common/clambc.h" -//#include "Common/ClamBCUtilities.h" - #include #include #include From 8ce84495cc959eb6dba2c491a55d6bb19ed7bc93 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:43:08 -0500 Subject: [PATCH 3/6] Update libclambcc/ClamBCRemoveFreezeInsts/ClamBCRemoveFreezeInsts.cpp Co-authored-by: Micah Snyder --- .../ClamBCRemoveFreezeInsts/ClamBCRemoveFreezeInsts.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libclambcc/ClamBCRemoveFreezeInsts/ClamBCRemoveFreezeInsts.cpp b/libclambcc/ClamBCRemoveFreezeInsts/ClamBCRemoveFreezeInsts.cpp index 1d3607570a..a58b2516c9 100644 --- a/libclambcc/ClamBCRemoveFreezeInsts/ClamBCRemoveFreezeInsts.cpp +++ b/libclambcc/ClamBCRemoveFreezeInsts/ClamBCRemoveFreezeInsts.cpp @@ -38,10 +38,10 @@ using namespace std; namespace { /* - * Freeze Instructions are to guarantee sane behaviour in the case of undefs or poison values. The interpreter - * has no notion of freeze instructions, so we are removing them. The verifier will fail if there are undef or - * poison values in the IR, so this is safe to do. - */ + * Freeze Instructions are to guarantee sane behaviour in the case of undefs or poison values. The interpreter + * has no notion of freeze instructions, so we are removing them. The verifier will fail if there are undef or + * poison values in the IR, so this is safe to do. + */ struct ClamBCRemoveFreezeInsts : public PassInfoMixin { protected: Module *pMod = nullptr; From 5cbf24a734e900c0cf7ae1304ffb00d7268974b8 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:44:07 -0500 Subject: [PATCH 4/6] Update examples/PassManager/CMakeLists.txt Co-authored-by: Micah Snyder --- examples/PassManager/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/PassManager/CMakeLists.txt b/examples/PassManager/CMakeLists.txt index ec133b4ea2..327f568880 100644 --- a/examples/PassManager/CMakeLists.txt +++ b/examples/PassManager/CMakeLists.txt @@ -1,4 +1,3 @@ -# Copyright (C) 2021 Cisco Systems, Inc. and/or its affiliates. All rights reserved. - +# Copyright (C) 2021-2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved. add_subdirectory(AnalysisPlugin) From 5c4825fd5768ed7125c0b583332003483913b358 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:44:28 -0500 Subject: [PATCH 5/6] Update libclambcc/ClamBCRemoveUSUB/ClamBCRemoveUSUB.cpp Co-authored-by: Micah Snyder --- libclambcc/ClamBCRemoveUSUB/ClamBCRemoveUSUB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libclambcc/ClamBCRemoveUSUB/ClamBCRemoveUSUB.cpp b/libclambcc/ClamBCRemoveUSUB/ClamBCRemoveUSUB.cpp index 2888d5c2a4..976d8f81b5 100644 --- a/libclambcc/ClamBCRemoveUSUB/ClamBCRemoveUSUB.cpp +++ b/libclambcc/ClamBCRemoveUSUB/ClamBCRemoveUSUB.cpp @@ -38,8 +38,8 @@ using namespace std; namespace { /* - * Remove usub intrinsic because it's not supported by our runtime. - */ + * Remove usub intrinsic because it's not supported by our runtime. + */ struct ClamBCRemoveUSUB : public PassInfoMixin { protected: Module *pMod = nullptr; From c37f725aeacc95b7a86993da4bee471a79b60f38 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:44:37 -0500 Subject: [PATCH 6/6] Update libclambcc/ClamBCRemoveUnsupportedICMPIntrinsics/ClamBCRemoveUnsupportedICMPIntrinsics.cpp Co-authored-by: Micah Snyder --- .../ClamBCRemoveUnsupportedICMPIntrinsics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libclambcc/ClamBCRemoveUnsupportedICMPIntrinsics/ClamBCRemoveUnsupportedICMPIntrinsics.cpp b/libclambcc/ClamBCRemoveUnsupportedICMPIntrinsics/ClamBCRemoveUnsupportedICMPIntrinsics.cpp index 9a7ae73374..4ede0dc0a4 100644 --- a/libclambcc/ClamBCRemoveUnsupportedICMPIntrinsics/ClamBCRemoveUnsupportedICMPIntrinsics.cpp +++ b/libclambcc/ClamBCRemoveUnsupportedICMPIntrinsics/ClamBCRemoveUnsupportedICMPIntrinsics.cpp @@ -38,8 +38,8 @@ using namespace std; namespace { /* - * Remove smin intrinsic because it's not supported by our runtime. - */ + * Remove smin intrinsic because it's not supported by our runtime. + */ struct ClamBCRemoveUnsupportedICMPIntrinsics : public PassInfoMixin { protected: Module *pMod = nullptr;