descriptionnone
ownerskimo-pet@kotnet.org
last changeSun, 1 Sep 2024 10:53:21 +0000 (1 12:53 +0200)
content tags
add:
README
Requirements:

- pkg-config (http://www.freedesktop.org/wiki/Software/pkg-config)
	(not needed when compiling a release using the included isl)
- gmp (http://gmplib.org/)
- libyaml (http://pyyaml.org/wiki/LibYAML)
	(only needed if you want to compile the pet executable)
- LLVM/clang libraries, 3.9 or higher (http://clang.llvm.org/get_started.html)
	Unless you have some other reasons for wanting to use the git version,
	it's best to install the latest release (18.1).
	The git version occasionally introduces incompatibilities.
	Nevertheless, if you encounter any such incompatibilities, please
	report them so that they can be fixed.
	However, development versions from before the latest release
	are not supported.

	Also, if you are following the instructions on how to build
	from source, make sure you also install LLVM
	(through "make install").  You may want to specify an installation
	directory using the CMAKE_INSTALL_PREFIX cmake option.
	You may also want to set the LLVM_BUILD_LLVM_DYLIB and
	CLANG_LINK_CLANG_DYLIB options to enable the creation of
	a single shared LLVM and clang-cpp library.

	If you configure older versions of LLVM using cmake, you may end up
	with clang libraries that have been compiled with -fno-rtti without
	this option appearing in the output of "llvm-config --cxxflags".
	You may then run into errors about undefined reference to the
	'typeinfo' of some classes.
	You will then have to add this option manually to CXXFLAGS while
	configuring pet.

	If you want to use the ubuntu package libclang-dev, then you need
	version 3.2 (ubuntu raring) or later.
	Older versions of this package did not include the required libraries.
	You may also need to install the llvm package for llvm-config.
	It is also recommended to install the libclang-cpp-dev ubuntu package.

Preparing:

Grab the latest release and extract it or get the source from
the git repository as follows.  This process requires autoconf,
automake, libtool and pkg-config.

	git clone git://repo.or.cz/pet.git
	cd pet
	./get_submodules.sh
	./autogen.sh

Compilation:

	./configure
	make
	make check

Use:

The main entry points are pet_scop_extract_from_C_source and
pet_transform_C_source.
The first function extracts a scop from the C source file with the given name
and returns it as a pet_scop.  The scop corresponds to the piece
of code delimited by

    #pragma scop

and

    #pragma endscop

The code in between needs to consist only of expression statements,
if statements and for statements.  All access relations and loop initializations
need to be piecewise quasi-affine.  Conditions are allowed to be non-affine,
in which case a separate statement is constructed to evaluate the condition.

The second function (pet_transform_C_source) iterates over all scops.

If the autodetect option has been set, pet will try to automatically
detect a scop and no pragmas are required.  On the other hand, pet
will not produce any warnings in this case as any code that does not
satisfy the requirements is considered to lie outside of the scop.

The layout of pet_scop is documented in include/pet.h.

An example application is given by pet_loopback.c,
which prints out code from the pet_scop without any transformation.


New releases are announced on http://groups.google.com/group/isl-announce

If you use pet, you can let me know by stacking
https://www.openhub.net/p/libpet on ohloh.

For bug reports, feature requests and questions,
contact isl-development@googlegroups.com

If you use pet for your research, you are invited to cite
the following paper.

@InProceedings{Verdoolaege2012pet,
    author = {Sven Verdoolaege and Tobias Grosser},
    title = {Polyhedral Extraction Tool},
    booktitle = {Second Int. Workshop on Polyhedral Compilation Techniques
		(IMPACT'12)},
    address = {Paris, France},
    month = jan,
    year = {2012}
}
shortlog
2024-09-01 Sven Verdoolaegepet 0.11.8masterpet-0.11.8
2024-09-01 Sven Verdoolaegeupdate isl to version 0.27
2024-09-01 Sven VerdoolaegeREADME: update supported versions of clang
2024-07-28 Sven VerdoolaegeREADME: recommend the use of libclang-cpp
2024-07-28 Sven Verdoolaegelink in clangAPINotes when available
2024-07-28 Sven Verdoolaegelink in clangASTMatchers when available
2024-07-28 Sven Verdoolaegelink in libclangSupport when available
2024-07-28 Sven Verdoolaegem4/ax_detect_clang.m4: extract out _AX_DETECT_CLANG_ADD...
2024-07-28 Sven Verdoolaegem4/ax_detect_clang.m4: modify LIBS not LDFLAGS in check...
2024-07-28 Sven Verdoolaegelink in clangDriver before clangBasic
2024-07-28 Sven Verdoolaegeupdate isl for linking in required clang libraries
2024-07-07 Sven Verdoolaegeupdate to extraction of ArraySizeModifier from ArrayType
2024-07-07 Sven Verdoolaegeupdate to removal of SourceManager::createFileID(FileEn...
2024-07-07 Sven Verdoolaegeupdate isl for support for recent versions of clang
2024-02-10 Sven Verdoolaegelink against isl libraries first
2023-08-06 Sven Verdoolaegepet_stmt_build_ast_exprs: handle some nested operations...
...
tags
2 months ago pet-0.11.8 pet 0.11.8
19 months ago pet-0.11.7 pet 0.11.7
2 years ago pet-0.11.6 pet 0.11.6
3 years ago pet-0.11.5 pet 0.11.5
4 years ago pet-0.11.4 pet 0.11.4
5 years ago pet-0.11.3 pet 0.11.3
5 years ago pet-0.11.2 pet 0.11.2
6 years ago pet-0.11.1 pet 0.11.1
6 years ago pet-0.11 pet 0.11
7 years ago consecutivity_CW_709
7 years ago pet-0.10 pet 0.10
8 years ago pet-0.09 pet 0.09
8 years ago pet-0.08 pet 0.08
9 years ago pet-0.07 pet 0.07
10 years ago pet-0.06 pet 0.06
10 years ago pet-0.05 pet 0.05
...
heads
2 months ago master
3 years ago consecutivity