Skip to content

Commit 16c7c76

Browse files
jurahulmahesh-attarde
authored andcommitted
[NFC][LLVM] Fix line endings for DXILABI.cpp (llvm#160791)
Fix line ending to Unix style by running dos2unix on this file.
1 parent 84a6789 commit 16c7c76

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

llvm/lib/Support/DXILABI.cpp

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
//===-- DXILABI.cpp - ABI Sensitive Values for DXIL -----------------------===//
2-
//
3-
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4-
// See https://llvm.org/LICENSE.txt for license information.
5-
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6-
//
7-
//===----------------------------------------------------------------------===//
8-
//
9-
// This file contains definitions of various constants and enums that are
10-
// required to remain stable as per the DXIL format's requirements.
11-
//
12-
// Documentation for DXIL can be found in
13-
// https://github.com/Microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst.
14-
//
15-
//===----------------------------------------------------------------------===//
16-
17-
#include "llvm/Support/DXILABI.h"
18-
#include "llvm/Support/ErrorHandling.h"
19-
using namespace llvm;
20-
21-
StringRef dxil::getResourceClassName(dxil::ResourceClass RC) {
22-
switch (RC) {
23-
case dxil::ResourceClass::SRV:
24-
return "SRV";
25-
case dxil::ResourceClass::UAV:
26-
return "UAV";
27-
case dxil::ResourceClass::CBuffer:
28-
return "CBV";
29-
case dxil::ResourceClass::Sampler:
30-
return "Sampler";
31-
}
32-
llvm_unreachable("Invalid ResourceClass enum value");
33-
}
1+
//===-- DXILABI.cpp - ABI Sensitive Values for DXIL -----------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
//
9+
// This file contains definitions of various constants and enums that are
10+
// required to remain stable as per the DXIL format's requirements.
11+
//
12+
// Documentation for DXIL can be found in
13+
// https://github.com/Microsoft/DirectXShaderCompiler/blob/main/docs/DXIL.rst.
14+
//
15+
//===----------------------------------------------------------------------===//
16+
17+
#include "llvm/Support/DXILABI.h"
18+
#include "llvm/Support/ErrorHandling.h"
19+
using namespace llvm;
20+
21+
StringRef dxil::getResourceClassName(dxil::ResourceClass RC) {
22+
switch (RC) {
23+
case dxil::ResourceClass::SRV:
24+
return "SRV";
25+
case dxil::ResourceClass::UAV:
26+
return "UAV";
27+
case dxil::ResourceClass::CBuffer:
28+
return "CBV";
29+
case dxil::ResourceClass::Sampler:
30+
return "Sampler";
31+
}
32+
llvm_unreachable("Invalid ResourceClass enum value");
33+
}

0 commit comments

Comments
 (0)