hillclimber 0.1.6__cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hillclimber/__init__.py +41 -0
- hillclimber/actions.py +53 -0
- hillclimber/analysis.py +590 -0
- hillclimber/biases.py +293 -0
- hillclimber/calc.py +22 -0
- hillclimber/cvs.py +1070 -0
- hillclimber/interfaces.py +133 -0
- hillclimber/metadynamics.py +416 -0
- hillclimber/nodes.py +6 -0
- hillclimber/opes.py +359 -0
- hillclimber/pycv.py +362 -0
- hillclimber/selectors.py +230 -0
- hillclimber/virtual_atoms.py +341 -0
- hillclimber-0.1.6.dist-info/METADATA +325 -0
- hillclimber-0.1.6.dist-info/RECORD +475 -0
- hillclimber-0.1.6.dist-info/WHEEL +6 -0
- hillclimber-0.1.6.dist-info/entry_points.txt +8 -0
- hillclimber-0.1.6.dist-info/licenses/LICENSE +165 -0
- hillclimber-0.1.6.dist-info/sboms/auditwheel.cdx.json +1 -0
- hillclimber.libs/libgomp-a49a47f9.so.1.0.0 +0 -0
- plumed/__init__.py +104 -0
- plumed/_lib/bin/plumed +0 -0
- plumed/_lib/bin/plumed-config +9 -0
- plumed/_lib/bin/plumed-patch +9 -0
- plumed/_lib/include/plumed/adjmat/AdjacencyMatrixBase.h +659 -0
- plumed/_lib/include/plumed/adjmat/ContactMatrix.h +59 -0
- plumed/_lib/include/plumed/asmjit/arch.h +228 -0
- plumed/_lib/include/plumed/asmjit/arm.h +43 -0
- plumed/_lib/include/plumed/asmjit/asmjit.h +69 -0
- plumed/_lib/include/plumed/asmjit/asmjit_apibegin.h +143 -0
- plumed/_lib/include/plumed/asmjit/asmjit_apiend.h +93 -0
- plumed/_lib/include/plumed/asmjit/asmjit_build.h +971 -0
- plumed/_lib/include/plumed/asmjit/assembler.h +183 -0
- plumed/_lib/include/plumed/asmjit/base.h +56 -0
- plumed/_lib/include/plumed/asmjit/codebuilder.h +944 -0
- plumed/_lib/include/plumed/asmjit/codecompiler.h +767 -0
- plumed/_lib/include/plumed/asmjit/codeemitter.h +528 -0
- plumed/_lib/include/plumed/asmjit/codeholder.h +777 -0
- plumed/_lib/include/plumed/asmjit/constpool.h +286 -0
- plumed/_lib/include/plumed/asmjit/cpuinfo.h +402 -0
- plumed/_lib/include/plumed/asmjit/func.h +1327 -0
- plumed/_lib/include/plumed/asmjit/globals.h +370 -0
- plumed/_lib/include/plumed/asmjit/inst.h +137 -0
- plumed/_lib/include/plumed/asmjit/logging.h +317 -0
- plumed/_lib/include/plumed/asmjit/misc_p.h +103 -0
- plumed/_lib/include/plumed/asmjit/moved_string.h +318 -0
- plumed/_lib/include/plumed/asmjit/operand.h +1599 -0
- plumed/_lib/include/plumed/asmjit/osutils.h +207 -0
- plumed/_lib/include/plumed/asmjit/regalloc_p.h +597 -0
- plumed/_lib/include/plumed/asmjit/runtime.h +227 -0
- plumed/_lib/include/plumed/asmjit/simdtypes.h +1104 -0
- plumed/_lib/include/plumed/asmjit/utils.h +1387 -0
- plumed/_lib/include/plumed/asmjit/vmem.h +183 -0
- plumed/_lib/include/plumed/asmjit/x86.h +45 -0
- plumed/_lib/include/plumed/asmjit/x86assembler.h +125 -0
- plumed/_lib/include/plumed/asmjit/x86builder.h +117 -0
- plumed/_lib/include/plumed/asmjit/x86compiler.h +322 -0
- plumed/_lib/include/plumed/asmjit/x86emitter.h +5149 -0
- plumed/_lib/include/plumed/asmjit/x86globals.h +535 -0
- plumed/_lib/include/plumed/asmjit/x86inst.h +2547 -0
- plumed/_lib/include/plumed/asmjit/x86instimpl_p.h +74 -0
- plumed/_lib/include/plumed/asmjit/x86internal_p.h +108 -0
- plumed/_lib/include/plumed/asmjit/x86logging_p.h +92 -0
- plumed/_lib/include/plumed/asmjit/x86misc.h +417 -0
- plumed/_lib/include/plumed/asmjit/x86operand.h +1133 -0
- plumed/_lib/include/plumed/asmjit/x86regalloc_p.h +734 -0
- plumed/_lib/include/plumed/asmjit/zone.h +1157 -0
- plumed/_lib/include/plumed/bias/Bias.h +82 -0
- plumed/_lib/include/plumed/bias/ReweightBase.h +58 -0
- plumed/_lib/include/plumed/blas/blas.h +253 -0
- plumed/_lib/include/plumed/blas/def_external.h +61 -0
- plumed/_lib/include/plumed/blas/def_internal.h +97 -0
- plumed/_lib/include/plumed/blas/real.h +49 -0
- plumed/_lib/include/plumed/cltools/CLTool.h +32 -0
- plumed/_lib/include/plumed/clusters/ClusteringBase.h +70 -0
- plumed/_lib/include/plumed/colvar/Colvar.h +32 -0
- plumed/_lib/include/plumed/colvar/ColvarInput.h +68 -0
- plumed/_lib/include/plumed/colvar/ColvarShortcut.h +81 -0
- plumed/_lib/include/plumed/colvar/CoordinationBase.h +52 -0
- plumed/_lib/include/plumed/colvar/MultiColvarTemplate.h +333 -0
- plumed/_lib/include/plumed/colvar/PathMSDBase.h +101 -0
- plumed/_lib/include/plumed/colvar/RMSDVector.h +78 -0
- plumed/_lib/include/plumed/config/Config.h +118 -0
- plumed/_lib/include/plumed/config/version.h +9 -0
- plumed/_lib/include/plumed/contour/ContourFindingObject.h +87 -0
- plumed/_lib/include/plumed/contour/DistanceFromContourBase.h +82 -0
- plumed/_lib/include/plumed/contour/FindContour.h +67 -0
- plumed/_lib/include/plumed/core/Action.h +540 -0
- plumed/_lib/include/plumed/core/ActionAnyorder.h +48 -0
- plumed/_lib/include/plumed/core/ActionAtomistic.h +343 -0
- plumed/_lib/include/plumed/core/ActionForInterface.h +99 -0
- plumed/_lib/include/plumed/core/ActionPilot.h +57 -0
- plumed/_lib/include/plumed/core/ActionRegister.h +124 -0
- plumed/_lib/include/plumed/core/ActionSet.h +163 -0
- plumed/_lib/include/plumed/core/ActionSetup.h +48 -0
- plumed/_lib/include/plumed/core/ActionShortcut.h +73 -0
- plumed/_lib/include/plumed/core/ActionToGetData.h +59 -0
- plumed/_lib/include/plumed/core/ActionToPutData.h +101 -0
- plumed/_lib/include/plumed/core/ActionWithArguments.h +140 -0
- plumed/_lib/include/plumed/core/ActionWithMatrix.h +87 -0
- plumed/_lib/include/plumed/core/ActionWithValue.h +258 -0
- plumed/_lib/include/plumed/core/ActionWithVector.h +94 -0
- plumed/_lib/include/plumed/core/ActionWithVirtualAtom.h +123 -0
- plumed/_lib/include/plumed/core/CLTool.h +177 -0
- plumed/_lib/include/plumed/core/CLToolMain.h +102 -0
- plumed/_lib/include/plumed/core/CLToolRegister.h +108 -0
- plumed/_lib/include/plumed/core/Colvar.h +115 -0
- plumed/_lib/include/plumed/core/DataPassingObject.h +94 -0
- plumed/_lib/include/plumed/core/DataPassingTools.h +54 -0
- plumed/_lib/include/plumed/core/DomainDecomposition.h +120 -0
- plumed/_lib/include/plumed/core/ExchangePatterns.h +47 -0
- plumed/_lib/include/plumed/core/FlexibleBin.h +63 -0
- plumed/_lib/include/plumed/core/GREX.h +61 -0
- plumed/_lib/include/plumed/core/GenericMolInfo.h +89 -0
- plumed/_lib/include/plumed/core/Group.h +41 -0
- plumed/_lib/include/plumed/core/ModuleMap.h +30 -0
- plumed/_lib/include/plumed/core/ParallelTaskManager.h +1023 -0
- plumed/_lib/include/plumed/core/PbcAction.h +61 -0
- plumed/_lib/include/plumed/core/PlumedMain.h +632 -0
- plumed/_lib/include/plumed/core/PlumedMainInitializer.h +118 -0
- plumed/_lib/include/plumed/core/RegisterBase.h +340 -0
- plumed/_lib/include/plumed/core/TargetDist.h +48 -0
- plumed/_lib/include/plumed/core/Value.h +547 -0
- plumed/_lib/include/plumed/core/WithCmd.h +93 -0
- plumed/_lib/include/plumed/dimred/SMACOF.h +55 -0
- plumed/_lib/include/plumed/drr/DRR.h +383 -0
- plumed/_lib/include/plumed/drr/colvar_UIestimator.h +777 -0
- plumed/_lib/include/plumed/fisst/legendre_rule_fast.h +44 -0
- plumed/_lib/include/plumed/function/Custom.h +54 -0
- plumed/_lib/include/plumed/function/Function.h +85 -0
- plumed/_lib/include/plumed/function/FunctionOfMatrix.h +368 -0
- plumed/_lib/include/plumed/function/FunctionOfScalar.h +135 -0
- plumed/_lib/include/plumed/function/FunctionOfVector.h +296 -0
- plumed/_lib/include/plumed/function/FunctionSetup.h +180 -0
- plumed/_lib/include/plumed/function/FunctionShortcut.h +130 -0
- plumed/_lib/include/plumed/function/FunctionWithSingleArgument.h +165 -0
- plumed/_lib/include/plumed/gridtools/ActionWithGrid.h +43 -0
- plumed/_lib/include/plumed/gridtools/EvaluateGridFunction.h +99 -0
- plumed/_lib/include/plumed/gridtools/FunctionOfGrid.h +295 -0
- plumed/_lib/include/plumed/gridtools/GridCoordinatesObject.h +179 -0
- plumed/_lib/include/plumed/gridtools/GridSearch.h +135 -0
- plumed/_lib/include/plumed/gridtools/Interpolator.h +45 -0
- plumed/_lib/include/plumed/gridtools/KDE.h +455 -0
- plumed/_lib/include/plumed/gridtools/RDF.h +40 -0
- plumed/_lib/include/plumed/gridtools/SumOfKernels.h +219 -0
- plumed/_lib/include/plumed/isdb/MetainferenceBase.h +398 -0
- plumed/_lib/include/plumed/lapack/def_external.h +207 -0
- plumed/_lib/include/plumed/lapack/def_internal.h +388 -0
- plumed/_lib/include/plumed/lapack/lapack.h +899 -0
- plumed/_lib/include/plumed/lapack/lapack_limits.h +79 -0
- plumed/_lib/include/plumed/lapack/real.h +50 -0
- plumed/_lib/include/plumed/lepton/CompiledExpression.h +164 -0
- plumed/_lib/include/plumed/lepton/CustomFunction.h +143 -0
- plumed/_lib/include/plumed/lepton/Exception.h +93 -0
- plumed/_lib/include/plumed/lepton/ExpressionProgram.h +137 -0
- plumed/_lib/include/plumed/lepton/ExpressionTreeNode.h +145 -0
- plumed/_lib/include/plumed/lepton/Lepton.h +85 -0
- plumed/_lib/include/plumed/lepton/MSVC_erfc.h +123 -0
- plumed/_lib/include/plumed/lepton/Operation.h +1302 -0
- plumed/_lib/include/plumed/lepton/ParsedExpression.h +165 -0
- plumed/_lib/include/plumed/lepton/Parser.h +111 -0
- plumed/_lib/include/plumed/lepton/windowsIncludes.h +73 -0
- plumed/_lib/include/plumed/mapping/Path.h +44 -0
- plumed/_lib/include/plumed/mapping/PathProjectionCalculator.h +57 -0
- plumed/_lib/include/plumed/matrixtools/MatrixOperationBase.h +54 -0
- plumed/_lib/include/plumed/matrixtools/MatrixTimesMatrix.h +309 -0
- plumed/_lib/include/plumed/matrixtools/MatrixTimesVectorBase.h +365 -0
- plumed/_lib/include/plumed/matrixtools/OuterProduct.h +238 -0
- plumed/_lib/include/plumed/maze/Core.h +65 -0
- plumed/_lib/include/plumed/maze/Loss.h +86 -0
- plumed/_lib/include/plumed/maze/Member.h +66 -0
- plumed/_lib/include/plumed/maze/Memetic.h +799 -0
- plumed/_lib/include/plumed/maze/Optimizer.h +357 -0
- plumed/_lib/include/plumed/maze/Random_MT.h +156 -0
- plumed/_lib/include/plumed/maze/Tools.h +183 -0
- plumed/_lib/include/plumed/metatomic/vesin.h +188 -0
- plumed/_lib/include/plumed/molfile/Gromacs.h +2013 -0
- plumed/_lib/include/plumed/molfile/endianswap.h +217 -0
- plumed/_lib/include/plumed/molfile/fastio.h +683 -0
- plumed/_lib/include/plumed/molfile/largefiles.h +78 -0
- plumed/_lib/include/plumed/molfile/libmolfile_plugin.h +77 -0
- plumed/_lib/include/plumed/molfile/molfile_plugin.h +1034 -0
- plumed/_lib/include/plumed/molfile/periodic_table.h +248 -0
- plumed/_lib/include/plumed/molfile/readpdb.h +447 -0
- plumed/_lib/include/plumed/molfile/vmdplugin.h +236 -0
- plumed/_lib/include/plumed/multicolvar/MultiColvarShortcuts.h +45 -0
- plumed/_lib/include/plumed/opes/ExpansionCVs.h +79 -0
- plumed/_lib/include/plumed/sasa/Sasa.h +32 -0
- plumed/_lib/include/plumed/secondarystructure/SecondaryStructureBase.h +372 -0
- plumed/_lib/include/plumed/setup/ActionSetup.h +25 -0
- plumed/_lib/include/plumed/small_vector/small_vector.h +6114 -0
- plumed/_lib/include/plumed/symfunc/CoordinationNumbers.h +41 -0
- plumed/_lib/include/plumed/tools/Angle.h +52 -0
- plumed/_lib/include/plumed/tools/AtomDistribution.h +138 -0
- plumed/_lib/include/plumed/tools/AtomNumber.h +152 -0
- plumed/_lib/include/plumed/tools/BiasRepresentation.h +106 -0
- plumed/_lib/include/plumed/tools/BitmaskEnum.h +167 -0
- plumed/_lib/include/plumed/tools/Brent1DRootSearch.h +159 -0
- plumed/_lib/include/plumed/tools/CheckInRange.h +44 -0
- plumed/_lib/include/plumed/tools/Citations.h +74 -0
- plumed/_lib/include/plumed/tools/ColvarOutput.h +118 -0
- plumed/_lib/include/plumed/tools/Communicator.h +316 -0
- plumed/_lib/include/plumed/tools/ConjugateGradient.h +80 -0
- plumed/_lib/include/plumed/tools/DLLoader.h +79 -0
- plumed/_lib/include/plumed/tools/ERMSD.h +73 -0
- plumed/_lib/include/plumed/tools/Exception.h +406 -0
- plumed/_lib/include/plumed/tools/File.h +28 -0
- plumed/_lib/include/plumed/tools/FileBase.h +153 -0
- plumed/_lib/include/plumed/tools/FileTools.h +37 -0
- plumed/_lib/include/plumed/tools/ForwardDecl.h +54 -0
- plumed/_lib/include/plumed/tools/Grid.h +638 -0
- plumed/_lib/include/plumed/tools/HistogramBead.h +136 -0
- plumed/_lib/include/plumed/tools/IFile.h +117 -0
- plumed/_lib/include/plumed/tools/KernelFunctions.h +113 -0
- plumed/_lib/include/plumed/tools/Keywords.h +380 -0
- plumed/_lib/include/plumed/tools/LatticeReduction.h +66 -0
- plumed/_lib/include/plumed/tools/LeptonCall.h +64 -0
- plumed/_lib/include/plumed/tools/LinkCells.h +126 -0
- plumed/_lib/include/plumed/tools/Log.h +41 -0
- plumed/_lib/include/plumed/tools/LoopUnroller.h +163 -0
- plumed/_lib/include/plumed/tools/Matrix.h +721 -0
- plumed/_lib/include/plumed/tools/MatrixSquareBracketsAccess.h +138 -0
- plumed/_lib/include/plumed/tools/MergeVectorTools.h +153 -0
- plumed/_lib/include/plumed/tools/Minimise1DBrent.h +244 -0
- plumed/_lib/include/plumed/tools/MinimiseBase.h +120 -0
- plumed/_lib/include/plumed/tools/MolDataClass.h +51 -0
- plumed/_lib/include/plumed/tools/NeighborList.h +112 -0
- plumed/_lib/include/plumed/tools/OFile.h +286 -0
- plumed/_lib/include/plumed/tools/OpenACC.h +180 -0
- plumed/_lib/include/plumed/tools/OpenMP.h +75 -0
- plumed/_lib/include/plumed/tools/PDB.h +154 -0
- plumed/_lib/include/plumed/tools/Pbc.h +139 -0
- plumed/_lib/include/plumed/tools/PlumedHandle.h +105 -0
- plumed/_lib/include/plumed/tools/RMSD.h +493 -0
- plumed/_lib/include/plumed/tools/Random.h +80 -0
- plumed/_lib/include/plumed/tools/RootFindingBase.h +79 -0
- plumed/_lib/include/plumed/tools/Stopwatch.h +475 -0
- plumed/_lib/include/plumed/tools/Subprocess.h +142 -0
- plumed/_lib/include/plumed/tools/SwitchingFunction.h +208 -0
- plumed/_lib/include/plumed/tools/Tensor.h +724 -0
- plumed/_lib/include/plumed/tools/TokenizedLine.h +123 -0
- plumed/_lib/include/plumed/tools/Tools.h +638 -0
- plumed/_lib/include/plumed/tools/Torsion.h +55 -0
- plumed/_lib/include/plumed/tools/TrajectoryParser.h +118 -0
- plumed/_lib/include/plumed/tools/Tree.h +61 -0
- plumed/_lib/include/plumed/tools/TypesafePtr.h +463 -0
- plumed/_lib/include/plumed/tools/Units.h +167 -0
- plumed/_lib/include/plumed/tools/Vector.h +433 -0
- plumed/_lib/include/plumed/tools/View.h +296 -0
- plumed/_lib/include/plumed/tools/View2D.h +100 -0
- plumed/_lib/include/plumed/tools/h36.h +39 -0
- plumed/_lib/include/plumed/vatom/ActionWithVirtualAtom.h +32 -0
- plumed/_lib/include/plumed/ves/BasisFunctions.h +380 -0
- plumed/_lib/include/plumed/ves/CoeffsBase.h +310 -0
- plumed/_lib/include/plumed/ves/CoeffsMatrix.h +220 -0
- plumed/_lib/include/plumed/ves/CoeffsVector.h +251 -0
- plumed/_lib/include/plumed/ves/FermiSwitchingFunction.h +74 -0
- plumed/_lib/include/plumed/ves/GridIntegrationWeights.h +50 -0
- plumed/_lib/include/plumed/ves/GridLinearInterpolation.h +81 -0
- plumed/_lib/include/plumed/ves/GridProjWeights.h +61 -0
- plumed/_lib/include/plumed/ves/LinearBasisSetExpansion.h +303 -0
- plumed/_lib/include/plumed/ves/Optimizer.h +444 -0
- plumed/_lib/include/plumed/ves/TargetDistModifer.h +53 -0
- plumed/_lib/include/plumed/ves/TargetDistribution.h +266 -0
- plumed/_lib/include/plumed/ves/VesBias.h +545 -0
- plumed/_lib/include/plumed/ves/VesTools.h +142 -0
- plumed/_lib/include/plumed/ves/WaveletGrid.h +75 -0
- plumed/_lib/include/plumed/volumes/ActionVolume.h +268 -0
- plumed/_lib/include/plumed/volumes/VolumeShortcut.h +147 -0
- plumed/_lib/include/plumed/wrapper/Plumed.h +5025 -0
- plumed/_lib/include/plumed/xdrfile/xdrfile.h +663 -0
- plumed/_lib/include/plumed/xdrfile/xdrfile_trr.h +89 -0
- plumed/_lib/include/plumed/xdrfile/xdrfile_xtc.h +90 -0
- plumed/_lib/lib/PythonCVInterface.so +0 -0
- plumed/_lib/lib/libplumed.a +0 -0
- plumed/_lib/lib/libplumed.so +0 -0
- plumed/_lib/lib/libplumedKernel.so +0 -0
- plumed/_lib/lib/libplumedWrapper.a +0 -0
- plumed/_lib/lib/pkgconfig/plumed.pc +13 -0
- plumed/_lib/lib/pkgconfig/plumedInternals.pc +13 -0
- plumed/_lib/lib/pkgconfig/plumedWrapper.pc +13 -0
- plumed/_lib/lib/plumed/fortran/plumed.f90 +879 -0
- plumed/_lib/lib/plumed/fortran/plumed_f08.f90 +2625 -0
- plumed/_lib/lib/plumed/modulefile +69 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.config +43 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/CMakeLists.txt +543 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/CMakeLists.txt.preplumed +540 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.cpp +1628 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.cpp.preplumed +1590 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.h +103 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/expanded.h.preplumed +99 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/sim_util.cpp +2527 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdlib/sim_util.cpp.preplumed +2513 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp +208 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp.preplumed +175 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.h +408 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/legacymdrunoptions.h.preplumed +394 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/md.cpp +2348 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/md.cpp.preplumed +2091 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/minimize.cpp +3573 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/minimize.cpp.preplumed +3495 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.cpp +1506 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.cpp.preplumed +1402 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.h +114 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/replicaexchange.h.preplumed +106 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/rerun.cpp +997 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/rerun.cpp.preplumed +906 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/runner.cpp +2780 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/mdrun/runner.cpp.preplumed +2738 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp +224 -0
- plumed/_lib/lib/plumed/patches/gromacs-2022.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp.preplumed +222 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.config +43 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/CMakeLists.txt +549 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/CMakeLists.txt.preplumed +546 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.cpp +1632 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.cpp.preplumed +1594 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.h +104 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/expanded.h.preplumed +100 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/sim_util.cpp +2624 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdlib/sim_util.cpp.preplumed +2610 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp +208 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.cpp.preplumed +175 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.h +409 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/legacymdrunoptions.h.preplumed +395 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/md.cpp +2419 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/md.cpp.preplumed +2164 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/minimize.cpp +3546 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/minimize.cpp.preplumed +3468 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.cpp +1513 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.cpp.preplumed +1409 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.h +114 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/replicaexchange.h.preplumed +106 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/rerun.cpp +991 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/rerun.cpp.preplumed +900 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/runner.cpp +2895 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/mdrun/runner.cpp.preplumed +2849 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp +224 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp.preplumed +222 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/decidegpuusage.cpp +886 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/decidegpuusage.cpp.preplumed +880 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h +347 -0
- plumed/_lib/lib/plumed/patches/gromacs-2023.5.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h.preplumed +345 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.config +43 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/CMakeLists.txt +575 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/CMakeLists.txt.preplumed +572 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.cpp +1632 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.cpp.preplumed +1594 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.h +104 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/expanded.h.preplumed +100 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/sim_util.cpp +2564 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdlib/sim_util.cpp.preplumed +2550 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.cpp +208 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.cpp.preplumed +175 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.h +410 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/legacymdrunoptions.h.preplumed +396 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/md.cpp +2435 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/md.cpp.preplumed +2187 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/minimize.cpp +3592 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/minimize.cpp.preplumed +3514 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.cpp +1513 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.cpp.preplumed +1409 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.h +114 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/replicaexchange.h.preplumed +106 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/rerun.cpp +958 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/rerun.cpp.preplumed +929 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/runner.cpp +2987 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/mdrun/runner.cpp.preplumed +2941 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp +224 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/modularsimulator/expandedensembleelement.cpp.preplumed +222 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/decidegpuusage.cpp +904 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/decidegpuusage.cpp.preplumed +898 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h +353 -0
- plumed/_lib/lib/plumed/patches/gromacs-2024.3.diff/src/gromacs/taskassignment/include/gromacs/taskassignment/decidegpuusage.h.preplumed +351 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.config +39 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/cmake/gmxManagePlumed.cmake +82 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/cmake/gmxManagePlumed.cmake.preplumed +82 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedMDModule.cpp +162 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedMDModule.cpp.preplumed +154 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.cpp +107 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.cpp.preplumed +99 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.h +120 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedOptions.h.preplumed +111 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.cpp +215 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.cpp.preplumed +197 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.h +87 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/applied_forces/plumed/plumedforceprovider.h.preplumed +86 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrun/runner.cpp +2971 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrun/runner.cpp.preplumed +2970 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrunutility/mdmodulesnotifiers.h +430 -0
- plumed/_lib/lib/plumed/patches/gromacs-2025.0.diff/src/gromacs/mdrunutility/mdmodulesnotifiers.h.preplumed +429 -0
- plumed/_lib/lib/plumed/patches/namd-2.12.config +30 -0
- plumed/_lib/lib/plumed/patches/namd-2.12.diff +267 -0
- plumed/_lib/lib/plumed/patches/namd-2.13.config +30 -0
- plumed/_lib/lib/plumed/patches/namd-2.13.diff +267 -0
- plumed/_lib/lib/plumed/patches/namd-2.14.config +30 -0
- plumed/_lib/lib/plumed/patches/namd-2.14.diff +268 -0
- plumed/_lib/lib/plumed/patches/patch.sh +500 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.config +25 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/forces.f90 +368 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/forces.f90.preplumed +366 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_forces.f90 +71 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_forces.f90.preplumed +24 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_initialization.f90 +62 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/pwscf.f90 +189 -0
- plumed/_lib/lib/plumed/patches/qespresso-5.0.2.diff/PW/src/pwscf.f90.preplumed +185 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.config +26 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/forces.f90 +422 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/forces.f90.preplumed +420 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_ext_forces.f90 +70 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_ext_forces.f90.preplumed +23 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_initialization.f90 +62 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/run_pwscf.f90 +233 -0
- plumed/_lib/lib/plumed/patches/qespresso-6.2.diff/PW/src/run_pwscf.f90.preplumed +230 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.config +28 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/Modules/Makefile +175 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/Modules/Makefile.preplumed +171 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/forces.f90 +486 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/forces.f90.preplumed +484 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_ext_forces.f90 +74 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_ext_forces.f90.preplumed +23 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_initialization.f90 +64 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/run_pwscf.f90 +532 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.0.diff/PW/src/run_pwscf.f90.preplumed +518 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.config +28 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/Modules/Makefile +249 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/Modules/Makefile.preplumed +244 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/forces.f90 +532 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/forces.f90.preplumed +535 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_ext_forces.f90 +74 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_ext_forces.f90.preplumed +23 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_initialization.f90 +64 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/plugin_initialization.f90.preplumed +21 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/run_pwscf.f90 +569 -0
- plumed/_lib/lib/plumed/patches/qespresso-7.2.diff/PW/src/run_pwscf.f90.preplumed +560 -0
- plumed/_lib/lib/plumed/plumed-config +9 -0
- plumed/_lib/lib/plumed/plumed-mklib +9 -0
- plumed/_lib/lib/plumed/plumed-newcv +9 -0
- plumed/_lib/lib/plumed/plumed-partial_tempering +9 -0
- plumed/_lib/lib/plumed/plumed-patch +9 -0
- plumed/_lib/lib/plumed/plumed-runtime +0 -0
- plumed/_lib/lib/plumed/plumed-selector +9 -0
- plumed/_lib/lib/plumed/plumed-vim2html +9 -0
- plumed/_lib/lib/plumed/scripts/config.sh +126 -0
- plumed/_lib/lib/plumed/scripts/mklib.sh +175 -0
- plumed/_lib/lib/plumed/scripts/newcv.sh +26 -0
- plumed/_lib/lib/plumed/scripts/partial_tempering.sh +319 -0
- plumed/_lib/lib/plumed/scripts/patch.sh +4 -0
- plumed/_lib/lib/plumed/scripts/selector.sh +234 -0
- plumed/_lib/lib/plumed/scripts/vim2html.sh +190 -0
- plumed/_lib/lib/plumed/src/colvar/Template.cpp +116 -0
- plumed/_lib/lib/plumed/src/config/compile_options.sh +3 -0
- plumed/_lib/lib/plumed/src/config/config.txt +179 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake +8 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake.runtime +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake.shared +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.cmake.static +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc +8 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc.runtime +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc.shared +5 -0
- plumed/_lib/lib/plumed/src/lib/Plumed.inc.static +5 -0
- plumed/_lib/lib/plumed/vim/scripts.vim +6 -0
- plumed/_plumed_core.cpython-311-aarch64-linux-gnu.so +0 -0
- plumed/_plumed_core.cpython-312-aarch64-linux-gnu.so +0 -0
- plumed/_plumed_core.cpython-313-aarch64-linux-gnu.so +0 -0
- plumed/_plumed_core.cpython-314-aarch64-linux-gnu.so +0 -0
- plumed/_plumed_core.cpython-314t-aarch64-linux-gnu.so +0 -0
- plumedCommunications.cpython-311-aarch64-linux-gnu.so +0 -0
- plumedCommunications.cpython-312-aarch64-linux-gnu.so +0 -0
- plumedCommunications.cpython-313-aarch64-linux-gnu.so +0 -0
- plumedCommunications.cpython-314-aarch64-linux-gnu.so +0 -0
- plumedCommunications.cpython-314t-aarch64-linux-gnu.so +0 -0
- plumedCommunications.pyi +431 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
2
|
+
Copyright (c) 2015-2023 The plumed team
|
|
3
|
+
(see the PEOPLE file at the root of the distribution for a list of names)
|
|
4
|
+
|
|
5
|
+
See http://www.plumed.org for more information.
|
|
6
|
+
|
|
7
|
+
This file is part of plumed, version 2.
|
|
8
|
+
|
|
9
|
+
plumed is free software: you can redistribute it and/or modify
|
|
10
|
+
it under the terms of the GNU Lesser General Public License as published by
|
|
11
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
12
|
+
(at your option) any later version.
|
|
13
|
+
|
|
14
|
+
plumed is distributed in the hope that it will be useful,
|
|
15
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17
|
+
GNU Lesser General Public License for more details.
|
|
18
|
+
|
|
19
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
20
|
+
along with plumed. If not, see <http://www.gnu.org/licenses/>.
|
|
21
|
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
|
|
22
|
+
#ifndef __PLUMED_adjmat_ContactMatrix_h
|
|
23
|
+
#define __PLUMED_adjmat_ContactMatrix_h
|
|
24
|
+
|
|
25
|
+
#ifdef __PLUMED_HAS_OPENACC
|
|
26
|
+
#define __PLUMED_USE_OPENACC 1
|
|
27
|
+
#endif //__PLUMED_HAS_OPENACC
|
|
28
|
+
|
|
29
|
+
#include "AdjacencyMatrixBase.h"
|
|
30
|
+
#include "../tools/SwitchingFunction.h"
|
|
31
|
+
namespace PLMD {
|
|
32
|
+
namespace adjmat {
|
|
33
|
+
|
|
34
|
+
struct ContactMatrix {
|
|
35
|
+
#ifdef __PLUMED_USE_OPENACC
|
|
36
|
+
SwitchingFunctionAccelerable switchingFunction;
|
|
37
|
+
#else
|
|
38
|
+
SwitchingFunction switchingFunction;
|
|
39
|
+
#endif
|
|
40
|
+
static void registerKeywords( Keywords& keys );
|
|
41
|
+
void parseInput( AdjacencyMatrixBase<ContactMatrix>* action );
|
|
42
|
+
static void calculateWeight( const ContactMatrix& data,
|
|
43
|
+
const AdjacencyMatrixInput& input,
|
|
44
|
+
MatrixOutput output );
|
|
45
|
+
#ifdef __PLUMED_USE_OPENACC
|
|
46
|
+
void toACCDevice() const {
|
|
47
|
+
#pragma acc enter data copyin(this[0:1])
|
|
48
|
+
switchingFunction.toACCDevice();
|
|
49
|
+
}
|
|
50
|
+
void removeFromACCDevice() const {
|
|
51
|
+
switchingFunction.removeFromACCDevice();
|
|
52
|
+
#pragma acc exit data delete(this[0:1])
|
|
53
|
+
}
|
|
54
|
+
#endif //__PLUMED_USE_OPENACC
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
#endif
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
2
|
+
Copyright (c) 2008-2017, Petr Kobalicek
|
|
3
|
+
|
|
4
|
+
This software is provided 'as-is', without any express or implied
|
|
5
|
+
warranty. In no event will the authors be held liable for any damages
|
|
6
|
+
arising from the use of this software.
|
|
7
|
+
|
|
8
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
9
|
+
including commercial applications, and to alter it and redistribute it
|
|
10
|
+
freely, subject to the following restrictions:
|
|
11
|
+
|
|
12
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
13
|
+
claim that you wrote the original software. If you use this software
|
|
14
|
+
in a product, an acknowledgment in the product documentation would be
|
|
15
|
+
appreciated but is not required.
|
|
16
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
17
|
+
misrepresented as being the original software.
|
|
18
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
19
|
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
|
|
20
|
+
#ifndef __PLUMED_asmjit_arch_h
|
|
21
|
+
#define __PLUMED_asmjit_arch_h
|
|
22
|
+
#ifdef __PLUMED_HAS_ASMJIT
|
|
23
|
+
#pragma GCC diagnostic push
|
|
24
|
+
#pragma GCC diagnostic ignored "-Wpedantic"
|
|
25
|
+
// [AsmJit]
|
|
26
|
+
// Complete x86/x64 JIT and Remote Assembler for C++.
|
|
27
|
+
//
|
|
28
|
+
// [License]
|
|
29
|
+
// Zlib - See LICENSE.md file in the package.
|
|
30
|
+
|
|
31
|
+
// [Guard]
|
|
32
|
+
#ifndef _ASMJIT_BASE_ARCH_H
|
|
33
|
+
#define _ASMJIT_BASE_ARCH_H
|
|
34
|
+
|
|
35
|
+
// [Dependencies]
|
|
36
|
+
#include "./globals.h"
|
|
37
|
+
#include "./operand.h"
|
|
38
|
+
|
|
39
|
+
// [Api-Begin]
|
|
40
|
+
#include "./asmjit_apibegin.h"
|
|
41
|
+
|
|
42
|
+
namespace PLMD {
|
|
43
|
+
namespace asmjit {
|
|
44
|
+
|
|
45
|
+
//! \addtogroup asmjit_base
|
|
46
|
+
//! \{
|
|
47
|
+
|
|
48
|
+
// ============================================================================
|
|
49
|
+
// [asmjit::ArchInfo]
|
|
50
|
+
// ============================================================================
|
|
51
|
+
|
|
52
|
+
class ArchInfo {
|
|
53
|
+
public:
|
|
54
|
+
//! Architecture type.
|
|
55
|
+
ASMJIT_ENUM(Type) {
|
|
56
|
+
kTypeNone = 0, //!< No/Unknown architecture.
|
|
57
|
+
|
|
58
|
+
// X86 architectures.
|
|
59
|
+
kTypeX86 = 1, //!< X86 architecture (32-bit).
|
|
60
|
+
kTypeX64 = 2, //!< X64 architecture (64-bit) (AMD64).
|
|
61
|
+
kTypeX32 = 3, //!< X32 architecture (DEAD-END).
|
|
62
|
+
|
|
63
|
+
// ARM architectures.
|
|
64
|
+
kTypeA32 = 4, //!< ARM 32-bit architecture (AArch32/ARM/THUMB).
|
|
65
|
+
kTypeA64 = 5, //!< ARM 64-bit architecture (AArch64).
|
|
66
|
+
|
|
67
|
+
//! Architecture detected at compile-time (architecture of the host).
|
|
68
|
+
kTypeHost = ASMJIT_ARCH_X86 ? kTypeX86 :
|
|
69
|
+
ASMJIT_ARCH_X64 ? kTypeX64 :
|
|
70
|
+
ASMJIT_ARCH_ARM32 ? kTypeA32 :
|
|
71
|
+
ASMJIT_ARCH_ARM64 ? kTypeA64 : kTypeNone
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
//! Architecture sub-type or execution mode.
|
|
75
|
+
ASMJIT_ENUM(SubType) {
|
|
76
|
+
kSubTypeNone = 0, //!< Default mode (or no specific mode).
|
|
77
|
+
|
|
78
|
+
// X86 sub-types.
|
|
79
|
+
kSubTypeX86_AVX = 1, //!< Code generation uses AVX by default (VEC instructions).
|
|
80
|
+
kSubTypeX86_AVX2 = 2, //!< Code generation uses AVX2 by default (VEC instructions).
|
|
81
|
+
kSubTypeX86_AVX512 = 3, //!< Code generation uses AVX-512F by default (+32 vector regs).
|
|
82
|
+
kSubTypeX86_AVX512VL = 4, //!< Code generation uses AVX-512F-VL by default (+VL extensions).
|
|
83
|
+
|
|
84
|
+
// ARM sub-types.
|
|
85
|
+
kSubTypeA32_Thumb = 8, //!< THUMB|THUMB2 sub-type (only ARM in 32-bit mode).
|
|
86
|
+
|
|
87
|
+
#if (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64) && defined(__AVX512VL__)
|
|
88
|
+
kSubTypeHost = kSubTypeX86_AVX512VL
|
|
89
|
+
#elif (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64) && defined(__AVX512F__)
|
|
90
|
+
kSubTypeHost = kSubTypeX86_AVX512
|
|
91
|
+
#elif (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64) && defined(__AVX2__)
|
|
92
|
+
kSubTypeHost = kSubTypeX86_AVX2
|
|
93
|
+
#elif (ASMJIT_ARCH_X86 || ASMJIT_ARCH_X64) && defined(__AVX__)
|
|
94
|
+
kSubTypeHost = kSubTypeX86_AVX
|
|
95
|
+
#elif (ASMJIT_ARCH_ARM32) && (defined(_M_ARMT) || defined(__thumb__) || defined(__thumb2__))
|
|
96
|
+
kSubTypeHost = kSubTypeA32_Thumb
|
|
97
|
+
#else
|
|
98
|
+
kSubTypeHost = 0
|
|
99
|
+
#endif
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// --------------------------------------------------------------------------
|
|
103
|
+
// [Utilities]
|
|
104
|
+
// --------------------------------------------------------------------------
|
|
105
|
+
|
|
106
|
+
static ASMJIT_INLINE bool isX86Family(uint32_t archType) noexcept { return archType >= kTypeX86 && archType <= kTypeX32; }
|
|
107
|
+
static ASMJIT_INLINE bool isArmFamily(uint32_t archType) noexcept { return archType >= kTypeA32 && archType <= kTypeA64; }
|
|
108
|
+
|
|
109
|
+
// --------------------------------------------------------------------------
|
|
110
|
+
// [Construction / Destruction]
|
|
111
|
+
// --------------------------------------------------------------------------
|
|
112
|
+
|
|
113
|
+
ASMJIT_INLINE ArchInfo() noexcept : _signature(0) {}
|
|
114
|
+
ASMJIT_INLINE ArchInfo(const ArchInfo& other) noexcept = default;
|
|
115
|
+
explicit ASMJIT_INLINE ArchInfo(uint32_t type, uint32_t subType = kSubTypeNone) noexcept { init(type, subType); }
|
|
116
|
+
|
|
117
|
+
ASMJIT_INLINE static ArchInfo host() noexcept { return ArchInfo(kTypeHost, kSubTypeHost); }
|
|
118
|
+
|
|
119
|
+
// --------------------------------------------------------------------------
|
|
120
|
+
// [Init / Reset]
|
|
121
|
+
// --------------------------------------------------------------------------
|
|
122
|
+
|
|
123
|
+
ASMJIT_INLINE bool isInitialized() const noexcept { return _type != kTypeNone; }
|
|
124
|
+
|
|
125
|
+
ASMJIT_API void init(uint32_t type, uint32_t subType = kSubTypeNone) noexcept;
|
|
126
|
+
ASMJIT_INLINE void reset() noexcept { _signature = 0; }
|
|
127
|
+
|
|
128
|
+
// --------------------------------------------------------------------------
|
|
129
|
+
// [Accessors]
|
|
130
|
+
// --------------------------------------------------------------------------
|
|
131
|
+
|
|
132
|
+
//! Get if the architecture is 32-bit.
|
|
133
|
+
ASMJIT_INLINE bool is32Bit() const noexcept { return _gpSize == 4; }
|
|
134
|
+
//! Get if the architecture is 64-bit.
|
|
135
|
+
ASMJIT_INLINE bool is64Bit() const noexcept { return _gpSize == 8; }
|
|
136
|
+
|
|
137
|
+
//! Get architecture type, see \ref Type.
|
|
138
|
+
ASMJIT_INLINE uint32_t getType() const noexcept { return _type; }
|
|
139
|
+
|
|
140
|
+
//! Get architecture sub-type, see \ref SubType.
|
|
141
|
+
//!
|
|
142
|
+
//! X86 & X64
|
|
143
|
+
//! ---------
|
|
144
|
+
//!
|
|
145
|
+
//! Architecture subtype describe the highest instruction-set level that can
|
|
146
|
+
//! be used.
|
|
147
|
+
//!
|
|
148
|
+
//! ARM32
|
|
149
|
+
//! -----
|
|
150
|
+
//!
|
|
151
|
+
//! Architecture mode means the instruction encoding to be used when generating
|
|
152
|
+
//! machine code, thus mode can be used to force generation of THUMB and THUMB2
|
|
153
|
+
//! encoding or regular ARM encoding.
|
|
154
|
+
//!
|
|
155
|
+
//! ARM64
|
|
156
|
+
//! -----
|
|
157
|
+
//!
|
|
158
|
+
//! No meaning yet.
|
|
159
|
+
ASMJIT_INLINE uint32_t getSubType() const noexcept { return _subType; }
|
|
160
|
+
|
|
161
|
+
//! Get if the architecture is X86, X64, or X32.
|
|
162
|
+
ASMJIT_INLINE bool isX86Family() const noexcept { return isX86Family(_type); }
|
|
163
|
+
//! Get if the architecture is ARM32 or ARM64.
|
|
164
|
+
ASMJIT_INLINE bool isArmFamily() const noexcept { return isArmFamily(_type); }
|
|
165
|
+
|
|
166
|
+
//! Get a size of a general-purpose register.
|
|
167
|
+
ASMJIT_INLINE uint32_t getGpSize() const noexcept { return _gpSize; }
|
|
168
|
+
//! Get number of general-purpose registers.
|
|
169
|
+
ASMJIT_INLINE uint32_t getGpCount() const noexcept { return _gpCount; }
|
|
170
|
+
|
|
171
|
+
// --------------------------------------------------------------------------
|
|
172
|
+
// [Operator Overload]
|
|
173
|
+
// --------------------------------------------------------------------------
|
|
174
|
+
|
|
175
|
+
ASMJIT_INLINE ArchInfo& operator=(const ArchInfo& other) noexcept = default;
|
|
176
|
+
ASMJIT_INLINE bool operator==(const ArchInfo& other) const noexcept { return _signature == other._signature; }
|
|
177
|
+
ASMJIT_INLINE bool operator!=(const ArchInfo& other) const noexcept { return _signature != other._signature; }
|
|
178
|
+
|
|
179
|
+
// --------------------------------------------------------------------------
|
|
180
|
+
// [Members]
|
|
181
|
+
// --------------------------------------------------------------------------
|
|
182
|
+
|
|
183
|
+
union {
|
|
184
|
+
struct {
|
|
185
|
+
uint8_t _type; //!< Architecture type.
|
|
186
|
+
uint8_t _subType; //!< Architecture sub-type.
|
|
187
|
+
uint8_t _gpSize; //!< Default size of a general purpose register.
|
|
188
|
+
uint8_t _gpCount; //!< Count of all general purpose registers.
|
|
189
|
+
};
|
|
190
|
+
uint32_t _signature; //!< Architecture signature (32-bit int).
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// ============================================================================
|
|
195
|
+
// [asmjit::ArchRegs]
|
|
196
|
+
// ============================================================================
|
|
197
|
+
|
|
198
|
+
//! Information about all architecture registers.
|
|
199
|
+
struct ArchRegs {
|
|
200
|
+
//! Register information and signatures indexed by \ref Reg::Type.
|
|
201
|
+
RegInfo regInfo[Reg::kRegMax + 1];
|
|
202
|
+
//! Count (maximum) of registers per \ref Reg::Type.
|
|
203
|
+
uint8_t regCount[Reg::kRegMax + 1];
|
|
204
|
+
//! Converts RegType to TypeId, see \ref TypeId::Id.
|
|
205
|
+
uint8_t regTypeToTypeId[Reg::kRegMax + 1];
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
// ============================================================================
|
|
209
|
+
// [asmjit::ArchUtils]
|
|
210
|
+
// ============================================================================
|
|
211
|
+
|
|
212
|
+
struct ArchUtils {
|
|
213
|
+
ASMJIT_API static Error typeIdToRegInfo(uint32_t archType, uint32_t& typeIdInOut, RegInfo& regInfo) noexcept;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
//! \}
|
|
217
|
+
|
|
218
|
+
} // asmjit namespace
|
|
219
|
+
} // namespace PLMD
|
|
220
|
+
|
|
221
|
+
// [Api-End]
|
|
222
|
+
#include "./asmjit_apiend.h"
|
|
223
|
+
|
|
224
|
+
// [Guard]
|
|
225
|
+
#endif // _ASMJIT_BASE_ARCH_H
|
|
226
|
+
#pragma GCC diagnostic pop
|
|
227
|
+
#endif // __PLUMED_HAS_ASMJIT
|
|
228
|
+
#endif
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
2
|
+
Copyright (c) 2008-2017, Petr Kobalicek
|
|
3
|
+
|
|
4
|
+
This software is provided 'as-is', without any express or implied
|
|
5
|
+
warranty. In no event will the authors be held liable for any damages
|
|
6
|
+
arising from the use of this software.
|
|
7
|
+
|
|
8
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
9
|
+
including commercial applications, and to alter it and redistribute it
|
|
10
|
+
freely, subject to the following restrictions:
|
|
11
|
+
|
|
12
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
13
|
+
claim that you wrote the original software. If you use this software
|
|
14
|
+
in a product, an acknowledgment in the product documentation would be
|
|
15
|
+
appreciated but is not required.
|
|
16
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
17
|
+
misrepresented as being the original software.
|
|
18
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
19
|
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
|
|
20
|
+
#ifndef __PLUMED_asmjit_arm_h
|
|
21
|
+
#define __PLUMED_asmjit_arm_h
|
|
22
|
+
// [AsmJit]
|
|
23
|
+
// Complete x86/x64 JIT and Remote Assembler for C++.
|
|
24
|
+
//
|
|
25
|
+
// [License]
|
|
26
|
+
// Zlib - See LICENSE.md file in the package.
|
|
27
|
+
|
|
28
|
+
// [Guard]
|
|
29
|
+
#ifndef _ASMJIT_ARM_H
|
|
30
|
+
#define _ASMJIT_ARM_H
|
|
31
|
+
|
|
32
|
+
// [Dependencies]
|
|
33
|
+
#include "./base.h"
|
|
34
|
+
|
|
35
|
+
#include "./arm/armassembler.h"
|
|
36
|
+
#include "./arm/armbuilder.h"
|
|
37
|
+
#include "./arm/armcompiler.h"
|
|
38
|
+
#include "./arm/arminst.h"
|
|
39
|
+
#include "./arm/armoperand.h"
|
|
40
|
+
|
|
41
|
+
// [Guard]
|
|
42
|
+
#endif // _ASMJIT_ARM_H
|
|
43
|
+
#endif
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
2
|
+
Copyright (c) 2008-2017, Petr Kobalicek
|
|
3
|
+
|
|
4
|
+
This software is provided 'as-is', without any express or implied
|
|
5
|
+
warranty. In no event will the authors be held liable for any damages
|
|
6
|
+
arising from the use of this software.
|
|
7
|
+
|
|
8
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
9
|
+
including commercial applications, and to alter it and redistribute it
|
|
10
|
+
freely, subject to the following restrictions:
|
|
11
|
+
|
|
12
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
13
|
+
claim that you wrote the original software. If you use this software
|
|
14
|
+
in a product, an acknowledgment in the product documentation would be
|
|
15
|
+
appreciated but is not required.
|
|
16
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
17
|
+
misrepresented as being the original software.
|
|
18
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
19
|
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
|
|
20
|
+
#ifndef __PLUMED_asmjit_asmjit_h
|
|
21
|
+
#define __PLUMED_asmjit_asmjit_h
|
|
22
|
+
// [AsmJit]
|
|
23
|
+
// Complete x86/x64 JIT and Remote Assembler for C++.
|
|
24
|
+
//
|
|
25
|
+
// [License]
|
|
26
|
+
// Zlib - See LICENSE.md file in the package.
|
|
27
|
+
|
|
28
|
+
// [Guard]
|
|
29
|
+
#ifndef _ASMJIT_ASMJIT_H
|
|
30
|
+
#define _ASMJIT_ASMJIT_H
|
|
31
|
+
|
|
32
|
+
// ============================================================================
|
|
33
|
+
// [asmjit_mainpage]
|
|
34
|
+
// ============================================================================
|
|
35
|
+
|
|
36
|
+
//! \mainpage
|
|
37
|
+
//!
|
|
38
|
+
//! AsmJit - Complete x86/x64 JIT and Remote Assembler for C++.
|
|
39
|
+
//!
|
|
40
|
+
//! Introduction provided by the project page at https://github.com/asmjit/asmjit.
|
|
41
|
+
|
|
42
|
+
//! \defgroup asmjit_base AsmJit Base API (architecture independent)
|
|
43
|
+
//!
|
|
44
|
+
//! \brief Backend Neutral API.
|
|
45
|
+
|
|
46
|
+
//! \defgroup asmjit_x86 AsmJit X86/X64 API
|
|
47
|
+
//!
|
|
48
|
+
//! \brief X86/X64 Backend API.
|
|
49
|
+
|
|
50
|
+
//! \defgroup asmjit_arm AsmJit ARM32/ARM64 API
|
|
51
|
+
//!
|
|
52
|
+
//! \brief ARM32/ARM64 Backend API.
|
|
53
|
+
|
|
54
|
+
// [Dependencies]
|
|
55
|
+
#include "./base.h"
|
|
56
|
+
|
|
57
|
+
// [X86/X64]
|
|
58
|
+
#if defined(ASMJIT_BUILD_X86)
|
|
59
|
+
#include "./x86.h"
|
|
60
|
+
#endif // ASMJIT_BUILD_X86
|
|
61
|
+
|
|
62
|
+
// [ARM32/ARM64]
|
|
63
|
+
#if defined(ASMJIT_BUILD_ARM)
|
|
64
|
+
#include "./arm.h"
|
|
65
|
+
#endif // ASMJIT_BUILD_ARM
|
|
66
|
+
|
|
67
|
+
// [Guard]
|
|
68
|
+
#endif // _ASMJIT_ASMJIT_H
|
|
69
|
+
#endif
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
2
|
+
Copyright (c) 2008-2017, Petr Kobalicek
|
|
3
|
+
|
|
4
|
+
This software is provided 'as-is', without any express or implied
|
|
5
|
+
warranty. In no event will the authors be held liable for any damages
|
|
6
|
+
arising from the use of this software.
|
|
7
|
+
|
|
8
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
9
|
+
including commercial applications, and to alter it and redistribute it
|
|
10
|
+
freely, subject to the following restrictions:
|
|
11
|
+
|
|
12
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
13
|
+
claim that you wrote the original software. If you use this software
|
|
14
|
+
in a product, an acknowledgment in the product documentation would be
|
|
15
|
+
appreciated but is not required.
|
|
16
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
17
|
+
misrepresented as being the original software.
|
|
18
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
19
|
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
|
|
20
|
+
// [AsmJit]
|
|
21
|
+
// Complete x86/x64 JIT and Remote Assembler for C++.
|
|
22
|
+
//
|
|
23
|
+
// [License]
|
|
24
|
+
// Zlib - See LICENSE.md file in the package.
|
|
25
|
+
|
|
26
|
+
// [Dependencies]
|
|
27
|
+
#if !defined(_ASMJIT_BUILD_H)
|
|
28
|
+
# include "./build.h"
|
|
29
|
+
#endif // !_ASMJIT_BUILD_H
|
|
30
|
+
|
|
31
|
+
// [Guard]
|
|
32
|
+
#if !defined(ASMJIT_API_SCOPE)
|
|
33
|
+
# define ASMJIT_API_SCOPE
|
|
34
|
+
#else
|
|
35
|
+
# error "[asmjit] api-scope is already active, previous scope not closed by asmjit_apiend.h?"
|
|
36
|
+
#endif // ASMJIT_API_SCOPE
|
|
37
|
+
|
|
38
|
+
// ============================================================================
|
|
39
|
+
// [C++ Support]
|
|
40
|
+
// ============================================================================
|
|
41
|
+
|
|
42
|
+
// [NoExcept]
|
|
43
|
+
#if !ASMJIT_CC_HAS_NOEXCEPT && !defined(noexcept)
|
|
44
|
+
# define noexcept ASMJIT_NOEXCEPT
|
|
45
|
+
# define ASMJIT_UNDEF_NOEXCEPT
|
|
46
|
+
#endif // !ASMJIT_CC_HAS_NOEXCEPT && !noexcept
|
|
47
|
+
|
|
48
|
+
// [NullPtr]
|
|
49
|
+
#if !ASMJIT_CC_HAS_NULLPTR && !defined(nullptr)
|
|
50
|
+
# define nullptr NULL
|
|
51
|
+
# define ASMJIT_UNDEF_NULLPTR
|
|
52
|
+
#endif // !ASMJIT_CC_HAS_NULLPTR && !nullptr
|
|
53
|
+
|
|
54
|
+
// [Override]
|
|
55
|
+
#if !ASMJIT_CC_HAS_OVERRIDE && !defined(override)
|
|
56
|
+
# define override
|
|
57
|
+
# define ASMJIT_UNDEF_OVERRIDE
|
|
58
|
+
#endif // !ASMJIT_CC_HAS_OVERRIDE && !override
|
|
59
|
+
|
|
60
|
+
// ============================================================================
|
|
61
|
+
// [Compiler Support]
|
|
62
|
+
// ============================================================================
|
|
63
|
+
|
|
64
|
+
// [Clang]
|
|
65
|
+
#if ASMJIT_CC_CLANG
|
|
66
|
+
# pragma clang diagnostic push
|
|
67
|
+
# pragma clang diagnostic ignored "-Wc++11-extensions"
|
|
68
|
+
# pragma clang diagnostic ignored "-Wconstant-logical-operand"
|
|
69
|
+
# pragma clang diagnostic ignored "-Wunnamed-type-template-args"
|
|
70
|
+
#endif // ASMJIT_CC_CLANG
|
|
71
|
+
|
|
72
|
+
// [GCC]
|
|
73
|
+
#if ASMJIT_CC_GCC
|
|
74
|
+
# pragma GCC diagnostic push
|
|
75
|
+
# if ASMJIT_CC_GCC_GE(7, 0, 0)
|
|
76
|
+
# pragma GCC diagnostic ignored "-Wbool-operation"
|
|
77
|
+
# endif
|
|
78
|
+
# if ASMJIT_CC_GCC_GE(8, 0, 0)
|
|
79
|
+
# pragma GCC diagnostic ignored "-Wclass-memaccess"
|
|
80
|
+
# endif
|
|
81
|
+
#endif // ASMJIT_CC_GCC
|
|
82
|
+
|
|
83
|
+
// [MSC]
|
|
84
|
+
#if ASMJIT_CC_MSC
|
|
85
|
+
# pragma warning(push)
|
|
86
|
+
# pragma warning(disable: 4127) // conditional expression is constant
|
|
87
|
+
# pragma warning(disable: 4201) // nameless struct/union
|
|
88
|
+
# pragma warning(disable: 4244) // '+=' : conversion from 'int' to 'x', possible loss of data
|
|
89
|
+
# pragma warning(disable: 4251) // struct needs to have dll-interface to be used by clients of struct ...
|
|
90
|
+
# pragma warning(disable: 4275) // non dll-interface struct ... used as base for dll-interface struct
|
|
91
|
+
# pragma warning(disable: 4355) // this used in base member initializer list
|
|
92
|
+
# pragma warning(disable: 4480) // specifying underlying type for enum
|
|
93
|
+
# pragma warning(disable: 4800) // forcing value to bool 'true' or 'false'
|
|
94
|
+
# pragma warning(disable: 4838) // comversion from 'int' to ...
|
|
95
|
+
# if _MSC_VER < 1900
|
|
96
|
+
# if !defined(vsnprintf)
|
|
97
|
+
# define ASMJIT_UNDEF_VSNPRINTF
|
|
98
|
+
# define vsnprintf _vsnprintf
|
|
99
|
+
# endif // !vsnprintf
|
|
100
|
+
# if !defined(snprintf)
|
|
101
|
+
# define ASMJIT_UNDEF_SNPRINTF
|
|
102
|
+
# define snprintf _snprintf
|
|
103
|
+
# endif // !snprintf
|
|
104
|
+
# endif
|
|
105
|
+
#endif // ASMJIT_CC_MSC
|
|
106
|
+
|
|
107
|
+
// ============================================================================
|
|
108
|
+
// [Custom Macros]
|
|
109
|
+
// ============================================================================
|
|
110
|
+
|
|
111
|
+
// [ASMJIT_NON...]
|
|
112
|
+
#if ASMJIT_CC_HAS_DELETE_FUNCTION
|
|
113
|
+
#define ASMJIT_NONCONSTRUCTIBLE(...) \
|
|
114
|
+
private: \
|
|
115
|
+
__VA_ARGS__() = delete; \
|
|
116
|
+
__VA_ARGS__(const __VA_ARGS__& other) = delete; \
|
|
117
|
+
__VA_ARGS__& operator=(const __VA_ARGS__& other) = delete; \
|
|
118
|
+
public:
|
|
119
|
+
#define ASMJIT_NONCOPYABLE(...) \
|
|
120
|
+
private: \
|
|
121
|
+
__VA_ARGS__(const __VA_ARGS__& other) = delete; \
|
|
122
|
+
__VA_ARGS__& operator=(const __VA_ARGS__& other) = delete; \
|
|
123
|
+
public:
|
|
124
|
+
#else
|
|
125
|
+
#define ASMJIT_NONCONSTRUCTIBLE(...) \
|
|
126
|
+
private: \
|
|
127
|
+
inline __VA_ARGS__(); \
|
|
128
|
+
inline __VA_ARGS__(const __VA_ARGS__& other); \
|
|
129
|
+
inline __VA_ARGS__& operator=(const __VA_ARGS__& other); \
|
|
130
|
+
public:
|
|
131
|
+
#define ASMJIT_NONCOPYABLE(...) \
|
|
132
|
+
private: \
|
|
133
|
+
inline __VA_ARGS__(const __VA_ARGS__& other); \
|
|
134
|
+
inline __VA_ARGS__& operator=(const __VA_ARGS__& other); \
|
|
135
|
+
public:
|
|
136
|
+
#endif // ASMJIT_CC_HAS_DELETE_FUNCTION
|
|
137
|
+
|
|
138
|
+
// [ASMJIT_ENUM]
|
|
139
|
+
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
|
140
|
+
# define ASMJIT_ENUM(NAME) enum NAME : uint32_t
|
|
141
|
+
#else
|
|
142
|
+
# define ASMJIT_ENUM(NAME) enum NAME
|
|
143
|
+
#endif
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
2
|
+
Copyright (c) 2008-2017, Petr Kobalicek
|
|
3
|
+
|
|
4
|
+
This software is provided 'as-is', without any express or implied
|
|
5
|
+
warranty. In no event will the authors be held liable for any damages
|
|
6
|
+
arising from the use of this software.
|
|
7
|
+
|
|
8
|
+
Permission is granted to anyone to use this software for any purpose,
|
|
9
|
+
including commercial applications, and to alter it and redistribute it
|
|
10
|
+
freely, subject to the following restrictions:
|
|
11
|
+
|
|
12
|
+
1. The origin of this software must not be misrepresented; you must not
|
|
13
|
+
claim that you wrote the original software. If you use this software
|
|
14
|
+
in a product, an acknowledgment in the product documentation would be
|
|
15
|
+
appreciated but is not required.
|
|
16
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
17
|
+
misrepresented as being the original software.
|
|
18
|
+
3. This notice may not be removed or altered from any source distribution.
|
|
19
|
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
|
|
20
|
+
// [AsmJit]
|
|
21
|
+
// Complete x86/x64 JIT and Remote Assembler for C++.
|
|
22
|
+
//
|
|
23
|
+
// [License]
|
|
24
|
+
// Zlib - See LICENSE.md file in the package.
|
|
25
|
+
|
|
26
|
+
// [Guard]
|
|
27
|
+
#if defined(ASMJIT_API_SCOPE)
|
|
28
|
+
# undef ASMJIT_API_SCOPE
|
|
29
|
+
#else
|
|
30
|
+
# error "[asmjit] api-scope not active, forgot to include asmjit_apibegin.h?"
|
|
31
|
+
#endif // ASMJIT_API_SCOPE
|
|
32
|
+
|
|
33
|
+
// ============================================================================
|
|
34
|
+
// [C++ Support]
|
|
35
|
+
// ============================================================================
|
|
36
|
+
|
|
37
|
+
// [NoExcept]
|
|
38
|
+
#if defined(ASMJIT_UNDEF_NOEXCEPT)
|
|
39
|
+
# undef noexcept
|
|
40
|
+
# undef ASMJIT_UNDEF_NOEXCEPT
|
|
41
|
+
#endif // ASMJIT_UNDEF_NOEXCEPT
|
|
42
|
+
|
|
43
|
+
// [NullPtr]
|
|
44
|
+
#if defined(ASMJIT_UNDEF_NULLPTR)
|
|
45
|
+
# undef nullptr
|
|
46
|
+
# undef ASMJIT_UNDEF_NULLPTR
|
|
47
|
+
#endif // ASMJIT_UNDEF_NULLPTR
|
|
48
|
+
|
|
49
|
+
// [Override]
|
|
50
|
+
#if defined(ASMJIT_UNDEF_OVERRIDE)
|
|
51
|
+
# undef override
|
|
52
|
+
# undef ASMJIT_UNDEF_OVERRIDE
|
|
53
|
+
#endif // ASMJIT_UNDEF_OVERRIDE
|
|
54
|
+
|
|
55
|
+
// ============================================================================
|
|
56
|
+
// [Compiler Support]
|
|
57
|
+
// ============================================================================
|
|
58
|
+
|
|
59
|
+
// [Clang]
|
|
60
|
+
#if ASMJIT_CC_CLANG
|
|
61
|
+
# pragma clang diagnostic pop
|
|
62
|
+
#endif // ASMJIT_CC_CLANG
|
|
63
|
+
|
|
64
|
+
// [GCC]
|
|
65
|
+
#if ASMJIT_CC_GCC
|
|
66
|
+
# pragma GCC diagnostic pop
|
|
67
|
+
#endif // ASMJIT_CC_GCC
|
|
68
|
+
|
|
69
|
+
// [MSC]
|
|
70
|
+
#if ASMJIT_CC_MSC
|
|
71
|
+
# pragma warning(pop)
|
|
72
|
+
# if _MSC_VER < 1900
|
|
73
|
+
# if defined(ASMJIT_UNDEF_VSNPRINTF)
|
|
74
|
+
# undef vsnprintf
|
|
75
|
+
# undef ASMJIT_UNDEF_VSNPRINTF
|
|
76
|
+
# endif // ASMJIT_UNDEF_VSNPRINTF
|
|
77
|
+
# if defined(ASMJIT_UNDEF_SNPRINTF)
|
|
78
|
+
# undef snprintf
|
|
79
|
+
# undef ASMJIT_UNDEF_SNPRINTF
|
|
80
|
+
# endif // ASMJIT_UNDEF_SNPRINTF
|
|
81
|
+
# endif
|
|
82
|
+
#endif // ASMJIT_CC_MSC
|
|
83
|
+
|
|
84
|
+
// ============================================================================
|
|
85
|
+
// [Custom Macros]
|
|
86
|
+
// ============================================================================
|
|
87
|
+
|
|
88
|
+
// [ASMJIT_NON...]
|
|
89
|
+
#undef ASMJIT_NONCONSTRUCTIBLE
|
|
90
|
+
#undef ASMJIT_NONCOPYABLE
|
|
91
|
+
|
|
92
|
+
// [ASMJIT_ENUM]
|
|
93
|
+
#undef ASMJIT_ENUM
|