You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sandy 99da0f2c72 pl286 release code 4 years ago
..
FunctionDescriptor.cpp pl286 release code 4 years ago
FunctionDescriptor.h pl286 release code 4 years ago
Mangler.cpp pl286 release code 4 years ago
ManglingUtils.cpp pl286 release code 4 years ago
ManglingUtils.h pl286 release code 4 years ago
NameMangleAPI.h pl286 release code 4 years ago
ParameterType.cpp pl286 release code 4 years ago
ParameterType.h pl286 release code 4 years ago
README.md pl286 release code 4 years ago
Refcount.h pl286 release code 4 years ago

README.md

Contributed by: Intel Corporation.

SPIR Name Mangler

The NameMangler Library Converts the given function descriptor to a string that represents the function's prototype.

The mangling algorithm is based on clang 3.0 Itanium mangling algorithm (http://sourcery.mentor.com/public/cxx-abi/abi.html#mangling).

The algorithm is adapted to support mangling of SPIR built-in functions and was tested on SPIR built-ins only.

The mangler supports mangling according to SPIR 1.2 and SPIR 2.0 For usage examples see unittest/spir_name_mangler.