mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
Rename module
This commit is contained in:
parent
8a6a549520
commit
cd5ba386d7
20 changed files with 28 additions and 28 deletions
|
@ -935,7 +935,7 @@ void registerPredefinedVersions() {
|
|||
// `D_ObjectiveC` is added by the ddmd.objc.Supported ctor
|
||||
|
||||
if (opts::enableRuntimeCompile) {
|
||||
VersionCondition::addPredefinedGlobalIdent("LDC_RuntimeCompilation");
|
||||
VersionCondition::addPredefinedGlobalIdent("LDC_DynamicCompilation");
|
||||
}
|
||||
|
||||
// Define sanitizer versions.
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
/**
|
||||
* Contains jit API.
|
||||
* Contains dynamic compilation API.
|
||||
*
|
||||
* Copyright: Authors 2017
|
||||
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
|
||||
*/
|
||||
|
||||
module ldc.runtimecompile;
|
||||
module ldc.dynamic_compile;
|
||||
|
||||
version(LDC_RuntimeCompilation):
|
||||
version(LDC_DynamicCompilation):
|
||||
|
||||
/// Dump handler stage
|
||||
enum DumpStage : int
|
||||
|
@ -45,8 +45,8 @@ struct CompilerSettings
|
|||
|
||||
/++
|
||||
+ Compile all dynamic code.
|
||||
+ This function must be called before any calls to @runtimeCompile functions and
|
||||
+ after any changes to @runtimeCompile variables
|
||||
+ This function must be called before any calls to @dynamicCompile functions and
|
||||
+ after any changes to @dynamicCompileConst variables
|
||||
+
|
||||
+ Consecutive calls to this function do nothing
|
||||
+
|
||||
|
@ -54,9 +54,9 @@ struct CompilerSettings
|
|||
+
|
||||
+ Example:
|
||||
+ ---
|
||||
+ import ldc.attributes, ldc.runtimecompile, std.stdio;
|
||||
+ import ldc.attributes, ldc.dynamic_compile, std.stdio;
|
||||
+
|
||||
+ @runtimeCompile int foo() { return value * 42; }
|
||||
+ @dynamicCompile int foo() { return value * 42; }
|
||||
+
|
||||
+ void main() {
|
||||
+ compileDynamicCode();
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import std.exception;
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
__gshared int[555] arr1 = 42;
|
||||
__gshared int[555] arr2 = 42;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
@dynamicCompile int foo()
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
interface IFoo
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
@dynamicCompile int foo()
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
void main(string[] args)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
@dynamicCompileConst __gshared int foovar = 0;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
struct Foo
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
void main(string[] args)
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -Os -I%S %s %t2%lib %t3%lib %t4%lib -run
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
import inputs.module1;
|
||||
import inputs.module2;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -singleobj -I%S %s %S/inputs/module1.d %S/inputs/module2.d %S/inputs/module3.d -run
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
import inputs.module1;
|
||||
import inputs.module2;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -I%S %s %S/inputs/rtconst_owner.d %S/inputs/rtconst_user.d -run
|
||||
// RUN: %ldc -enable-dynamic-compile -singleobj -I%S %s %S/inputs/rtconst_owner.d %S/inputs/rtconst_user.d -run
|
||||
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
import inputs.rtconst_owner;
|
||||
import inputs.rtconst_user;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
__gshared int ctorsCalled = 0;
|
||||
__gshared int dtorsCalled = 0;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
@dynamicCompile int foo(int i)
|
||||
{
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
|
||||
import std.stdio;
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
version(LDC_RuntimeCompilation)
|
||||
version(LDC_DynamicCompilation)
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
static assert(false, "LDC_RuntimeCompilation is not defined");
|
||||
static assert(false, "LDC_DynamicCompilation is not defined");
|
||||
}
|
||||
|
||||
@dynamicCompile int foo()
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// XFAIL: Windows_x86
|
||||
// RUN: %ldc -enable-dynamic-compile -run %s
|
||||
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
import ldc.attributes;
|
||||
import std.stdio;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
import core.thread;
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
ThreadID threadId; //thread local
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import std.exception;
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
@dynamicCompile void foo()
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// RUN: %ldc -enable-dynamic-compile -dynamic-compile-tls-workaround=1 -run %s
|
||||
|
||||
import ldc.attributes;
|
||||
import ldc.runtimecompile;
|
||||
import ldc.dynamic_compile;
|
||||
|
||||
@dynamicCompile void foo()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue