提交 68aad5b6 编写于 作者: A Andrew Scheidecker 提交者: Matt Witherspoon

Remove LLVM IR translation for the removed boolean vector operators

上级 65573fd4
......@@ -1030,10 +1030,6 @@ namespace LLVMJIT
EMIT_SIMD_SPLAT(i64x2,scalar,2)
EMIT_SIMD_SPLAT(f32x4,scalar,4)
EMIT_SIMD_SPLAT(f64x2,scalar,2)
EMIT_SIMD_SPLAT(b8x16,coerceI32ToBool(scalar),16)
EMIT_SIMD_SPLAT(b16x8,coerceI32ToBool(scalar),8)
EMIT_SIMD_SPLAT(b32x4,coerceI32ToBool(scalar),4)
EMIT_SIMD_SPLAT(b64x2,coerceI32ToBool(scalar),2)
EMIT_STORE_OP(v128,store,value->getType(),4,identityConversion)
EMIT_LOAD_OP(v128,load,llvmI64x2Type,4,identityConversion)
......@@ -1177,11 +1173,6 @@ namespace LLVMJIT
EMIT_SIMD_EXTRACT_LANE_OP(f32x4_extract_lane,llvmF32x4Type,4,scalar)
EMIT_SIMD_EXTRACT_LANE_OP(f64x2_extract_lane,llvmF64x2Type,2,scalar)
EMIT_SIMD_EXTRACT_LANE_OP(b8x16_extract_lane,llvmB8x16Type,16,coerceBoolToI32(scalar))
EMIT_SIMD_EXTRACT_LANE_OP(b16x8_extract_lane,llvmB16x8Type,8,coerceBoolToI32(scalar))
EMIT_SIMD_EXTRACT_LANE_OP(b32x4_extract_lane,llvmB32x4Type,4,coerceBoolToI32(scalar))
EMIT_SIMD_EXTRACT_LANE_OP(b64x2_extract_lane,llvmB64x2Type,2,coerceBoolToI32(scalar))
#define EMIT_SIMD_REPLACE_LANE_OP(typePrefix,llvmType,numLanes,coerceScalar) \
void typePrefix##_replace_lane(LaneIndexImm<numLanes> imm) \
......@@ -1199,11 +1190,6 @@ namespace LLVMJIT
EMIT_SIMD_REPLACE_LANE_OP(f32x4,llvmF32x4Type,4,scalar)
EMIT_SIMD_REPLACE_LANE_OP(f64x2,llvmF64x2Type,2,scalar)
EMIT_SIMD_REPLACE_LANE_OP(b8x16,llvmB8x16Type,16,coerceI32ToBool(scalar))
EMIT_SIMD_REPLACE_LANE_OP(b16x8,llvmB16x8Type,8,coerceI32ToBool(scalar))
EMIT_SIMD_REPLACE_LANE_OP(b32x4,llvmB32x4Type,4,coerceI32ToBool(scalar))
EMIT_SIMD_REPLACE_LANE_OP(b64x2,llvmB64x2Type,2,coerceI32ToBool(scalar))
void v8x16_shuffle(ShuffleImm<16> imm)
{
auto right = irBuilder.CreateBitCast(pop(),llvmI8x16Type);
......
......@@ -47,10 +47,6 @@ namespace LLVMJIT
llvm::Type* llvmI64x2Type;
llvm::Type* llvmF32x4Type;
llvm::Type* llvmF64x2Type;
llvm::Type* llvmB8x16Type;
llvm::Type* llvmB16x8Type;
llvm::Type* llvmB32x4Type;
llvm::Type* llvmB64x2Type;
#endif
llvm::Constant* typedZeroConstants[(Uptr)ValueType::num];
......@@ -783,10 +779,6 @@ namespace LLVMJIT
llvmI64x2Type = llvm::VectorType::get(llvmI64Type,2);
llvmF32x4Type = llvm::VectorType::get(llvmF32Type,4);
llvmF64x2Type = llvm::VectorType::get(llvmF64Type,2);
llvmB8x16Type = llvm::VectorType::get(llvmBoolType,16);
llvmB16x8Type = llvm::VectorType::get(llvmBoolType,8);
llvmB32x4Type = llvm::VectorType::get(llvmBoolType,4);
llvmB64x2Type = llvm::VectorType::get(llvmBoolType,2);
#endif
llvmResultTypes[(Uptr)ResultType::none] = llvm::Type::getVoidTy(context);
......
......@@ -86,10 +86,6 @@ namespace LLVMJIT
extern llvm::Type* llvmI64x2Type;
extern llvm::Type* llvmF32x4Type;
extern llvm::Type* llvmF64x2Type;
extern llvm::Type* llvmB8x16Type;
extern llvm::Type* llvmB16x8Type;
extern llvm::Type* llvmB32x4Type;
extern llvm::Type* llvmB64x2Type;
#endif
// Zero constants of each type.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册