search for: legalizetypeact

Displaying 3 results from an estimated 3 matches for "legalizetypeact".

2013 Nov 11
0
[LLVMdev] Custom LegalizeTypeAction?
...e conclusion that v16i1 shouldn't really be a legal type for this architecture. But here's the rub: there's no way during type legalization (that I can tell) to convert v16i1 into i32. It wants to widen it into v16i32, which doesn't work at all. So I'm thinking of adding a new LegalizeTypeAction, say 'TypeConcatenateVector' that would do what I've described. However, I'd rather not have to make changes to the type legalizer, since that will make it more of a pain to continue merging mainline back into my fork, and it also feels like the wrong thing to do. While what I...
2011 Aug 04
3
[LLVMdev] Multiple one-line bugs in LLVM
...the right of the '|' operator. Probably not a bug, just some duplicated code. ---- include/llvm/Target/TargetLowering.h:267       switch (getTypeAction(Context, VT)) {       case Legal:         return VT;       case Expand: Note that the values of different enum types (LegalizeAction and LegalizeTypeAction) are compared. This code works well because of the same order for enums, but it would be better to change this into       switch (getTypeAction(Context, VT)) {       case TypeLegal:         return VT;       case TypeExpand: ---- Thanks a lots for any fixes and answers.
2011 Aug 04
0
[LLVMdev] Multiple one-line bugs in LLVM
...;d Owen who added this code. > > ---- > > include/llvm/Target/TargetLowering.h:267 > switch (getTypeAction(Context, VT)) { > case Legal: > return VT; > case Expand: > > Note that the values of different enum types (LegalizeAction and > LegalizeTypeAction) are compared. This code works well because of the same order > for enums, but it would be better to change this into > > switch (getTypeAction(Context, VT)) { > case TypeLegal: > return VT; > case TypeExpand: Yup, I've made this change. >...