<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
	<maintainer type="person">
		<email>lssndrbarbieri@gmail.com</email>
		<name>Alessandro Barbieri</name>
	</maintainer>
	<longdescription lang="en">
Mercurium is a C/C++/Fortran source-to-source compilation infrastructure aimed at fast prototyping developed by the Programming Models group at the Barcelona Supercomputing Center.
Mercurium is used, together with the Nanos++ Runtime Library, to implement the OmpSs programming model. Both tools provide also an implementation of OpenMP 3.1. More recently, Mercurium has been also used to implement the OmpSs-2 programming model together with the Nanos6 Runtime Library.
Apart from that, since Mercurium is quite extensible it has been used to implement other programming models or compiler transformations, examples include Cell Superscalar, Software Transactional Memory, Distributed Shared Memory or the ACOTES project, just to name a few.
Extending Mercurium is achieved using a plugin architecture, where plugins represent several phases of the compiler. These plugins are written in C++ and dynamically loaded by the compiler according to the chosen profile configuration. Code transformations can be implemented in terms of source code (there is no need to modify or know the internal syntactic representation of the compiler).
	</longdescription>
	<upstream>
		<remote-id type="github">bsc-pm/mcxx</remote-id>
	</upstream>
	<use>
		<flag name="analysis">Enables analysis phase</flag>
		<flag name="array-descriptors">Enable GNU Fortran compiler &gt; 8 array descriptors</flag>
		<flag name="bison-reporting">Use this when debugging bison grammars</flag>
		<flag name="examples">Build and install TL example phases</flag>
		<flag name="extrae">Enables Extrae instrumentation of Mercurium itself</flag>
		<flag name="mpi">Enables the MPI Nanos++ Lowering phase in Mercurium</flag>
		<flag name="nanox">Enables support for Nanos++</flag>
		<flag name="ompss">Enables support of OmpSs Programming Model using Nanos++</flag>
		<flag name="ompss2">Enables support of OmpSs-2 using Nanos6</flag>
		<flag name="opencl">Enables the OpenCL Nanos++ Lowering phase in Mercurium</flag>
		<flag name="openmp">Enables support of OpenMP using Nanos++</flag>
		<flag name="quad">Enables support for __float128 and __int128. It also enables REAL(KIND=16) and INTEGER(KIND=16) in Fortran</flag>
		<flag name="tcl">Enable support for Transparent Checkpoint Library</flag>
		<flag name="tl-openmp-gomp">Enables support of OpenMP TL for GOMP (EXPERIMENTAL and UNSUPPORTED)</flag>
		<flag name="tl-openmp-profile">Enables support of OpenMP profile mode</flag>
		<flag name="vectorization">Enables Vectorization phase</flag>
	</use>
</pkgmetadata>
