mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-03 17:24:24 +00:00
[TableGen] Remove trailing whitespace, add space between 'if' and paren, other formatting fixes. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239209 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e29f136cf
commit
32d99f93e4
@ -100,9 +100,9 @@ bool RecTy::typeIsConvertibleTo(const RecTy *RHS) const {
|
||||
}
|
||||
|
||||
bool BitRecTy::typeIsConvertibleTo(const RecTy *RHS) const{
|
||||
if(RecTy::typeIsConvertibleTo(RHS) || RHS->getRecTyKind() == IntRecTyKind)
|
||||
if (RecTy::typeIsConvertibleTo(RHS) || RHS->getRecTyKind() == IntRecTyKind)
|
||||
return true;
|
||||
if(const BitsRecTy *BitsTy = dyn_cast<BitsRecTy>(RHS))
|
||||
if (const BitsRecTy *BitsTy = dyn_cast<BitsRecTy>(RHS))
|
||||
return BitsTy->getNumBits() == 1;
|
||||
return false;
|
||||
}
|
||||
@ -1914,23 +1914,23 @@ Init *llvm::QualifyName(Record &CurRec, MultiClass *CurMultiClass,
|
||||
RecTy *Type = cast<TypedInit>(Name)->getType();
|
||||
|
||||
BinOpInit *NewName =
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
CurRec.getNameInit(),
|
||||
StringInit::get(Scoper),
|
||||
Type)->Fold(&CurRec, CurMultiClass),
|
||||
Name,
|
||||
Type);
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
CurRec.getNameInit(),
|
||||
StringInit::get(Scoper),
|
||||
Type)->Fold(&CurRec, CurMultiClass),
|
||||
Name,
|
||||
Type);
|
||||
|
||||
if (CurMultiClass && Scoper != "::") {
|
||||
NewName =
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
CurMultiClass->Rec.getNameInit(),
|
||||
StringInit::get("::"),
|
||||
Type)->Fold(&CurRec, CurMultiClass),
|
||||
NewName->Fold(&CurRec, CurMultiClass),
|
||||
Type);
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
BinOpInit::get(BinOpInit::STRCONCAT,
|
||||
CurMultiClass->Rec.getNameInit(),
|
||||
StringInit::get("::"),
|
||||
Type)->Fold(&CurRec, CurMultiClass),
|
||||
NewName->Fold(&CurRec, CurMultiClass),
|
||||
Type);
|
||||
}
|
||||
|
||||
return NewName->Fold(&CurRec, CurMultiClass);
|
||||
|
Loading…
x
Reference in New Issue
Block a user