-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CIR][NFC] Add unimplemented feature guard for dialect code (#481)
As discussed in pull #401 , The present `UnimplementedFeature` class is made for the CIRGen submodule and we need similar facilities for code under `clang/lib/CIR/Dialect/IR`. This NFC patch adds a new `CIRDialectUnimplementedFeature` class that provides unimplemented feature guards for CIR dialect code.
- Loading branch information
Showing
2 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//===---- UnimplementedFeatureGuarding.h - Checks against NYI ---*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This file introduces some helper classes to guard against features that | ||
// CIR dialect supports that we do not have and also do not have great ways to | ||
// assert against. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_CLANG_LIB_CIR_DIALECT_IR_UFG | ||
#define LLVM_CLANG_LIB_CIR_DIALECT_IR_UFG | ||
|
||
namespace cir { | ||
|
||
struct MissingFeatures { | ||
// C++ ABI support | ||
static bool cxxABI() { return false; } | ||
}; | ||
|
||
} // namespace cir | ||
|
||
#endif // LLVM_CLANG_LIB_CIR_DIALECT_IR_UFG |