llvm.org GIT mirror llvm / cf2adb9
Cosmetic change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141269 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 8 years ago
1 changed file(s) with 16 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
15311531 /// TODO: Handle pre/postinc as well.
15321532 virtual bool isLegalAddressingMode(const AddrMode &AM, Type *Ty) const;
15331533
1534 /// isLegalICmpImmediate - Return true if the specified immediate is legal
1535 /// icmp immediate, that is the target has icmp instructions which can compare
1536 /// a register against the immediate without having to materialize the
1537 /// immediate into a register.
1538 virtual bool isLegalICmpImmediate(int64_t Imm) const {
1539 return true;
1540 }
1541
1542 /// isLegalAddImmediate - Return true if the specified immediate is legal
1543 /// add immediate, that is the target has add instructions which can add
1544 /// a register with the immediate without having to materialize the
1545 /// immediate into a register.
1546 virtual bool isLegalAddImmediate(int64_t Imm) const {
1547 return true;
1548 }
1549
15341550 /// isTruncateFree - Return true if it's free to truncate a value of
15351551 /// type Ty1 to type Ty2. e.g. On x86 it's free to truncate a i32 value in
15361552 /// register EAX to i16 by referencing its sub-register AX.
15631579 /// from i32 to i8 but not from i32 to i16.
15641580 virtual bool isNarrowingProfitable(EVT VT1, EVT VT2) const {
15651581 return false;
1566 }
1567
1568 /// isLegalICmpImmediate - Return true if the specified immediate is legal
1569 /// icmp immediate, that is the target has icmp instructions which can compare
1570 /// a register against the immediate without having to materialize the
1571 /// immediate into a register.
1572 virtual bool isLegalICmpImmediate(int64_t Imm) const {
1573 return true;
1574 }
1575
1576 /// isLegalAddImmediate - Return true if the specified immediate is legal
1577 /// add immediate, that is the target has add instructions which can add
1578 /// a register with the immediate without having to materialize the
1579 /// immediate into a register.
1580 virtual bool isLegalAddImmediate(int64_t Imm) const {
1581 return true;
15821582 }
15831583
15841584 //===--------------------------------------------------------------------===//