IRBuilderAsmJs.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft Corporation and contributors. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. #ifdef ASMJS_PLAT
  7. namespace AsmJsRegSlots
  8. {
  9. enum ConstSlots
  10. {
  11. ReturnReg = 0,
  12. ModuleMemReg,
  13. ArrayReg,
  14. WasmMemoryReg,
  15. BufferReg,
  16. LengthReg,
  17. SharedContents,
  18. RefCountedBuffer,
  19. RegCount
  20. };
  21. };
  22. struct JitLoopBodyData
  23. {
  24. private:
  25. BVFixed* m_ldSlots = nullptr;
  26. BVFixed* m_stSlots = nullptr;
  27. StackSym* m_loopBodyRetIPSym = nullptr;
  28. BVFixed* m_yieldRegs = nullptr;
  29. uint32 m_loopCurRegs[WAsmJs::LIMIT];
  30. public:
  31. JitLoopBodyData(BVFixed* ldSlots, BVFixed* stSlots, StackSym* loopBodyRetIPSym)
  32. {
  33. Assert(ldSlots && stSlots && loopBodyRetIPSym);
  34. m_ldSlots = ldSlots;
  35. m_stSlots = stSlots;
  36. m_loopBodyRetIPSym = loopBodyRetIPSym;
  37. }
  38. // Use m_yieldRegs initialization to determine if m_loopCurRegs is initialized
  39. bool IsLoopCurRegsInitialized() const { return !!m_yieldRegs; }
  40. template<typename T> void InitLoopCurRegs(__in_ecount(WAsmJs::LIMIT) T* curRegs, BVFixed* yieldRegs)
  41. {
  42. Assert(yieldRegs && curRegs);
  43. m_yieldRegs = yieldRegs;
  44. for (WAsmJs::Types type = WAsmJs::Types(0); type != WAsmJs::LIMIT; type = WAsmJs::Types(type + 1))
  45. {
  46. m_loopCurRegs[type] = curRegs[type];
  47. }
  48. }
  49. bool IsRegOutsideOfLoop(uint32 typeReg, WAsmJs::Types type) const
  50. {
  51. Assert(IsLoopCurRegsInitialized());
  52. return typeReg < m_loopCurRegs[type];
  53. }
  54. bool IsYieldReg(Js::RegSlot reg) const
  55. {
  56. return m_yieldRegs && m_yieldRegs->Test(reg);
  57. }
  58. void SetRegIsYield(Js::RegSlot reg)
  59. {
  60. Assert(m_yieldRegs);
  61. m_yieldRegs->Set(reg);
  62. }
  63. BVFixed* GetStSlots() const { return m_stSlots; }
  64. BVFixed* GetLdSlots() const { return m_ldSlots; }
  65. StackSym* GetLoopBodyRetIPSym() const { return m_loopBodyRetIPSym; }
  66. #if DBG
  67. BVFixed* m_usedAsTemp;
  68. #endif
  69. };
  70. class IRBuilderAsmJs
  71. {
  72. friend struct IRBuilderAsmJsSwitchAdapter;
  73. public:
  74. IRBuilderAsmJs(Func * func)
  75. : m_func(func)
  76. , m_switchAdapter(this)
  77. , m_switchBuilder(&m_switchAdapter)
  78. {
  79. if (!m_func->GetJITFunctionBody()->IsWasmFunction())
  80. {
  81. m_statementReader = Anew(func->m_alloc, Js::StatementReader<Js::FunctionBody::ArenaStatementMapList>);
  82. }
  83. func->m_workItem->InitializeReader(&m_jnReader, m_statementReader, func->m_alloc);
  84. m_asmFuncInfo = m_func->GetJITFunctionBody()->GetAsmJsInfo();
  85. #if 0
  86. // templatized JIT loop body
  87. if (func->IsLoopBody())
  88. {
  89. Js::LoopEntryPointInfo* loopEntryPointInfo = (Js::LoopEntryPointInfo*)(func->m_workItem->GetEntryPoint());
  90. if (loopEntryPointInfo->GetIsTJMode())
  91. {
  92. m_IsTJLoopBody = true;
  93. func->isTJLoopBody = true;
  94. }
  95. }
  96. #endif
  97. }
  98. void Build();
  99. private:
  100. struct MemAccessTypeInfo
  101. {
  102. WAsmJs::Types valueRegType;
  103. IRType type;
  104. ValueType arrayType;
  105. };
  106. void LoadNativeCodeData();
  107. void AddInstr(IR::Instr * instr, uint32 offset);
  108. bool IsLoopBody()const;
  109. uint GetLoopBodyExitInstrOffset() const;
  110. IR::SymOpnd * BuildAsmJsLoopBodySlotOpnd(Js::RegSlot regSlot, IRType opndType);
  111. void EnsureLoopBodyAsmJsLoadSlot(Js::RegSlot regSlot, IRType type);
  112. void EnsureLoopBodyAsmJsStoreSlot(Js::RegSlot regSlot, IRType type);
  113. bool IsLoopBodyOuterOffset(uint offset) const;
  114. bool IsLoopBodyReturnIPInstr(IR::Instr * instr) const;
  115. IR::Opnd * InsertLoopBodyReturnIPInstr(uint targetOffset, uint offset);
  116. IR::RegOpnd * BuildDstOpnd(Js::RegSlot dstRegSlot, IRType type);
  117. IR::RegOpnd * BuildSrcOpnd(Js::RegSlot srcRegSlot, IRType type);
  118. IR::RegOpnd * BuildIntConstOpnd(Js::RegSlot regSlot);
  119. SymID BuildSrcStackSymID(Js::RegSlot regSlot, IRType type = IRType::TyVar);
  120. IR::SymOpnd * BuildFieldOpnd(Js::RegSlot reg, Js::PropertyId propertyId, PropertyKind propertyKind, IRType type, bool scale = true);
  121. PropertySym * BuildFieldSym(Js::RegSlot reg, Js::PropertyId propertyId, PropertyKind propertyKind);
  122. uint AddStatementBoundary(uint statementIndex, uint offset);
  123. BranchReloc * AddBranchInstr(IR::BranchInstr *instr, uint32 offset, uint32 targetOffset);
  124. BranchReloc * CreateRelocRecord(IR::BranchInstr * branchInstr, uint32 offset, uint32 targetOffset);
  125. void BuildHeapBufferReload(uint32 offset, bool isFirstLoad = false);
  126. template<typename T, typename ConstOpnd, typename F>
  127. void CreateLoadConstInstrForType(byte* table, Js::RegSlot& regAllocated, uint32 constCount, uint32 offset, IRType irType, ValueType valueType, Js::OpCode opcode, F extraProcess);
  128. void BuildConstantLoads();
  129. void BuildImplicitArgIns();
  130. void InsertLabels();
  131. IR::LabelInstr * CreateLabel(IR::BranchInstr * branchInstr, uint& offset);
  132. uint32 GetTypedRegFromRegSlot(Js::RegSlot reg, WAsmJs::Types type);
  133. Js::RegSlot GetRegSlotFromTypedReg(Js::RegSlot srcReg, WAsmJs::Types type);
  134. Js::RegSlot GetRegSlotFromPtrReg(Js::RegSlot srcReg)
  135. {
  136. #if TARGET_32
  137. return GetRegSlotFromIntReg(srcReg);
  138. #elif TARGET_64
  139. return GetRegSlotFromInt64Reg(srcReg);
  140. #endif
  141. }
  142. Js::RegSlot GetRegSlotFromIntReg(Js::RegSlot srcIntReg) {return GetRegSlotFromTypedReg(srcIntReg, WAsmJs::INT32);}
  143. Js::RegSlot GetRegSlotFromInt64Reg(Js::RegSlot srcIntReg) {return GetRegSlotFromTypedReg(srcIntReg, WAsmJs::INT64);}
  144. Js::RegSlot GetRegSlotFromFloatReg(Js::RegSlot srcFloatReg) {return GetRegSlotFromTypedReg(srcFloatReg, WAsmJs::FLOAT32);}
  145. Js::RegSlot GetRegSlotFromDoubleReg(Js::RegSlot srcDoubleReg) {return GetRegSlotFromTypedReg(srcDoubleReg, WAsmJs::FLOAT64);}
  146. Js::RegSlot GetRegSlotFromSimd128Reg(Js::RegSlot srcSimd128Reg) {return GetRegSlotFromTypedReg(srcSimd128Reg, WAsmJs::SIMD);}
  147. Js::RegSlot GetRegSlotFromVarReg(Js::RegSlot srcVarReg);
  148. Js::OpCode GetSimdOpcode(Js::OpCodeAsmJs asmjsOpcode);
  149. void GetSimdTypesFromAsmType(Js::AsmJsType::Which asmType, IRType *pIRType, ValueType *pValueType = nullptr);
  150. IR::Instr * AddExtendedArg(IR::RegOpnd *src1, IR::RegOpnd *src2, uint32 offset);
  151. bool RegIsSimd128ReturnVar(Js::RegSlot reg);
  152. SymID GetMappedTemp(Js::RegSlot reg);
  153. void SetMappedTemp(Js::RegSlot reg, SymID tempId);
  154. bool GetTempUsed(Js::RegSlot reg);
  155. void SetTempUsed(Js::RegSlot reg, bool used);
  156. bool RegIsTemp(Js::RegSlot reg);
  157. bool RegIsConstant(Js::RegSlot reg);
  158. bool RegIsVar(Js::RegSlot reg);
  159. bool RegIsTypedVar(Js::RegSlot reg, WAsmJs::Types type);
  160. bool RegIsTypedConst(Js::RegSlot reg, WAsmJs::Types type);
  161. bool RegIsTypedTmp(Js::RegSlot reg, WAsmJs::Types type);
  162. bool RegIs(Js::RegSlot reg, WAsmJs::Types type);
  163. bool RegIsJitLoopYield(Js::RegSlot reg);
  164. void CheckJitLoopReturn(Js::RegSlot reg, IRType type);
  165. void BuildArgOut(IR::Opnd* srcOpnd, uint32 dstRegSlot, uint32 offset, IRType type, ValueType valueType = ValueType::Uninitialized);
  166. void BuildFromVar(uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot srcRegSlot, IRType irType, ValueType valueType);
  167. #define LAYOUT_TYPE(layout) \
  168. void Build##layout(Js::OpCodeAsmJs newOpcode, uint32 offset);
  169. #define LAYOUT_TYPE_WMS(layout) \
  170. template <typename SizePolicy> void Build##layout(Js::OpCodeAsmJs newOpcode, uint32 offset);
  171. #define EXCLUDE_FRONTEND_LAYOUT
  172. #include "ByteCode/LayoutTypesAsmJs.h"
  173. void BuildSimd_1Ints(Js::OpCodeAsmJs newOpcode, uint32 offset, IRType dstSimdType, Js::RegSlot* srcRegSlots, Js::RegSlot dstRegSlot, uint LANES);
  174. void BuildSimd_1Int1(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot src1RegSlot, IRType simdType);
  175. void BuildSimd_2Int2(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot src1RegSlot, Js::RegSlot src2RegSlot, Js::RegSlot src3RegSlot, IRType simdType, IRType valType = TyInt32);
  176. void BuildSimd_2(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot src1RegSlot, IRType simdType);
  177. void BuildSimd_2Int1(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot src1RegSlot, Js::RegSlot src2RegSlot, IRType simdType);
  178. void BuildSimd_3(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot src1RegSlot, Js::RegSlot src2RegSlot, IRType simdType);
  179. void BuildSimd_3(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot src1RegSlot, Js::RegSlot src2RegSlot, IRType dstSimdType, IRType srcSimdType);
  180. void BuildSimdConversion(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstRegSlot, Js::RegSlot srcRegSlot, IRType dstSimdType, IRType srcSimdType);
  181. ValueType GetSimdValueTypeFromIRType(IRType type);
  182. void BuildElementSlot(Js::OpCodeAsmJs newOpcode, uint32 offset, int32 slotIndex, Js::RegSlot value, Js::RegSlot instance);
  183. void BuildAsmUnsigned1(Js::OpCodeAsmJs newOpcode, uint offset);
  184. void BuildWasmLoopStart(Js::OpCodeAsmJs newOpcode, uint offset);
  185. void BuildWasmMemAccess(Js::OpCodeAsmJs newOpcode, uint32 offset, uint32 slotIndex, Js::RegSlot value, uint32 constOffset, Js::ArrayBufferView::ViewType viewType);
  186. void BuildAsmTypedArr(Js::OpCodeAsmJs newOpcode, uint32 offset, uint32 slotIndex, Js::RegSlot value, Js::ArrayBufferView::ViewType viewType);
  187. void BuildAsmSimdTypedArr(Js::OpCodeAsmJs newOpcode, uint32 offset, uint32 slotIndex, Js::RegSlot value, Js::ArrayBufferView::ViewType viewType, uint8 DataWidth, uint32 simdOffset);
  188. void BuildAsmCall(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::ArgSlot argCount, Js::RegSlot ret, Js::RegSlot function, int8 returnType, Js::ProfileId profileId);
  189. void BuildAsmReg1(Js::OpCodeAsmJs newOpcode, uint32 offset, Js::RegSlot dstReg);
  190. void BuildBrInt1(Js::OpCodeAsmJs newOpcode, uint32 offset, int32 relativeOffset, Js::RegSlot src);
  191. void BuildBrInt2(Js::OpCodeAsmJs newOpcode, uint32 offset, int32 relativeOffset, Js::RegSlot src1, Js::RegSlot src2);
  192. void BuildBrInt1Const1(Js::OpCodeAsmJs newOpcode, uint32 offset, int32 relativeOffset, Js::RegSlot src1, int32 src2);
  193. void BuildBrCmp(Js::OpCodeAsmJs newOpcode, uint32 offset, int32 relativeOffset, IR::RegOpnd* src1Opnd, IR::Opnd* src2Opnd);
  194. void GenerateLoopBodySlotAccesses(uint offset);
  195. static void InitializeMemAccessTypeInfo(Js::ArrayBufferView::ViewType viewType, _Out_ MemAccessTypeInfo * typeInfo);
  196. Js::PropertyId CalculatePropertyOffset(Js::RegSlot regSlot, IRType type);
  197. IR::RegOpnd* BuildTrapIfZero(IR::RegOpnd* srcOpnd, uint32 offset);
  198. IR::RegOpnd* BuildTrapIfMinIntOverNegOne(IR::RegOpnd* src1Opnd, IR::RegOpnd* src2Opnd, uint32 offset);
  199. IR::Instr* CreateSignExtendInstr(IR::Opnd* dst, IR::Opnd* src, IRType fromType);
  200. JitArenaAllocator * m_tempAlloc;
  201. JitArenaAllocator * m_funcAlloc;
  202. Func * m_func;
  203. IR::Instr * m_lastInstr;
  204. IR::Instr ** m_offsetToInstruction;
  205. Js::ByteCodeReader m_jnReader;
  206. Js::StatementReader<Js::FunctionBody::ArenaStatementMapList>* m_statementReader = nullptr;
  207. SListCounted<IR::Instr *> *m_argStack;
  208. SList<IR::Instr *> * m_tempList;
  209. SList<int32> * m_argOffsetStack;
  210. SList<BranchReloc *> * m_branchRelocList;
  211. // 1 for const, 1 for var, 1 for temps for each type and 1 for last
  212. static const uint32 m_firstsTypeCount = WAsmJs::LIMIT * 3 + 1;
  213. Js::RegSlot m_firstsType[m_firstsTypeCount];
  214. Js::RegSlot m_firstVarConst;
  215. Js::RegSlot m_tempCount;
  216. Js::OpCode * m_simdOpcodesMap;
  217. Js::RegSlot GetFirstConst(WAsmJs::Types type) { return m_firstsType[type]; }
  218. Js::RegSlot GetFirstVar(WAsmJs::Types type) { return m_firstsType[type + WAsmJs::LIMIT]; }
  219. Js::RegSlot GetFirstTmp(WAsmJs::Types type) { return m_firstsType[type + WAsmJs::LIMIT * 2]; }
  220. Js::RegSlot GetLastConst(WAsmJs::Types type) { return m_firstsType[type + 1]; }
  221. Js::RegSlot GetLastVar(WAsmJs::Types type) { return m_firstsType[type + WAsmJs::LIMIT + 1]; }
  222. Js::RegSlot GetLastTmp(WAsmJs::Types type) { return m_firstsType[type + WAsmJs::LIMIT * 2 + 1]; }
  223. JitLoopBodyData& GetJitLoopBodyData() { Assert(IsLoopBody()); return *m_jitLoopBodyData; }
  224. const JitLoopBodyData& GetJitLoopBodyData() const { Assert(IsLoopBody()); return *m_jitLoopBodyData; }
  225. SymID * m_tempMap;
  226. BVFixed * m_fbvTempUsed;
  227. uint32 m_functionStartOffset;
  228. const AsmJsJITInfo * m_asmFuncInfo;
  229. JitLoopBodyData* m_jitLoopBodyData = nullptr;
  230. IRBuilderAsmJsSwitchAdapter m_switchAdapter;
  231. SwitchIRBuilder m_switchBuilder;
  232. uint32 m_offsetToInstructionCount;
  233. #define BUILD_LAYOUT_DEF(layout, ...) void Build##layout (Js::OpCodeAsmJs, uint32, __VA_ARGS__);
  234. #define Reg_Type Js::RegSlot
  235. #define Int_Type Js::RegSlot
  236. #define Long_Type Js::RegSlot
  237. #define Float_Type Js::RegSlot
  238. #define Double_Type Js::RegSlot
  239. #define IntConst_Type int
  240. #define LongConst_Type int64
  241. #define FloatConst_Type float
  242. #define DoubleConst_Type double
  243. #define Float32x4_Type Js::RegSlot
  244. #define Bool32x4_Type Js::RegSlot
  245. #define Int32x4_Type Js::RegSlot
  246. #define Float64x2_Type Js::RegSlot
  247. #define Int64x2_Type Js::RegSlot
  248. #define Int16x8_Type Js::RegSlot
  249. #define Bool16x8_Type Js::RegSlot
  250. #define Int8x16_Type Js::RegSlot
  251. #define Bool8x16_Type Js::RegSlot
  252. #define Uint32x4_Type Js::RegSlot
  253. #define Uint16x8_Type Js::RegSlot
  254. #define Uint8x16_Type Js::RegSlot
  255. #define LAYOUT_TYPE_WMS_REG2(layout, t0, t1) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type)
  256. #define LAYOUT_TYPE_WMS_REG3(layout, t0, t1, t2) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type)
  257. #define LAYOUT_TYPE_WMS_REG4(layout, t0, t1, t2, t3) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type)
  258. #define LAYOUT_TYPE_WMS_REG5(layout, t0, t1, t2, t3, t4) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type)
  259. #define LAYOUT_TYPE_WMS_REG6(layout, t0, t1, t2, t3, t4, t5) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type)
  260. #define LAYOUT_TYPE_WMS_REG7(layout, t0, t1, t2, t3, t4, t5, t6) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type, t6##_Type)
  261. #define LAYOUT_TYPE_WMS_REG9(layout, t0, t1, t2, t3, t4, t5, t6, t7, t8) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type, t6##_Type, t7##_Type, t8##_Type)
  262. #define LAYOUT_TYPE_WMS_REG10(layout, t0, t1, t2, t3, t4, t5, t6, t7, t8, t9) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type, t6##_Type, t7##_Type, t8##_Type, t9##_Type)
  263. #define LAYOUT_TYPE_WMS_REG11(layout, t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type, t6##_Type, t7##_Type, t8##_Type, t9##_Type, t10##_Type)
  264. #define LAYOUT_TYPE_WMS_REG17(layout, t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type, t6##_Type, t7##_Type, t8##_Type, t9##_Type, t10##_Type, t11##_Type, t12##_Type, t13##_Type, t14##_Type, t15##_Type, t16##_Type)
  265. #define LAYOUT_TYPE_WMS_REG18(layout, t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type, t6##_Type, t7##_Type, t8##_Type, t9##_Type, t10##_Type, t11##_Type, t12##_Type, t13##_Type, t14##_Type, t15##_Type, t16##_Type, t17##_Type)
  266. #define LAYOUT_TYPE_WMS_REG19(layout, t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, t18) BUILD_LAYOUT_DEF(layout, t0##_Type, t1##_Type, t2##_Type, t3##_Type, t4##_Type, t5##_Type, t6##_Type, t7##_Type, t8##_Type, t9##_Type, t10##_Type, t11##_Type, t12##_Type, t13##_Type, t14##_Type, t15##_Type, t16##_Type, t17##_Type, t18##_Type)
  267. #define EXCLUDE_FRONTEND_LAYOUT
  268. #include "LayoutTypesAsmJs.h"
  269. #undef BUILD_LAYOUT_DEF
  270. #undef RegType
  271. #undef IntType
  272. #undef LongType
  273. #undef FloatType
  274. #undef DoubleType
  275. #undef IntConstType
  276. #undef LongConstType
  277. #undef FloatConstType
  278. #undef DoubleConstType
  279. #undef Float32x4Type
  280. #undef Bool32x4Type
  281. #undef Int32x4Type
  282. #undef Float64x2Type
  283. #undef Int16x8Type
  284. #undef Bool16x8Type
  285. #undef Int8x16Type
  286. #undef Bool8x16Type
  287. #undef Uint32x4Type
  288. #undef Uint16x8Type
  289. #undef Uint8x16Type
  290. };
  291. #endif