Research and Implementation of the Autovectorization for YHFT-Matrix Complier
- Author
- DanXiaoQiang
- Advisor
- ChenYueYue
- School
- National University of Defense Science and Technology
- Major
- Software Engineering
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 5
- Citations
- 0
Abstract
In recent years, single instruction multiple data (SIMD) extensions, which offer higherperformance, lower energy for multimedia and Digital signal processing, have been incorporatedinto many microprocessors. Among the ways to make use of SIMD extensions, the best way forthe pragammers is autovectorization, which can reduce much burden on pragammers, reduce thecosts of application development, and improve the security and portability of the applications.YHFT-Matrix is an architecture with SIMD features. The number of SIMD instructionsaccounts for almost50%in the YHFT-Matrix instruction set. Therefore, the autovectorization ofSIMD instructions is a vital part of YHFT-Matrix complier. We designed and implemented theautovectorization of YHFT-Matrix SIMD instructions with the open source complier GCC.The work of this paper include:The autovectorization approach for YHFT-Matrix was designed and implemented on thebase of the current research of the autovectorization as well as the mechanism of vectorization inGCC. The YHFT-Matrix back-end was supported in GCC, and the mapping of simple SIMDoperations was realized.Further more, a lot of optimization work was done to deal with the specifc SIMDinstructions of YHFT-Matrix as follows:First, a scheme of data type extension was proposed for the saturation arithmetic ofYHFT-Matrix. In this way, the saturation arithmetic’s intermediate representation (IR) can besimplified.Second, the special multiplication operation in our architecture was supported by modifyingUsual Arithmetic Conversion of C standard and by this way, the superfluous statement in IR wasremoved, and the input to the vectorier was simplified.Third, an approach based on operation extension was presented for the special mathematicaloperations which were mapped by means of library functions in GCC making these operations inthe loop can be translated into relevant SIMD instructions of YHFT-Matrix directly.Finally, since the vectorizer was lack of capabilities in vectorization, a technology usingpragma dierectives to control the vectorier was raised and implemented. The programmers canuse the dierectives to pass information to the vectorier in vectorization process.We implemented and verified the work described above on GCC-4.3.2platform, and theresults show that the correct SIMD instructons are obtained in the mapping of simple operationswhile the capabilities of the vectorizer is improved for YHFT-Matrix by using optimizationtechnologies in this paper, and the autovectorization approach for YHFT-Matrix raised by thispaper is proved to be correct and effective.
Related dissertations
- Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
- The Design and Implementation of High-performance fixed-point Arithmetic Unit for SIMD DSP
- Design and Implemtation of BP Component and Shuffle Unit in YHFT-Matrix Processor
- The Design and Implementation of High Performance EMIF and DDR2Interface on YHFT-Matrix Processor
- Design and Implementation of Vectorized FFTs on the YHFT-Matrix
- The Gulf Regional Cooperation after the Cold War: a Regionalism Perspective
- A New Algorithm of Sound Source Localization Based on Special Acoustic Detection
- Technical Structure Analysis for Chinese Manufactured Goods Export to GCC
- Algorithm Research and Localization System Design of In-Tank Robot Based on Microphone Array
- Analyze and Transplant of GCC Compiler Based on the Platform of SPARC
- The Design and Implementation of Testing Service System Based on Software Behavior Analysis
- Study on sound source localization algorithm based on time delay estimation
- Study on the construction of the six Gulf countries security from the perspective of Communitarianism
- Research status of civilian nuclear energy policy and the development of the GCC countries
- To Study the Influence of Laparoscopic and Open Radical Operation of Colorectal Carcinoma on Hematogenous Micrometastasis by the Combinative Detection of GCC MRNA and HTERT MRNA
- Pituitary tumor of optic nerve pathway anatomical, electrophysiological characteristics and functional imaging based on transsphenoidal recovery related factors of vision after operation
- Research on the Core Mechanism of ITU-T T.120-Based Multimedia Data Conference System & Its Implementation Techniques over Internet
- Research and Development of the Cross Compiler Based on GCC for Embedded System
- GCC compiler system architecture analysis and back-end transplant practice
- Research on Compiler Optimization Technologies for THUMP