File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
clang/include/clang/CIR/Dialect/Builder Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -386,29 +386,6 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
386386 /* tbaa=*/ cir::TBAAAttr{});
387387 }
388388
389- mlir::Value createPointerBitCastOrAddrSpaceCast (mlir::Value src,
390- mlir::Type dstTy) {
391- auto srcTy = src.getType ();
392-
393- if (auto srcPtrTy = mlir::dyn_cast<cir::PointerType>(srcTy))
394- if (auto dstPtrTy = mlir::dyn_cast<cir::PointerType>(dstTy))
395- if (srcPtrTy.getAddrSpace () != dstPtrTy.getAddrSpace ())
396- return createAddrSpaceCast (src, dstTy);
397-
398- return createBitcast (src, dstTy);
399- }
400-
401- mlir::Value createPointerBitCastOrAddrSpaceCast (mlir::Location loc,
402- mlir::Value src,
403- mlir::Type dstTy) {
404- auto srcTy = src.getType ();
405- if (auto srcPtrTy = mlir::dyn_cast<cir::PointerType>(srcTy))
406- if (auto dstPtrTy = mlir::dyn_cast<cir::PointerType>(dstTy))
407- if (srcPtrTy.getAddrSpace () != dstPtrTy.getAddrSpace ())
408- return createAddrSpaceCast (loc, src, dstTy);
409-
410- return createBitcast (loc, src, dstTy);
411- }
412389
413390 mlir::Value createAlloca (mlir::Location loc, cir::PointerType addrType,
414391 mlir::Type type, llvm::StringRef name,
You can’t perform that action at this time.
0 commit comments