Home
last modified time | relevance | path

Searched refs:Bitcast (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/
H A Dcast-ops.mlir4 // spv.Bitcast
8 // CHECK: {{%.*}} = spv.Bitcast {{%.*}} : f32 to i32
9 %0 = spv.Bitcast %arg0 : f32 to i32
15 %0 = spv.Bitcast %arg0 : vector<2xf32> to vector<2xi32>
21 %0 = spv.Bitcast %arg0 : vector<2xf32> to i64
39 %0 = spv.Bitcast %arg0 : vector<4xf32> to vector<2xi64>
47 %0 = spv.Bitcast %arg0 : f32 to f32
55 %0 = spv.Bitcast %arg0 : f32 to i64
63 %0 = spv.Bitcast %arg0 : vector<2xf32> to vector<3xf32>
71 %0 = spv.Bitcast %arg0 : !spv.ptr<f32, Function> to i64
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86LowerAMXType.cpp237 Use &U = *(Bitcast->use_begin()); in combineLoadBitcast()
241 IRBuilder<> Builder(Bitcast); in combineLoadBitcast()
276 if (Bitcast->hasOneUse()) in combineBitcastStore()
288 Bitcast->replaceAllUsesWith(Vec); in combineBitcastStore()
293 IRBuilder<> Builder(Bitcast); in transformBitcast()
296 auto *Src = Bitcast->getOperand(0); in transformBitcast()
313 Use &U = *(Bitcast->use_begin()); in transformBitcast()
338 Prepare(Bitcast->getType()); in transformBitcast()
357 if (!Bitcast) in visit()
362 if (Bitcast->user_empty()) { in visit()
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/MathToSPIRV/
H A Dmath-to-core-spirv.mlir12 // CHECK: %[[VCAST:.+]] = spv.Bitcast %[[VALUE]] : f32 to i32
13 // CHECK: %[[SCAST:.+]] = spv.Bitcast %[[SIGN]] : f32 to i32
17 // CHECK: %[[RESULT:.+]] = spv.Bitcast %[[OR]] : i32 to f32
37 // CHECK: %[[VCAST:.+]] = spv.Bitcast %[[VALUE]] : vector<3xf16> to vector<3xi16>
38 // CHECK: %[[SCAST:.+]] = spv.Bitcast %[[SIGN]] : vector<3xf16> to vector<3xi16>
42 // CHECK: %[[RESULT:.+]] = spv.Bitcast %[[OR]] : vector<3xi16> to vector<3xf16>
H A Dmath-to-gl-spirv.mlir159 // CHECK: %[[BITCAST:.+]] = spv.Bitcast %[[ADD]]
175 // CHECK: %[[BITCAST:.+]] = spv.Bitcast %[[ADD]]
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp60 auto *Bitcast = dyn_cast<ConstantExpr>(OpC->getOperand(0)); in convertAnnotation2Metadata() local
61 if (!Bitcast || Bitcast->getOpcode() != Instruction::BitCast) in convertAnnotation2Metadata()
63 auto *Fn = dyn_cast<Function>(Bitcast->getOperand(0)); in convertAnnotation2Metadata()
H A DFunctionSpecialization.cpp148 if (auto *Bitcast = dyn_cast<BitCastInst>(User)) { in getPromotableAlloca() local
149 if (!Bitcast->hasOneUse() || *Bitcast->user_begin() != Call) in getPromotableAlloca()
/llvm-project-15.0.7/mlir/test/Target/SPIRV/
H A Dcast-ops.mlir5 // CHECK: {{%.*}} = spv.Bitcast {{%.*}} : f32 to i32
6 %0 = spv.Bitcast %arg0 : f32 to i32
7 // CHECK: {{%.*}} = spv.Bitcast {{%.*}} : i32 to si32
8 %1 = spv.Bitcast %0 : i32 to si32
9 // CHECK: {{%.*}} = spv.Bitcast {{%.*}} : si32 to i32
10 %2 = spv.Bitcast %1 : si32 to ui32
/llvm-project-15.0.7/mlir/test/Conversion/SPIRVToLLVM/
H A Dcast-ops-to-llvm.mlir4 // spv.Bitcast
10 %0 = spv.Bitcast %arg0: f32 to i32
17 %0 = spv.Bitcast %arg0: vector<3xf32> to vector<3xi32>
24 %0 = spv.Bitcast %arg0: vector<2xf32> to i64
31 %0 = spv.Bitcast %arg0: f64 to vector<2xi32>
38 %0 = spv.Bitcast %arg0: vector<4xf32> to vector<2xi64>
45 %0 = spv.Bitcast %arg0 : !spv.ptr<f32, Function> to !spv.ptr<i32, Function>
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVCastOps.td39 def SPV_BitcastOp : SPV_Op<"Bitcast", [NoSideEffect]> {
67 bitcast-op ::= ssa-id `=` `spv.Bitcast` ssa-use
74 %1 = spv.Bitcast %0 : f32 to i32
75 %1 = spv.Bitcast %0 : vector<2xf32> to i64
76 %1 = spv.Bitcast %0 : !spv.ptr<f32, Function> to !spv.ptr<i32, Function>
/llvm-project-15.0.7/clang/test/Coverage/
H A Dcodegen-next.m6 // Bitcast requires types of same width
/llvm-project-15.0.7/mlir/test/Dialect/SPIRV/Transforms/
H A Dcanonicalize.mlir62 // spv.Bitcast
66 // CHECK: %[[RESULT:.*]] = spv.Bitcast {{%.*}} : vector<2xf32> to f64
68 %0 = spv.Bitcast %arg0 : vector<2xf32> to vector<2xi32>
69 %1 = spv.Bitcast %0 : vector<2xi32> to i64
70 %2 = spv.Bitcast %1 : i64 to f64
77 // CHECK: %[[RESULT_0:.*]] = spv.Bitcast {{%.*}} : vector<2xf32> to i64
78 // CHECK-NEXT: %[[RESULT_1:.*]] = spv.Bitcast {{%.*}} : vector<2xf32> to f64
81 %0 = spv.Bitcast %arg0 : vector<2xf32> to i64
82 %1 = spv.Bitcast %0 : i64 to f64
H A Dabi-load-store.mlir59 // CHECK: [[ARG2:%.*]] = spv.Bitcast [[ADDRESSARG2]]
61 // CHECK: [[ARG1:%.*]] = spv.Bitcast [[ADDRESSARG1]]
63 // CHECK: [[ARG0:%.*]] = spv.Bitcast [[ADDRESSARG0]]
H A Dunify-aliased-resource.mlir183 // CHECK: %[[CAST:.+]] = spv.Bitcast %[[VAL1]] : f32 to i32
212 // CHECK: %[[CAST1:.+]] = spv.Bitcast %[[VAL1]] : f32 to i32
213 // CHECK: %[[CAST2:.+]] = spv.Bitcast %[[VAL0]] : i32 to f32
255 // CHECK: %[[CAST:.+]] = spv.Bitcast %[[CC]] : vector<2xf32> to i64
271 %i64val = spv.Bitcast %f64val : f64 to i64
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCInstrDesc.h163 Bitcast, enumerator
345 bool isBitcast() const { return Flags & (1ULL << MCID::Bitcast); } in isBitcast()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPreLegalizerCombiner.cpp145 auto Bitcast = B.buildBitcast({S32}, CvtPk); in applyClampI64ToI16() local
149 {MinBoundaryDst.getReg(0), Bitcast.getReg(0), MaxBoundaryDst.getReg(0)}, in applyClampI64ToI16()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVCanonicalization.td17 // spv.Bitcast
/llvm-project-15.0.7/llvm/test/Assembler/
H A DConstantExprFoldCast.ll27 ; Bitcast -> GEP
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerInfo.cpp54 case Bitcast: in operator <<()
174 case Bitcast: { in mutationIsSane()
H A DLegacyLegalizerInfo.cpp45 case Bitcast: in operator <<()
257 case Bitcast: in findAction()
/llvm-project-15.0.7/llvm/test/CodeGen/SPARC/
H A Dfloat-constants.ll4 ;; Bitcast should not do a runtime conversion, but rather emit a
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsLegalizerInfo.cpp443 auto Bitcast = MIRBuilder.buildMerge(s64, {Src, C_HiMask.getReg(0)}); in legalizeCustom() local
449 MIRBuilder.buildFSub(Dst, Bitcast, TwoP52FP); in legalizeCustom()
451 MachineInstrBuilder ResF64 = MIRBuilder.buildFSub(s64, Bitcast, TwoP52FP); in legalizeCustom()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h73 Bitcast, enumerator
172 case LegacyLegalizeActions::Bitcast: in LegalizeActionStep()
173 Action = LegalizeActions::Bitcast; in LegalizeActionStep()
655 return actionIf(LegalizeAction::Bitcast, Predicate, Mutation); in bitcastIf()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dicmp-xor-signbit.ll191 ; Bitcast canonicalization ensures that we recognize the signbit constant.
208 ; Bitcast canonicalization ensures that we recognize the signbit constant.
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp549 Instruction *Bitcast = cast<Instruction>(U); in findAllocas() local
550 for (User *BU : Bitcast->users()) { in findAllocas()
562 << *Bitcast << " in out-of-region lifetime marker " in findAllocas()
582 Instruction *Bitcast = cast<Instruction>(U); in findAllocas() local
583 LifetimeMarkerInfo LMI = getLifetimeMarkers(CEAC, Bitcast, ExitBlock); in findAllocas()
585 Bitcasts.push_back(Bitcast); in findAllocas()
/llvm-project-15.0.7/llvm/unittests/Frontend/
H A DOpenMPIRBuilderTest.cpp4147 auto *Bitcast = in TEST_F() local
4155 ASSERT_NE(Bitcast, nullptr); in TEST_F()
4156 EXPECT_TRUE(isSimpleBinaryReduction(Bitcast, FnReductionBB)); in TEST_F()
4160 ASSERT_NE(Bitcast, nullptr); in TEST_F()
4161 EXPECT_TRUE(isSimpleBinaryReduction(Bitcast, FnReductionBB)); in TEST_F()
4163 Bitcast = in TEST_F()
4167 EXPECT_TRUE(findGEPZeroOne(Bitcast, FirstRHS, SecondRHS)); in TEST_F()
4325 ASSERT_NE(Bitcast, nullptr); in TEST_F()
4332 ASSERT_NE(Bitcast, nullptr); in TEST_F()
4339 ASSERT_NE(Bitcast, nullptr); in TEST_F()
[all …]

123