projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add XCore intrinsics for getid (returns thread id) and bitrev (reverses
[oota-llvm.git]
/
lib
/
Target
/
XCore
/
XCoreISelLowering.cpp
diff --git
a/lib/Target/XCore/XCoreISelLowering.cpp
b/lib/Target/XCore/XCoreISelLowering.cpp
index 96b1ae7c5d388256833843e5f014f3ad0e337055..765e6182b84eefd40db908d591c99b9b69cd1aef 100644
(file)
--- a/
lib/Target/XCore/XCoreISelLowering.cpp
+++ b/
lib/Target/XCore/XCoreISelLowering.cpp
@@
-226,9
+226,8
@@
LowerGlobalAddress(SDValue Op, SelectionDAG &DAG)
}
static inline SDValue BuildGetId(SelectionDAG &DAG) {
}
static inline SDValue BuildGetId(SelectionDAG &DAG) {
- // TODO
- assert(0 && "Unimplemented");
- return SDValue();
+ return DAG.getNode(ISD::INTRINSIC_WO_CHAIN, MVT::i32,
+ DAG.getConstant(Intrinsic::xcore_getid, MVT::i32));
}
static inline bool isZeroLengthArray(const Type *Ty) {
}
static inline bool isZeroLengthArray(const Type *Ty) {