[PATCH] D158321: [emacs] Handle vector types, arbitary integer types and function names

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 23:02:51 PDT 2023


goldstein.w.n added a comment.

Example of some syntax this is suppose to help?

I tried on:

  define <2 x i1> @foo.v2i1(<2 x i1> %v) {
    ret <2 x i1> %v
  }
  
  define i64 @promote_vscale_i32_to_i64() {
  ; CHECK-LABEL: @promote_vscale_i32_to_i64(
  ; CHECK-NEXT:    [[VSCALE:%.*]] = call i64 @llvm.vscale.i64()
  ; CHECK-NEXT:    [[EXT:%.*]] = and i64 [[VSCALE]], 4294967295
  ; CHECK-NEXT:    ret i64 [[EXT]]
  ;
    %vscale = call i32 @llvm.vscale.i32()
    %ext = zext i32 %vscale to i64
    ret i64 %ext
  }
  
  declare i32 @llvm.vscale.i32()
  
  attributes #0 = {
    vscale_range(1, 16)
  }

And no change.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158321/new/

https://reviews.llvm.org/D158321



More information about the llvm-commits mailing list