/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/opt/CheckIRForXeTarget.h
32 строки
742 B
Aleksei Nurmukhametov
Clean up ISPC pass defintions
02 май 2024, 21:16
02 май 2024, 21:16
2187a74
Код
Авторство
О чём код?
/* Copyright (c) 2022-2024, 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 */ struct CheckIRForXeTarget : public llvm::PassInfoMixin<CheckIRForXeTarget> { llvm::PreservedAnalyses run(llvm::Function &F, llvm::FunctionAnalysisManager &FAM); private: bool checkAndFixIRForXe(llvm::BasicBlock &BB); }; } // namespace ispc #endif