diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 10:03:13 +0100 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2015-07-07 10:03:13 +0100 |
commit | c2740578404b4e46d198de70af1cfd554033d99f (patch) | |
tree | bb97478f7d31251d5b1bb0013b6b06b16ca0712c /ext/nomali/doxygen.sed | |
parent | a0cbf5541133e58968919991635797babaad2a18 (diff) | |
download | gem5-c2740578404b4e46d198de70af1cfd554033d99f.tar.xz |
ext: Add the NoMali GPU no-simulation library
Add revision 9adf9d6e2d889a483a92136c96eb8a434d360561 of NoMali-model
from https://github.com/ARM-software/nomali-model. This library
implements the register interface of the Mali T6xx/T7xx series GPUs,
but doesn't do any rendering. It can be used to hide the effects of
software rendering.
Diffstat (limited to 'ext/nomali/doxygen.sed')
-rwxr-xr-x | ext/nomali/doxygen.sed | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ext/nomali/doxygen.sed b/ext/nomali/doxygen.sed new file mode 100755 index 000000000..5d460bdcd --- /dev/null +++ b/ext/nomali/doxygen.sed @@ -0,0 +1,46 @@ +#!/bin/sed -f +# +# Copyright (c) 2014-2015 ARM Limited +# All rights reserved +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Authors: Andreas Sandberg + +# READ BEFORE EDITING: +# +# * Avoid adding or removing newlines (e.g., deleting matched lines). It's +# much easier to understand the Doxygen logs if they point to the right +# line in the source files. +# +# * SED can be hard to read, so please document what your replacement rules +# are supposed to do and why. +# + +# Handle TODO/FIXME/BUG comments +/\/\/ \(TODO\|FIXME\|BUG\):/ { + # Transform the first line of the comment block into a Doxygen C++ comment. + s/\([^\]\)\/\/ /\1\/\/\/ /; + + : todo_comment_cont + # Replace any TODO/FIXME/BUG commands with Doxygen equivalents + s/\(TODO\|FIXME\):/@todo /; + s/\(BUG\):/@bug /; + # Get the next line + n; + # If this line is only contains whitespace and a comment, it is a + # conntinuation of the previous line. If so, make it a Doxygen comment. + s/\([:space:]*\)\/\/\([^\/]\)/\1\/\/\/\2/ ; + # Try to match another line if the previous s command matched a line. + t todo_comment_cont; +} |