black_box
could do.LLVMModuleRef mlirTranslateModuleToLLVMIR(MlirOperation module, LLVMContextRef context) {
Operation *moduleOp = unwrap(module);
llvm::LLVMContext *ctx = reinterpret_cast<llvm::LLVMContext*>(context);
std::unique_ptr<llvm::Module> llvmModule = mlir::translateModuleToLLVMIR(moduleOp, *ctx);
LLVMModuleRef moduleRef = reinterpret_cast<LLVMModuleRef>(const_cast<llvm::Module*>(llvmModule.release()));
return moduleRef;
}
❯ cat .clang-tidy
Checks: '-*,clang-diagnostic-*,llvm-*,misc-*,-misc-const-correctness,-misc-unused-parameters,-misc-non-private-member-variables-in-classes,-misc-no-recursion,-misc-use-anonymous-namespace,readability-identifier-naming'
CheckOptions:
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.FunctionCase
value: camelBack
# Exclude from scanning as this is an exported symbol used for fuzzing
# throughout the code base.
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: "LLVMFuzzerTestOneInput"
- key: readability-identifier-naming.MemberCase
value: CamelCase
- key: readability-identifier-naming.ParameterCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.VariableCase
value: CamelCase
- key: readability-identifier-naming.IgnoreMainLikeFunctions
value: 1
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
value: 1
- key: modernize-use-default-member-init.UseAssignment
value: 1
wow ryOwO is llvm dev
wow ryOwO is llvm dev
sv_register
data
? (edited)