File tree Expand file tree Collapse file tree 4 files changed +39
-7
lines changed Expand file tree Collapse file tree 4 files changed +39
-7
lines changed Original file line number Diff line number Diff line change @@ -51,3 +51,18 @@ Checks: >
51
51
readability-simplify-boolean-expr,
52
52
readability-simplify-subscript-expr,
53
53
readability-use-anyofallof
54
+ CheckOptions :
55
+ - key : readability-identifier-naming.ClassCase
56
+ value : CamelCase
57
+ - key : readability-identifier-naming.EnumCase
58
+ value : CamelCase
59
+ - key : readability-identifier-naming.FunctionCase
60
+ value : camelBack
61
+ - key : readability-identifier-naming.MemberCase
62
+ value : CamelCase
63
+ - key : readability-identifier-naming.ParameterCase
64
+ value : CamelCase
65
+ - key : readability-identifier-naming.UnionCase
66
+ value : CamelCase
67
+ - key : readability-identifier-naming.VariableCase
68
+ value : CamelCase
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ namespace cir {
29
29
30
30
namespace direct {
31
31
std::unique_ptr<llvm::Module>
32
- lowerDirectlyFromCIRToLLVMIR (mlir::ModuleOp M, llvm::LLVMContext &Ctx);
32
+ lowerDirectlyFromCIRToLLVMIR (mlir::ModuleOp mlirModule,
33
+ llvm::LLVMContext &llvmCtx);
33
34
} // namespace direct
34
35
} // namespace cir
35
36
Original file line number Diff line number Diff line change
1
+ InheritParentConfig : true
2
+ CheckOptions :
3
+ - key : readability-identifier-naming.ClassCase
4
+ value : CamelCase
5
+ - key : readability-identifier-naming.EnumCase
6
+ value : CamelCase
7
+ - key : readability-identifier-naming.FunctionCase
8
+ value : camelBack
9
+ - key : readability-identifier-naming.MemberCase
10
+ value : CamelCase
11
+ - key : readability-identifier-naming.ParameterCase
12
+ value : CamelCase
13
+ - key : readability-identifier-naming.UnionCase
14
+ value : CamelCase
15
+ - key : readability-identifier-naming.VariableCase
16
+ value : CamelCase
Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ namespace cir {
23
23
namespace direct {
24
24
25
25
std::unique_ptr<llvm::Module>
26
- lowerDirectlyFromCIRToLLVMIR (mlir::ModuleOp MOp , LLVMContext &LLVMCtx ) {
26
+ lowerDirectlyFromCIRToLLVMIR (mlir::ModuleOp mlirModule , LLVMContext &llvmCtx ) {
27
27
llvm::TimeTraceScope scope (" lower from CIR to LLVM directly" );
28
28
29
- std::optional<StringRef> ModuleName = MOp .getName ();
30
- auto M = std::make_unique<llvm::Module>(
31
- ModuleName ? *ModuleName : " CIRToLLVMModule" , LLVMCtx );
29
+ std::optional<StringRef> moduleName = mlirModule .getName ();
30
+ auto llvmModule = std::make_unique<llvm::Module>(
31
+ moduleName ? *moduleName : " CIRToLLVMModule" , llvmCtx );
32
32
33
- if (!M )
33
+ if (!llvmModule )
34
34
report_fatal_error (" Lowering from LLVMIR dialect to llvm IR failed!" );
35
35
36
- return M ;
36
+ return llvmModule ;
37
37
}
38
38
} // namespace direct
39
39
} // namespace cir
You can’t perform that action at this time.
0 commit comments