You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/Util/ErrMsg.h
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
namespaceErrMsg {
4
4
namespaceClass {
5
5
namespaceAPInt {
6
-
constexprconstchar *constructor = "APInt.constructor needs to be called with new (numBits: number, value: number, isSigned?: boolean)";
6
+
constexprconstchar *constructor = "APInt.constructor needs to be called with new (numBits: number, value: number | bigint, isSigned?: boolean)";
7
7
}
8
8
namespaceAPFloat {
9
9
constexprconstchar *constructor = "APFloat.constructor needs to be called with new (value: number)";
@@ -579,6 +579,19 @@ namespace ErrMsg {
579
579
}
580
580
namespaceTargetMachine {
581
581
constexprconstchar *constructor = "TargetMachine.constructor needs to be called with new (external: Napi::External<llvm::TargetMachine>)";
582
+
constexprconstchar *emitToFile = "TargetMachine.emitToFile needs to be called with (module: Module, path: string, format: CodeGenFileType)";
583
+
constexprconstchar *emitToBuffer = "TargetMachine.emitToBuffer needs to be called with (module: Module, format: CodeGenFileType)";
584
+
constexprconstchar *addPassesToEmitFile = "Cannot register passes to emit file. Check registered ASM printers, targets and relevant stuff";
585
+
}
586
+
namespaceModulePassManager {
587
+
constexprconstchar *constructor = "ModulePassManager.constructor needs to be called with new (optLevel: OptimizationLevel)";
588
+
constexprconstchar *createFunctionPassManager = "ModulePassManager.createFunctionPassManager needs to be called with new (ltoPhase: ThinOrFullLTOPhase)";
589
+
constexprconstchar *addFunctionPasses = "ModulePassManager.addFunctionPasses needs to be called with new (fpm: FunctionPassManager)";
590
+
constexprconstchar *run = "ModulePassManager.run needs to be called with new (module: Module)";
591
+
}
592
+
namespaceFunctionPassManager {
593
+
constexprconstchar *constructor = "ModulePassManager.constructor needs to be called with new (external: Napi::External<llvm::TargetMachine>)";
0 commit comments