-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 6.11 KB
/
Copy pathpackage.json
File metadata and controls
94 lines (94 loc) · 6.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "@specs-feup/clava-code-transforms",
"version": "1.2.1",
"author": "Tiago Lascasas Santos <tiagolascasas@outlook.com> (https://tiagolascasas.dev)",
"description": "A set of advanced C/C++ code transformations for Clava",
"type": "module",
"private": false,
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"publish:latest": "npm publish --tag latest",
"publish:staging": "node publish.js staging",
"publish:nightly": "node publish.js nightly",
"lint": "eslint .",
"docs": "typedoc",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --runInBand --detectOpenHandles --forceExit",
"test:alloc-inliner": "clava classic dist/test/TestAllocInliner.js -p inputs/inlining/ -std c11",
"test:amalgamation": "clava classic dist/test/TestAmalgamator.js -p inputs/disparity/ -ncg -std c11 -cr -cfs -pi",
"test:amalgamation-typedefs": "clava classic dist/test/TestAmalgamatorTypedefs.js -p inputs/mser/ -ncg -std c11 -cr -cfs -pi",
"test:arrayflat": "clava dist/test/TestArrayFlattener.js -- clang inputs/arrayflat/",
"test:arrayflat-constprop": "clava dist/test/TestFlatteningConstant.js -- clang inputs/optical-flow/",
"test:call-tree-inliner": "clava classic dist/test/TestCallTreeInliner.js -p inputs/disparity/ -std c11",
"test:constprop": "clava dist/test/TestConstantPropagator.js -- clang inputs/constprop/",
"test:hoisting-malloc": "clava classic dist/test/TestMallocHoisting.js -p inputs/disparity/ -std c11",
"test:inliner": "clava classic dist/test/TestInliner.js -p inputs/disparity/ -std c11",
"test:loopchar": "clava dist/test/TestLoopCharacterizer.js -- clang inputs/loopchar/",
"test:outliner": "clava dist/test/TestOutliner.js -- clang inputs/outlining/",
"test:outliner-edgecases": "clava dist/test/TestOutlinerEdgecases.js -- clang inputs/outlining-edgecases/",
"test:outliner-pointer": "clava classic dist/test/TestOutlinerEdgecases.js -p inputs/outlining-edgecases/PointerReassignment.c",
"test:scopeflat": "clava dist/test/TestScopeFlattener.js -- clang inputs/scopeflat/",
"test:structdecomp": "clava classic dist/test/TestLegacyStructDecomposer.js -p inputs/structdecomp/ -std c11",
"test:structdecomp-cpp": "clava classic dist/test/TestLegacyStructDecomposer.js -p inputs/structdecomp-cpp/ -std c++11",
"test:structdecomp-optiflow": "clava classic dist/test/TestLegacyStructDecomposer.js -p inputs/optical-flow/ -std c++11",
"test:structdecomp-disparity": "clava classic dist/test/TestLightStructDecomposer.js -p inputs/disparity/ -std c11",
"test:vrs": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --detectOpenHandles --forceExit -- test/VectorReduce.test.ts",
"test:full-vrs-partial":"npm run build && npx clava classic dist/test/TestVectorReduce.js -j -p inputs/vectorreduce/SimplePartial.c -o dist/ && gcc -o dist/vrs-simple-partial-ori inputs/vectorreduce/SimplePartial.c && gcc -o dist/vrs-simple-partial-mod dist/woven_code/SimplePartial.c && echo 'original SimplePartial: ' && dist/vrs-simple-partial-ori && echo 'modified SimplePartial: ' && dist/vrs-simple-partial-mod",
"test:full-vrs-complete":"npm run build && npx clava classic dist/test/TestVectorReduce.js -j -p inputs/vectorreduce/SimpleComplete.c -o dist/ && gcc -o dist/vrs-simple-complete-ori inputs/vectorreduce/SimpleComplete.c && gcc -o dist/vrs-simple-complete-mod dist/woven_code/SimpleComplete.c && echo 'original SimpleComplete: ' && dist/vrs-simple-complete-ori && echo 'modified SimpleComplete: ' && dist/vrs-simple-complete-mod",
"test:voidifying": "clava dist/test/TestVoidifier.js -- clang inputs/voidifying/",
"bench:3d-rend": "clava classic dist/test/TestBenchmark3DRendering.js -p inputs/3d-rendering/ -std c++11",
"bench:digit-recog": "clava classic dist/test/TestBenchmarkDigitRecog.js -p inputs/digit-recognition/ -std c++11",
"bench:optiflow": "clava classic dist/test/TestBenchmarkOpticalFlow.js -p inputs/optical-flow/ -std c++11",
"clean": "rm -rf node_modules package-lock.json dist/ woven_code/ output/"
},
"exports": {
"./AdvancedTransform": "./dist/src/AdvancedTransform.js",
"./AllocatorInliner": "./dist/src/function/AllocatorInliner.js",
"./Amalgamator": "./dist/src/program/Amalgamator.js",
"./ArrayFlattener": "./dist/src/flattening/ArrayFlattener.js",
"./CallHoister": "./dist/src/hoisting/CallHoister.js",
"./CallTreeInliner": "./dist/src/function/CallTreeInliner.js",
"./ConstantFolder": "./dist/src/constfolding/ConstantFolder.js",
"./ConstantPropagator": "./dist/src/constfolding/ConstantPropagator.js",
"./FoldingPropagationCombiner": "./dist/src/constfolding/FoldingPropagationCombiner.js",
"./Inliner": "./dist/src/function/Inliner.js",
"./LegacyStructDecomposer": "./dist/src/flattening/legacy/LegacyStructDecomposer.js",
"./LightStructFlattener": "./dist/src/flattening/LightStructFlattener.js",
"./LoopCharacterizer": "./dist/src/loop/LoopCharacterizer.js",
"./MallocHoister": "./dist/src/hoisting/MallocHoister.js",
"./Outliner": "./dist/src/function/Outliner.js",
"./ScopeFlattener": "./dist/src/flattening/ScopeFlattener.js",
"./StructFlattener": "./dist/src/flattening/StructFlattener.js",
"./Voidifier": "./dist/src/function/Voidifier.js",
"./VectorReduceSimplification": "./dist/src/vectorreduce/VectorReduceSimplification.js"
},
"files": [
"dist/src"
],
"dependencies": {
"@specs-feup/clava": "^3.5.2",
"@specs-feup/lara": "^3.5.1",
"chalk": "^5.3.0",
"yocto-queue": "^1.2.2"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@specs-feup/clava-visualization": "^1.0.5",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-tsdoc": "^0.2.17",
"jest": "^29.7.0",
"ts-jest": "^29.3.2",
"typedoc": "^0.26.4",
"typescript": "^5.5.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/specs-feup/clava-code-transforms.git"
}
}