Skip to content

Commit a1a451f

Browse files
krystian-andrzejewskiigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 673d166
Simplifying code related to sample and texel fetch instructions
1 parent 292654b commit a1a451f

15 files changed

+537
-203
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*========================== begin_copyright_notice ============================
2+
3+
Copyright (c) 2000-2021 Intel Corporation
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"),
7+
to deal in the Software without restriction, including without limitation
8+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
9+
and/or sell copies of the Software, and to permit persons to whom
10+
the Software is furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included
13+
in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21+
IN THE SOFTWARE.
22+
23+
============================= end_copyright_notice ===========================*/
24+
25+
/// Declaration of upgrader passes. When the IR changes, we add passes to keep compatibility with
26+
/// clients which haven't moved yet to the new representation.
27+
28+
#pragma once
29+
30+
namespace llvm
31+
{
32+
class Pass;
33+
}
34+
namespace IGC
35+
{
36+
/// Transform legacy resource access intrinsics taking an integer representation to
37+
/// the new intrinsics taking pointer representation
38+
llvm::Pass* CreateUpgradeResourceIntrinsic();
39+
///Transfor legacy gen intrisics with prefix "@genx." => "@llvm.genx."
40+
llvm::Pass* CreateUpgradeGenIntrinsicPrefix();
41+
/// Delete legacy resource access intrinsics
42+
llvm::Pass* CreateDeleteLegacyIntrinsicDeclarations();
43+
}

0 commit comments

Comments
 (0)