763d29fdf653cd408fd821121e02bc4a1e8383f4
1 /****************************************************************************
2 * Copyright (C) 2014-2015 Intel Corporation. All Rights Reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25 * @brief Includes all the builder related functionality
29 ******************************************************************************/
32 #include "JitManager.h"
33 #include "common/formats.h"
40 Builder(JitManager
*pJitMgr
);
43 IRBuilder
<> *IRB() { return mpIRBuilder
; };
44 JitManager
*JM() { return mpJitMgr
; }
47 IRBuilder
<> *mpIRBuilder
;
49 uint32_t mVWidth
; // vector width simd8
50 uint32_t mVWidth16
; // vector width simd16
52 // Built in types: scalar
69 // Built in types: simd8
79 Type
* mSimdVectorTRTy
;
81 // Built in types: simd16
89 Type
* mSimd16IntPtrTy
;
90 Type
* mSimd16VectorTy
;
91 Type
* mSimd16VectorTRTy
;
93 #include "gen_builder.hpp"
94 #include "gen_builder_x86.hpp"
95 #include "builder_misc.h"
96 #include "builder_math.h"
97 #include "builder_mem.h"
101 void SetPrivateContext(Value
* pPrivateContext
)
103 mpPrivateContext
= pPrivateContext
;
104 NotifyPrivateContextSet();
106 virtual void NotifyPrivateContextSet() {}
107 inline Value
* GetPrivateContext() { return mpPrivateContext
; }
110 Value
* mpPrivateContext
;