1 # Copyright 2016 The Gemmlowp Authors. All rights reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 """Generates the arm32 headers used by the gemm/gemv lib.""" 15 16 import cc_emitter 17 import common 18 import neon_emitter 19 import streams_common 20 21 22 def Main(): 23 """.""" 24 cc = cc_emitter.CCEmitter() 25 common.GenerateHeader(cc, 'gemmlowp_meta_streams_arm_32', 'GEMMLOWP_NEON_32') 26 27 cc.EmitNamespaceBegin('gemmlowp') 28 cc.EmitNamespaceBegin('meta') 29 cc.EmitNewline() 30 31 streams_common.GenerateUInt8x8Streams(cc, neon_emitter.NeonEmitter(), 8) 32 33 cc.EmitNamespaceEnd() 34 cc.EmitNamespaceEnd() 35 cc.EmitNewline() 36 37 common.GenerateFooter(cc, 'Meta gemm for arm32 requires: GEMMLOWP_NEON_32!') 38 39 40 if __name__ == '__main__': 41 Main() 42