Skip to content

Commit d3b03e4

Browse files
committed
Apply clang-format
1 parent 91bbf4b commit d3b03e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/lib/Target/DirectX/DXILShaderFlags.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,8 @@ void ModuleShaderFlags::gatherGlobalModuleFlags(
215215
// Set DisableOptimizations flag based on the presence of OptimizeNone
216216
// attribute of entry functions.
217217
if (MMDI.EntryPropertyVec.size() > 0) {
218-
CSF.DisableOptimizations =
219-
MMDI.EntryPropertyVec[0].Entry->hasFnAttribute(
220-
llvm::Attribute::OptimizeNone);
218+
CSF.DisableOptimizations = MMDI.EntryPropertyVec[0].Entry->hasFnAttribute(
219+
llvm::Attribute::OptimizeNone);
221220
// Ensure all entry functions have the same optimization attribute
222221
for (const auto &EntryFunProps : MMDI.EntryPropertyVec)
223222
if (CSF.DisableOptimizations !=
@@ -262,7 +261,7 @@ void ModuleShaderFlags::gatherGlobalModuleFlags(
262261
// are UAVs present globally.
263262
if (CanSetResMayNotAlias && MMDI.ValidatorVersion < VersionTuple(1, 8))
264263
CSF.ResMayNotAlias = !DRM.uavs().empty();
265-
}
264+
}
266265

267266
/// Construct ModuleShaderFlags for module Module M
268267
void ModuleShaderFlags::initialize(Module &M, DXILResourceTypeMap &DRTM,

llvm/lib/Target/DirectX/DXILShaderFlags.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ struct ModuleShaderFlags {
101101
DenseMap<const Function *, ComputedShaderFlags> FunctionFlags;
102102
/// Combined Shader Flag Mask of all functions of the module
103103
ComputedShaderFlags CombinedSFMask{};
104-
void gatherGlobalModuleFlags(ComputedShaderFlags &, const Module &M, const DXILResourceMap &,
104+
void gatherGlobalModuleFlags(ComputedShaderFlags &, const Module &M,
105+
const DXILResourceMap &,
105106
const ModuleMetadataInfo &);
106107
void updateFunctionFlags(ComputedShaderFlags &, const Instruction &,
107108
DXILResourceTypeMap &, const ModuleMetadataInfo &);

0 commit comments

Comments
 (0)