search for: ccvalassign

Displaying 20 results from an estimated 51 matches for "ccvalassign".

2009 Jan 17
2
[LLVMdev] Using CallingConvLower in ARM target
...hing > like > > CCIfType<[f64], CCCustom> > > where CCCustom is a new entity that tells the calling convention > code to to let the target do something not easily representable > in the tablegen minilanguage. I am thinking that this requires two changes: add a flag to CCValAssign (take a bit from HTP) to indicate isCustom and a way to author an arbitrary CCAction by including the source directly in the TableGen mini-language. This latter change might want a generic change to the TableGen language. For example, the syntax might be like: class foo : CCCustomAction { code &lt...
2009 Feb 07
2
[LLVMdev] Using CallingConvLower in ARM target
...; >>> >>> where CCCustom is a new entity that tells the calling convention >>> code to to let the target do something not easily representable >>> in the tablegen minilanguage. >> >> I am thinking that this requires two changes: add a flag to >> CCValAssign (take a bit from HTP) to indicate isCustom and a way to >> author an arbitrary CCAction by including the source directly in the >> TableGen mini-language. This latter change might want a generic change >> to the TableGen language. For example, the syntax might be like: >> &g...
2013 Jan 27
2
[LLVMdev] lldb cannot display structure type for llvm3.2
I find the lldb cannot display structure type information, such as "print ArgLocs.size()" as follows, -> 593 CCValAssign &VA = ArgLocs[i]; 594 EVT ValVT = VA.getValVT(); 595 ISD::ArgFlagsTy Flags = Ins[i].Flags; 596 bool IsRegLoc = VA.isRegLoc(); (lldb) print ArgLocs.size() error: call to a function 'llvm::SmallVectorTemplateCommon<llvm::CCValAssign>::size() const' that is no...
2009 Feb 16
3
[LLVMdev] Using CallingConvLower in ARM target
...ed? Are we running out of bits? - NeededStackSize = 4; - break; - case MVT::i64: - case MVT::f64: - if (firstGPR < 3) - NeededGPRs = 2; - else if (firstGPR == 3) { - NeededGPRs = 1; - NeededStackSize = 4; - } else - NeededStackSize = 8; + State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, + State.AllocateStack(4, 4), + MVT::i32, LocInfo)); + return true; // we handled it Your change isn't handling the "NeededStackSize = 8" case. ++ static const uns...
2009 Feb 13
2
[LLVMdev] Using CallingConvLower in ARM target
...location for Val, possibly > updating > +/// all args to reflect changes and indicates if it handled it. It > must set > +/// isCustom if it handles the arg and returns true. > +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, > + MVT &LocVT, CCValAssign::LocInfo &LocInfo, > + ISD::ArgFlagsTy &ArgFlags, CCState &State, > + bool &result); > > Is it necessary to return two bools (the second is returned by > reference in 'result')? I am confused about the semantics of...
2009 Feb 18
0
[LLVMdev] Using CallingConvLower in ARM target
...= 4; > - break; > - case MVT::i64: > - case MVT::f64: > - if (firstGPR < 3) > - NeededGPRs = 2; > - else if (firstGPR == 3) { > - NeededGPRs = 1; > - NeededStackSize = 4; > - } else > - NeededStackSize = 8; > + State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, > + State.AllocateStack(4, 4), > + MVT::i32, LocInfo)); > + return true; // we handled it > > Your change isn't handling the "NeededStackSize = 8" cas...
2009 Jan 19
0
[LLVMdev] Using CallingConvLower in ARM target
...IfType<[f64], CCCustom> >> >> where CCCustom is a new entity that tells the calling convention >> code to to let the target do something not easily representable >> in the tablegen minilanguage. > > I am thinking that this requires two changes: add a flag to > CCValAssign (take a bit from HTP) to indicate isCustom and a way to > author an arbitrary CCAction by including the source directly in the > TableGen mini-language. This latter change might want a generic change > to the TableGen language. For example, the syntax might be like: > > class foo : C...
2009 Feb 18
2
[LLVMdev] Using CallingConvLower in ARM target
...MVT::i64: >> - case MVT::f64: >> - if (firstGPR < 3) >> - NeededGPRs = 2; >> - else if (firstGPR == 3) { >> - NeededGPRs = 1; >> - NeededStackSize = 4; >> - } else >> - NeededStackSize = 8; >> + State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, >> + State.AllocateStack(4, 4), >> + MVT::i32, LocInfo)); >> + return true; // we handled it >> >> Your change isn't handling the "NeededSta...
2009 Feb 09
0
[LLVMdev] Using CallingConvLower in ARM target
...- This function assigns a location for Val, possibly updating +/// all args to reflect changes and indicates if it handled it. It must set +/// isCustom if it handles the arg and returns true. +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, + MVT &LocVT, CCValAssign::LocInfo &LocInfo, + ISD::ArgFlagsTy &ArgFlags, CCState &State, + bool &result); Is it necessary to return two bools (the second is returned by reference in 'result')? I am confused about the semantics of 'result'. Al...
2009 Feb 13
0
[LLVMdev] Using CallingConvLower in ARM target
...- This function assigns a location for Val, possibly updating +/// all args to reflect changes and indicates if it handled it. It must set +/// isCustom if it handles the arg and returns true. +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, + MVT &LocVT, CCValAssign::LocInfo &LocInfo, + ISD::ArgFlagsTy &ArgFlags, CCState &State, + bool &result); Is "result" what you refer to as "isCustom" in the comments? Sorry, I am still confused. You mean it could return true but set '...
2009 Feb 13
2
[LLVMdev] Using CallingConvLower in ARM target
...location for Val, possibly > updating > +/// all args to reflect changes and indicates if it handled it. It > must set > +/// isCustom if it handles the arg and returns true. > +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, > + MVT &LocVT, CCValAssign::LocInfo &LocInfo, > + ISD::ArgFlagsTy &ArgFlags, CCState &State, > + bool &result); > > Is "result" what you refer to as "isCustom" in the comments? > > Sorry, I am still confused. You mean it could...
2009 Feb 26
0
[LLVMdev] Using CallingConvLower in ARM target
...f64: >>> - if (firstGPR < 3) >>> - NeededGPRs = 2; >>> - else if (firstGPR == 3) { >>> - NeededGPRs = 1; >>> - NeededStackSize = 4; >>> - } else >>> - NeededStackSize = 8; >>> + State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, >>> + >>> State.AllocateStack(4, 4), >>> + MVT::i32, LocInfo)); >>> + return true; // we handled it >>> >>> Your change isn...
2009 Feb 14
2
[LLVMdev] Using CallingConvLower in ARM target
...eflect changes and indicates if it handled it. It >>>>> must set >>>>> +/// isCustom if it handles the arg and returns true. >>>>> +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, >>>>> + MVT &LocVT, CCValAssign::LocInfo &LocInfo, >>>>> + ISD::ArgFlagsTy &ArgFlags, CCState &State, >>>>> + bool &result); >>>>> >>>>> Is "result" what you refer to as "isCustom" in the c...
2009 Feb 14
0
[LLVMdev] Using CallingConvLower in ARM target
...nd indicates if it handled it. It >>>>>> must set >>>>>> +/// isCustom if it handles the arg and returns true. >>>>>> +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, >>>>>> + MVT &LocVT, CCValAssign::LocInfo &LocInfo, >>>>>> + ISD::ArgFlagsTy &ArgFlags, CCState &State, >>>>>> + bool &result); >>>>>> >>>>>> Is "result" what you refer to as "isCusto...
2009 Feb 28
3
[LLVMdev] Using CallingConvLower in ARM target
...irstGPR < 3) >>>> -      NeededGPRs = 2; >>>> -    else if (firstGPR == 3) { >>>> -      NeededGPRs = 1; >>>> -      NeededStackSize = 4; >>>> -    } else >>>> -      NeededStackSize = 8; >>>> +      State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, >>>> + >>>> State.AllocateStack(4, 4), >>>> +                                             MVT::i32, LocInfo)); >>>> +    return true;  // we handled it >>>> >>>> Your change isn't handling the &q...
2009 Feb 14
2
[LLVMdev] Using CallingConvLower in ARM target
...>>> +/// all args to reflect changes and indicates if it handled it. It >>> must set >>> +/// isCustom if it handles the arg and returns true. >>> +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, >>> + MVT &LocVT, CCValAssign::LocInfo &LocInfo, >>> + ISD::ArgFlagsTy &ArgFlags, CCState &State, >>> + bool &result); >>> >>> Is "result" what you refer to as "isCustom" in the comments? >>> >>&g...
2009 Feb 13
0
[LLVMdev] Using CallingConvLower in ARM target
...ly >> updating >> +/// all args to reflect changes and indicates if it handled it. It >> must set >> +/// isCustom if it handles the arg and returns true. >> +typedef bool CCCustomFn(unsigned &ValNo, MVT &ValVT, >> + MVT &LocVT, CCValAssign::LocInfo &LocInfo, >> + ISD::ArgFlagsTy &ArgFlags, CCState &State, >> + bool &result); >> >> Is "result" what you refer to as "isCustom" in the comments? >> >> Sorry, I am still con...
2009 Apr 17
0
[LLVMdev] Using CallingConvLower in ARM target
...Rs = 2; >>>>>> - else if (firstGPR == 3) { >>>>>> - NeededGPRs = 1; >>>>>> - NeededStackSize = 4; >>>>>> - } else >>>>>> - NeededStackSize = 8; >>>>>> + State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, >>>>>> + >>>>>> State.AllocateStack(4, 4), >>>>>> + MVT::i32, >>>>>> LocInfo)); >>>>>> + return true; // we handled it >>>...
2009 Apr 16
2
[LLVMdev] Using CallingConvLower in ARM target
...>> -      NeededGPRs = 2; >>>>> -    else if (firstGPR == 3) { >>>>> -      NeededGPRs = 1; >>>>> -      NeededStackSize = 4; >>>>> -    } else >>>>> -      NeededStackSize = 8; >>>>> +      State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, >>>>> + >>>>> State.AllocateStack(4, 4), >>>>> +                                             MVT::i32, LocInfo)); >>>>> +    return true;  // we handled it >>>>> >>>>> Your change i...
2009 Apr 17
1
[LLVMdev] Using CallingConvLower in ARM target
...>>> - else if (firstGPR == 3) { >>>>>>> - NeededGPRs = 1; >>>>>>> - NeededStackSize = 4; >>>>>>> - } else >>>>>>> - NeededStackSize = 8; >>>>>>> + State.addLoc(CCValAssign::getCustomMem(ValNo, ValVT, >>>>>>> + >>>>>>> State.AllocateStack(4, 4), >>>>>>> + MVT::i32, >>>>>>> LocInfo)); >>>>>>> + return true; // we han...