Changeset View
Changeset View
Standalone View
Standalone View
llvm/unittests/IR/VPIntrinsicTest.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | std::unique_ptr<Module> createVPDeclarationModule() { | ||||
const char *BinaryFPOpcodes[] = {"fadd", "fsub", "fmul", "fdiv", "frem"}; | const char *BinaryFPOpcodes[] = {"fadd", "fsub", "fmul", "fdiv", "frem"}; | ||||
for (const char *BinaryFPOpcode : BinaryFPOpcodes) | for (const char *BinaryFPOpcode : BinaryFPOpcodes) | ||||
Str << " declare <8 x float> @llvm.vp." << BinaryFPOpcode | Str << " declare <8 x float> @llvm.vp." << BinaryFPOpcode | ||||
<< ".v8f32(<8 x float>, <8 x float>, <8 x i1>, i32) "; | << ".v8f32(<8 x float>, <8 x float>, <8 x i1>, i32) "; | ||||
Str << " declare <8 x float> @llvm.vp.fneg.v8f32(<8 x float>, <8 x i1>, " | Str << " declare <8 x float> @llvm.vp.fneg.v8f32(<8 x float>, <8 x i1>, " | ||||
"i32)"; | "i32)"; | ||||
Str << " declare <8 x float> @llvm.vp.fabs.v8f32(<8 x float>, <8 x i1>, " | |||||
"i32)"; | |||||
Str << " declare <8 x float> @llvm.vp.fma.v8f32(<8 x float>, <8 x float>, " | Str << " declare <8 x float> @llvm.vp.fma.v8f32(<8 x float>, <8 x float>, " | ||||
"<8 x float>, <8 x i1>, i32) "; | "<8 x float>, <8 x i1>, i32) "; | ||||
Str << " declare void @llvm.vp.store.v8i32.p0v8i32(<8 x i32>, <8 x i32>*, " | Str << " declare void @llvm.vp.store.v8i32.p0v8i32(<8 x i32>, <8 x i32>*, " | ||||
"<8 x i1>, i32) "; | "<8 x i1>, i32) "; | ||||
Str << "declare void " | Str << "declare void " | ||||
"@llvm.experimental.vp.strided.store.v8i32.i32(<8 x i32>, " | "@llvm.experimental.vp.strided.store.v8i32.i32(<8 x i32>, " | ||||
"i32*, i32, <8 x i1>, i32) "; | "i32*, i32, <8 x i1>, i32) "; | ||||
▲ Show 20 Lines • Show All 361 Lines • Show Last 20 Lines |