/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
test
src/opt/CheckIRForXeTarget.h
35 строк
874 B
Arina Neshlyaeva
Ported individual passes to new PM
10 июл 2023, 23:08
10 июл 2023, 23:08
49d0506
Код
Авторство
О чём код?
/* Copyright (c) 2022-2023, Intel Corporation SPDX-License-Identifier: BSD-3-Clause */ #pragma once #include "ISPCPass.h" #ifdef ISPC_XE_ENABLED namespace ispc { /** This pass checks IR for Xe target and fix arguments for Xe intrinsics if needed. In case if unsupported statement is found, it reports error and stops compilation. Currently it performs 2 checks: 1. double type support by target 2. prefetch support by target and fixing prefetch args */ class CheckIRForXeTarget : public llvm::PassInfoMixin<CheckIRForXeTarget> { public: explicit CheckIRForXeTarget() {} static llvm::StringRef getPassName() { return "Check and fix IR for Xe target"; } llvm::PreservedAnalyses run(llvm::Function &F, llvm::FunctionAnalysisManager &FAM); private: bool checkAndFixIRForXe(llvm::BasicBlock &BB); }; } // namespace ispc #endif