Skip to content

Commit 1a25c55

Browse files
aratajewigcbot
authored andcommitted
Revert commit 794d514
1 parent 0a58ba2 commit 1a25c55

File tree

6 files changed

+37
-456
lines changed

6 files changed

+37
-456
lines changed

IGC/AdaptorCommon/ProcessFuncAttributes.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ SPDX-License-Identifier: MIT
3434
#include "common/igc_regkeys.hpp"
3535
#include <string>
3636
#include <set>
37-
#include <regex>
3837

3938
using namespace llvm;
4039
using namespace IGC;
@@ -279,14 +278,12 @@ bool ProcessFuncAttributes::runOnModule(Module& M)
279278
// Check all "ExternalLinkage" functions. Func declarations = Import, Func definition = Export
280279
if (F->hasExternalLinkage() && F->getCallingConv() == CallingConv::SPIR_FUNC)
281280
{
282-
bool isKhronosSPVIRBuiltin = std::regex_match(F->getName().str(), std::regex("_Z[0-9]+__spirv_.*"));
283281
// builtins should not be externally linked, they will always be resolved by IGC
284282
return !(F->hasFnAttribute(llvm::Attribute::Builtin)
285283
|| F->getName().startswith("__builtin_")
286284
|| F->getName().startswith("__igcbuiltin_")
287285
|| F->getName().startswith("llvm.")
288-
|| F->getName().equals("printf")
289-
|| isKhronosSPVIRBuiltin);
286+
|| F->getName().equals("printf"));
290287
}
291288
return false;
292289
};

IGC/AdaptorOCL/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
1818
set(IGC_BUILD__SRC__AdaptorOCL
1919
"${CMAKE_CURRENT_SOURCE_DIR}/UnifyIROCL.cpp"
2020
"${CMAKE_CURRENT_SOURCE_DIR}/MoveStaticAllocas.cpp"
21-
"${CMAKE_CURRENT_SOURCE_DIR}/PreprocessSPVIR.cpp"
2221
)
2322

2423
if(IGC_BUILD__SPIRV_ENABLED)
@@ -117,7 +116,6 @@ set(IGC_BUILD__HDR__AdaptorOCL
117116
"${CMAKE_CURRENT_SOURCE_DIR}/DriverInfoOCL.hpp"
118117
"${CMAKE_CURRENT_SOURCE_DIR}/UnifyIROCL.hpp"
119118
"${CMAKE_CURRENT_SOURCE_DIR}/MoveStaticAllocas.h"
120-
"${CMAKE_CURRENT_SOURCE_DIR}/PreprocessSPVIR.h"
121119

122120
#"${IGC_BUILD__COMMON_COMPILER_DIR}/adapters/d3d10/API/USC_d3d10.h"
123121
#"${IGC_BUILD__COMMON_COMPILER_DIR}/adapters/d3d10/usc_d3d10_umd.h"

IGC/AdaptorOCL/PreprocessSPVIR.cpp

Lines changed: 0 additions & 296 deletions
This file was deleted.

IGC/AdaptorOCL/PreprocessSPVIR.h

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)